Unplanned
Last Updated: 04 Oct 2023 07:11 by ADMIN
Dev
Created on: 29 Sep 2023 09:59
Category: Charts
Type: Feature Request
2
CategoryAxis MaxDivisions

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

1 comment
ADMIN
Dimo
Posted on: 02 Oct 2023 07:25

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

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!