Axis directions

3 posts, 0 answers
  1. Peter Chapman
    Peter Chapman avatar
    17 posts
    Member since:
    May 2010

    Posted 06 Jun 2013 Link to this post

    Great work on the ChartView. I'm getting to know the control with a view to hopefully using it in a significant project. As a long time WPF and MVVM developer, I'm happy to say that so far it works in the way I expect it to work. 

    One thing that I'm finding strange though, is the order of categories on a vertical categorical axis. Let's say I have four categories in my data,  'North', 'East', 'South', 'West', in that order. In a horizontal bar chart I would expect 'North' to be the top bar and 'West' to be the bottom. Your implementation has it the other way round.

    Now, I can see why you do it like this, as other axes (linear, logarithmic) increase in value as they move away from the origin. Excel does the same too, but allows a switch for people who prefer their axes the other way round.

    Is there an easy way to switch them, or shall I just sort them myself? 

    thanks
    Pete
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 11 Jun 2013 Link to this post

    Hello Pete,

    You are absolutely correct about the reasons we implemented vertical categories in that order. An easy way to work this out is the set the IsInverse property of the vertical axis to true and the categories should be reversed. Let us know if you have other questions.

    Regards,
    Petar Marchev
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Peter Chapman
    Peter Chapman avatar
    17 posts
    Member since:
    May 2010

    Posted 11 Jun 2013 Link to this post

    That's perfect, thanks
Back to Top