Custom Labels & Grid-Lines

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

    Posted 15 Mar Link to this post

    Hey,

    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,

    Marcel

  2. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 18 Mar 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.

    Regards,
    Adrian
    Telerik
    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
  3. DevCraft banner
Back to Top