In Kendo-React chart i can set the property "maxDivision" like this:
<ChartCategoryAxis>
<ChartCategoryAxisItem
maxDivisions={30}
name="categoryAxisName"
categories={categories}
...
and the chart will show only 30 dates in the displayed range, even if zoom in.
Is there a way for doing the same thing in Blazor Chart?
I tryed Type"fit" and MaxDateGroup but i need to show always all the points and this isnot a good solution.
I tryed ChartCategoryAxisLabels Step="number_of_labels_to_render" but when i zoom in the chart
will not show other dates.
Regards,
Davide
Hi Davide,
Indeed, a MaxDivisions setting is currently not available for the Blazor Chart. Sorry about that. I think you are the first person to need this, so I am converting your ticket to a public feature request. I also voted for it on your behalf.
A relevant feature request may be the Chart OnZoom event that can allow you to change the Chart axis and label configuration on the fly.
In the meantime, I can suggest using a Fit BaseUnit for the CategoryAxis without MaxDateGroup. This will produce a varying number of axis labels, but their number will always make sense for the current zoom level. Here is a REPL example.
On a side note, here is a KB article that shows how to optimize label rendering if the number of labels is too large and they overlap.
Regards,
Dimo
Progress Telerik