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

X-axis labels being forced to numeric

1 Answer 7 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rebecca
Top achievements
Rank 1
Rebecca asked on 03 Apr 2017, 09:08 AM

How do I prevent x-axis labels on Reporting charts being forced to certain data types.

 

As you can see in my sample, the data table shows that the x-axis should be text, but the chart has forced the x-axis to be numeric and where it can't parse the value as a number it shows it as 0.

 

How can I make it show as text, like in the data table on the left?

1 Answer, 1 is accepted

Sort by
0
Ivan Hristov
Telerik team
answered on 05 Apr 2017, 12:18 PM
Hello Rebecca,

You need to use CategoryScale for your X axis. Category scale is designed for displaying values that do not belong to a continuous domain like numbers or dates. You can change your scale as described here:

How to: Change the Axis Scale

Please take a look at the attached sample report that is build based on your scenario and demonstrates the approach. We hope you will find it useful.

Regards,
Ivan Hristov
Telerik by Progress
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
Tags
General Discussions
Asked by
Rebecca
Top achievements
Rank 1
Answers by
Ivan Hristov
Telerik team
Share this question
or