Is it possible to reverse the axis of an AreaChart

4 posts, 0 answers
  1. Adam12
    Adam12 avatar
    7 posts
    Member since:
    Jun 2012

    Posted 20 Jul 2011 Link to this post

    Is there any way to invert the vertical access of the area chart so that origin is in the top left rather than bottom left.  In other rather than starting from 0 in the bottom left and going up the Y axis as the number gets bigger start with 0 in the top left and go down as the number gets bigger.

    See the attached image for better idea of what I mean.

    Thanks
  2. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 21 Jul 2011 Link to this post

    Hi Adam,

    Thank you for contacting us and for your interesting question.

    Currently this is not supported in our charts but the feature is actually in our TODO list. Could you please share what would you actually expect by specifying something like:

    this.radCartesianChart1.VerticalAxis.IsInversed = true;

    Because in this case the plot origin is changed and it would be more natural to swap the position of the HorizontalAxis (dock it at top) so that the plotted data (including the area shape) is aligned from Top to bottom rather than Bottom to Top. Or should this setting control only the plot information provided by the axis?

    I am looking forward to your reply.

    Greetings,
    Georgi
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
  4. Adam12
    Adam12 avatar
    7 posts
    Member since:
    Jun 2012

    Posted 21 Jul 2011 Link to this post

    I can't speak for anyone else but for our requirement we would still like the horizontal axis and the shaded area at the bottom.  

    The scenario is we are showing a leaderboard over time.  So the scenario where a smaller number is better.  As a person gets closer to the top of the board they are moving up, even though the actual number that is their position is getting smaller.  The area shape on the bottom represents their progress so far (i.e. how far the have come, rather than how far they are from the top) and so you'd expect it to be be beneath the plotted data.

    It seems to me that having the horizontal axis at the top or bottom is more to do with whether the numbers are positive or negative than whether the axis is inverted.  Certainly in our scenario, anyway.

    Thanks for responding so quickly.
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 27 Jul 2011 Link to this post

    Hello Adam,

    Thanks for writing back and sorry for the delay with our answer.

    We will consider your feedback and will make sure to provide possibilities to adjust the behavior of the horizontal axis in a way that covers your requirements.

    Do not hesitate to get back to us in case you have further questions or need assistance.

    Best wishes,
    Deyan
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top