Custom Labels & Grid-Lines

2 posts, 0 answers
  1. Marcel
    Marcel avatar
    1 posts
    Member since:
    Jun 2015

    Posted 15 Mar 2016 Link to this post


    I'm using the 'Custom Labels' function for a DateTimeAxis and it works.

    But the vertical gridlines are not matching with the 'Custom Labels'.

    What is a proper way to fix this problem?


    kind regards,


  2. Adrian
    Adrian avatar
    174 posts

    Posted 18 Mar 2016 Link to this post

    Hello, Marcel,

    Thank you for contacting us.

    The vertical grid lines of the chart should match the axis' major ticks, not its labels. If the plot mode of you axis is between ticks the labels will not be drawn under the tick, respectively the wont be aligned with the grid lines. You should use the on ticks plot mode:
    xAxis.PlotMode = TKChartAxisPlotMode.OnTicks;

    I hope this helps. If you need further assistance I will be glad to help.

    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
Back to Top