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

xaxis on column chart overlaps when value exceeds certain number

3 Answers 39 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Naureen
Top achievements
Rank 1
Naureen asked on 12 May 2017, 03:35 PM
I have a simple chart with a line and a bar series. X-axis on the chart represents number of days - Depending on user selection the days can vary from 20 days to 90 days. As soon as number of days starts growing, for instance more than 25 days, the label starts crowding and overlapping each-other. My x-axis is a category axis. How can i adjust increments on x-axis so that it automatically sets certain interval on x-axis to avoid overlapping. Please have a look at attached chart for better explanation of the problem. 

3 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 15 May 2017, 12:57 PM
Hello Naureen,

One option is to control the Axis label with CategoryGroup.Label property which accepts expressions.

Another option is to switch to Numerical or DateTime scale (How to: Change the Axis Scale) where you will be able to control the labels with LabelStep (LabelUnit) properties (Axis Validation).


Regards,
Katia
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
0
Naureen
Top achievements
Rank 1
answered on 15 May 2017, 01:45 PM
Thanks for the reply - Second option worked for me but can i set auto increment to 1 if the axis has values <= 20?
0
Accepted
Katia
Telerik team
answered on 17 May 2017, 12:28 PM
Hi Naureen,

You can add a binding for LabelStep and LabelUnit properties into Bindings collection of the coordinate system.

A sample approach how to change the properties of the Graph item with bindigns is provided in How to: Use Bindings to Control the Coordinate System Properties help article.

Regards,
Katia
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
Report Designer (standalone)
Asked by
Naureen
Top achievements
Rank 1
Answers by
Katia
Telerik team
Naureen
Top achievements
Rank 1
Share this question
or