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

Use baseUnitStep to auto but still draw all points

1 Answer 55 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Michaël
Top achievements
Rank 1
Michaël asked on 12 Dec 2014, 01:20 PM
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

1 Answer, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 16 Dec 2014, 08:29 AM
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!
 
Tags
Charts
Asked by
Michaël
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Share this question
or