Use baseUnitStep to auto but still draw all points

2 posts, 0 answers
  1. Michaël
    Michaël avatar
    44 posts
    Member since:
    Feb 2014

    Posted 12 Dec 2014 Link to this post

    Hi,

    I have charts where, at maximum, I could have around 60 data points to show. While this is not that much point, showing all the category labels is too much. Therefore I'm using the "baseUnitStep" to auto, with a maxDateGroups of 20. However, when I do this, I have great results for category label, but as a consequence, data points in between are no longer drawn in the chart (and I cannot any longer show their tooltip).

    I've tried to played with the various baseStep, baseUnitStep... settings, but cannot find the right setting to have the best of both world: automatically draw few labels, but still render all the data points.

    How can I achieve that? :)

    Thanks
  2. Hristo Germanov
    Admin
    Hristo Germanov avatar
    703 posts

    Posted 16 Dec 2014 Link to this post

    Hi Michaël,

    You can add one more categoryAxis with the desired configuration for labels. The first one should be the "points axis" and you should hide it. The problem in this scenario is that the valueAxis and categoryAxis will be a little misaligned.

    -= Live Example =-

    Regards,
    Hristo Germanov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top