Show Spakline points relative to zero

2 posts, 0 answers
  1. Chris
    Chris avatar
    2 posts
    Member since:
    Jan 2011

    Posted 04 Jul 2012 Link to this post


    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.

  2. Yavor
    Yavor avatar
    401 posts

    Posted 05 Jul 2012 Link to this post

    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!

    the Telerik team

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

Back to Top