Is there a way to have a million interval on chart?

2 Answers 50 Views
Charts
Irvin
Top achievements
Rank 1
Irvin asked on 29 Nov 2022, 07:35 AM | edited on 29 Nov 2022, 09:54 AM

I have a base unit of "Minute" with the interval of 1Million Minutes on x-axis of the chart. Data from 2000 to 2022.

var steps = TotalMinutes * .10; //[11,000,000] * .10 = 1,100,000 minutes

opt..categoryAxis.baseUnit = "minute"

opt..categoryAxis.majorGridLines.step = steps;

opt.categoryAxis.labels.step = steps;

When I try to load  it on the chart the browser crashes.

Is it possible for the chart to handle this type of inputs?

 

2 Answers, 1 is accepted

Sort by
0
Marcello
Top achievements
Rank 1
Iron
answered on 29 Nov 2022, 08:10 PM

Of course, using highcharts! ;-)

marc.

0
Georgi Denchev
Telerik team
answered on 01 Dec 2022, 10:32 AM

Hello, Irvin,

Yes, you can utilize the baseUnitStep property to display only a portion of the categories(x-axis values) instead of all of them at once. This will improve the performance of the chart and prevent it from crashing:

opt.categoryAxis.baseUnitStep = steps;

Let me know if you have any questions or in case this is not what you're looking for.

Best Regards,
Georgi Denchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Charts
Asked by
Irvin
Top achievements
Rank 1
Answers by
Marcello
Top achievements
Rank 1
Iron
Georgi Denchev
Telerik team
Share this question
or