Displaying Sparklines in same order as underlying data

2 posts, 1 answers
  1. Chris Andrews
    Chris Andrews avatar
    41 posts
    Member since:
    Mar 2010

    Posted 07 Jun 2011 Link to this post


    I am displaying a couple of sparkline graphs.  The underlying data is a List<KeyValuePair<Int32, Int32>>.  The sparkline seems to be automatically sorting and displaying the data by the key.  (I'm basically displaying a count by month, the left most point needs to be current month)

    Is there any way to display the data how it's layed out in the collection itself?
  2. Answer
    Vladimir Milev
    Vladimir Milev avatar
    1061 posts

    Posted 09 Jun 2011 Link to this post

    Hi Chris Andrews,

    You can use the YValuePath and XValuePath properties to specify either the "Key" or the "Value" properties of the KeyValuePair to be mapped accordingly.

    Vladimir Milev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top