Very Slow Labels for ScatterAreaSeries RadCartesianChart

4 posts, 0 answers
  1. Reilly
    Reilly avatar
    30 posts
    Member since:
    Oct 2012

    Posted 16 Jul 2020 Link to this post

    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.

     

     

     

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2578 posts

    Posted 21 Jul 2020 Link to this post

    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

  3. Reilly
    Reilly avatar
    30 posts
    Member since:
    Oct 2012

    Posted 23 Jul 2020 Link to this post

    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.

     

  4. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    718 posts

    Posted 28 Jul 2020 Link to this post

    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

Back to Top