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

Axis directions

2 Answers 60 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Peter Chapman
Top achievements
Rank 1
Peter Chapman asked on 06 Jun 2013, 10:29 AM
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 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 11 Jun 2013, 06:35 AM
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.

0
Peter Chapman
Top achievements
Rank 1
answered on 11 Jun 2013, 07:20 AM
That's perfect, thanks
Tags
ChartView
Asked by
Peter Chapman
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Peter Chapman
Top achievements
Rank 1
Share this question
or