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

Telerik Reporting Graph, How to have both X Axis and Y Axis as the Category Scale

3 Answers 286 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mahdieh
Top achievements
Rank 1
Mahdieh asked on 17 Oct 2018, 04:35 PM

I need to have a graph showing some Letters (B, G, D,....) as the Y axis, and numbers like (00,0,1,2,3,..) as the X axis.

The problem is that, 00 is not a digit, and the only way to show it is to Have the X Axis, as a Category Scale.

Is there any way to Have this done by Telerik Reporting Graph tool?

Thanks!

Mahdieh,

3 Answers, 1 is accepted

Sort by
0
Mahdieh
Top achievements
Rank 1
answered on 19 Oct 2018, 03:25 PM

Here's the screenshot of how I would like the graph to be.
As you can see on the X axis I have labels different from the actual values.

I was able to do it with wpf and it's converters.

But with the winform telerik reporting I couldn't find such workaround, and I'm not able to do it through XAxis label formatting.

 

0
Ivan Hristov
Telerik team
answered on 22 Oct 2018, 08:56 AM
Hi Mahdieh,

The Graph item by design does not allow to have two axes with category scales. The category scale represents groups of values that are incomparable to each other and are used to consolidate values in a domain, like Product Categories (Bikes, Accessories, Clothing, etc. ) The other axis must represent a comparable measure that can be used to calculate the positions of the data points, like Sales Per Year. It wouldn't make sense to display a chart that shows incomparable values on both its axes.

In the current scenario the category group should be set to Letters (B, G, D, etc.), and the X value should show some measurable and comparable value. Based on the description and the image, however, it seems that the role of these numbers (representing Cleanliness Level) is to act as a different group instead of a measure. Unfortunately I do not have enough information about the current scenario and can only guess the requirements, but looking at the attached image, it seems to me it's hard to determine what is represented on the X axis and why it does not align with the values displayed next to each bar (for example, why Size Class F shows bar with length 1, but it is measured as 0 on the X axis). If the idea of the chart is to show that the B size class has 3 items with Cleanliness Level 2, and size class C has 33 items with Cleanliness Level 6, it may be presented in a different, more easier to read manner.

Also, bars are used to display ratio between groups and the current chart shows that the ratio between 1 and 3 is the same as the ratio between 3 and 15 and 15 and 33. This may also be confusing to the recipient of the chart.

To summarize: there is no way to configure a Graph with X and Y axes both using category scales. If the designed layout can be changed, I suggest reconsidering the chart layout, making it easier to read and allowing the values and groups to be visually distinguished.

I hope this helps.

Regards,
Ivan Hristov
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mahdieh
Top achievements
Rank 1
answered on 20 Feb 2019, 05:18 PM
Thank you very much for the answer!
Tags
General Discussions
Asked by
Mahdieh
Top achievements
Rank 1
Answers by
Mahdieh
Top achievements
Rank 1
Ivan Hristov
Telerik team
Share this question
or