This is a migrated thread and some comments may be shown as answers.

Displaying Sparklines in same order as underlying data

1 Answer 50 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Chris Andrews
Top achievements
Rank 1
Chris Andrews asked on 07 Jun 2011, 08:48 PM
Hello,

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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Vladimir Milev
Telerik team
answered on 09 Jun 2011, 08:49 AM
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.

Greetings,
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
Tags
Sparkline
Asked by
Chris Andrews
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or