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

How to fix the gap between two x-Axis values.

1 Answer 52 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Vinod
Top achievements
Rank 1
Vinod asked on 12 Dec 2011, 11:22 AM
Hi,
I have a chart, which works on some filter selection of dates.

User can select atmost 12 dates to be displayed on the chart. It has grid at the bottom which is aligned to x-axis points of the chart (see the attached image.)

Now when user select the less number of dates say 2 or 6, the gap between the two dates on x-axis increases, as it has more space available, which is now not alligned with the grid.
Please refer attached images for more information.

So, is there any way to fix the distance between the two dates, so that they can come on a single position everytime?

Please reply as soon as possible.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 13 Dec 2011, 08:51 AM
Hi Vinod,

In order to sync the X-axis range with the grid columns you would need to set a manual range for the axis on zoom , when selecting a date range. You would also most likely need to set margins as well, but either way you would have to manually sync the axis ticks/labels and the grid columns.

Regards,
Nikolay
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Chart
Asked by
Vinod
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or