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

2 posts, 0 answers
  1. Vinod
    Vinod avatar
    16 posts
    Member since:
    Nov 2011

    Posted 12 Dec 2011 Link to this post

    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.
  2. Nikolay
    Admin
    Nikolay avatar
    386 posts

    Posted 13 Dec 2011 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top