This is a migrated thread and some comments may be shown as answers.
Very Slow Labels for ScatterAreaSeries RadCartesianChart
3 Answers 4 Views
This is a migrated thread and some comments may be shown as answers.
Reilly
Top achievements
Rank 1
Reilly asked on 16 Jul 2020, 08:02 PM

I have a chart showing only 3012 scatter area series. Each series is just a filled narrow bar that represents a frequency range, so there are only 2 data points for each series.

When I enable labels, it takes 38+ seconds to draw the chart. When I disable labels (ScatterAreaSeries.ShowLabels = false), it is less than 2 seconds.

Any ideas what is going on? I do have an isolated sample.

(I am running on 64-bit Win 10 with 2017.3.1018.45 (NoXaml)).

Thanks.

-John.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 21 Jul 2020, 04:00 PM

Hello John,

You can try the smart labels mode of the axis labels and see if the performance gets better. Also, you can check the Rendering article.

Regards,
Martin Ivanov
Progress Telerik

0
Reilly
Top achievements
Rank 1
answered on 23 Jul 2020, 10:21 AM

Thanks for the reply Martin.

I had tried both of those. The smart labels mode is applied to the axes. The labels that were killing my performance were series labels.

I tried all rendering modes and had no difference.

What *did* alleviate the issue is to remove this code from my chart:

        <telerik:RadCartesianChart.SmartLabelsStrategy>
            <telerik:ChartSmartLabelsStrategy />
         </telerik:RadCartesianChart.SmartLabelsStrategy>

My chart went from 40 sec down to 5 sec. Still not great but much better.

Regards,

-John.

 

0
Vladimir Stoyanov
Telerik team
answered on 28 Jul 2020, 08:02 AM

Hello John,

Thank you for the additional information. 

The smart labels strategy performs some time consuming operations to check if labels overlap each other. With 6024 labels, it is expected that there will be a performance impact. 

With this in mind, I can suggest thinking in terms of displaying additional information about the data points by utilizing the TrackBall or Crosshair behaviors of the RadChartView.

Regards,
Vladimir Stoyanov
Progress Telerik

Asked by
Reilly
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Reilly
Top achievements
Rank 1
Vladimir Stoyanov
Telerik team
Share this question
or