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

Show Spakline points relative to zero

1 Answer 25 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 04 Jul 2012, 11:43 AM
Hi,

I would like to display the RadLinearSparkline for 2 values that I have, relative to zero being the bottom of the graph.So, if I had 2 values, 500 and 1000, and they get displayed in the graph, I would like the first point to be displayed middle-left and the next point (1000) to be top-right... hope that makes sense? so, if I had 2 other points, 0 and 50, the first point would be bottom-left and the next one top-right. At the moment, the first point is displayed bottom-left (or top-left depending if the next value is higher or lower), but that is not what I want.

I'm sure it's just some of the properties that I have to set correctly, but I having some trouble finding the right one/combination.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 05 Jul 2012, 11:05 AM
Hi Chris,

You can try setting manual range on your sparkline. This way the sparkline will use your range on the X and Y axis and the way in which the line is displayed will be changed. Manual range is set first by disabling AutoRange and then by setting these properties: MinXValueMaxXValueMinYValueMaxYValue.  

Hope this helps!

Greetings,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Sparkline
Asked by
Chris
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or