Pre loader

IPointMarkerPaletteProvider Running Slowly on Surface

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I am trying to produce a ScatterChart that has point markers colors that are dependent on a list of color datapoints. I have created a custom IPointMarkerPaletteProvider that has the PointPaletteinfo function defined as:

    public PointPaletteInfo? OverridePointMarker(IRenderableSeries series, int index, IPointMetadata metadata)
    {

        return new PointPaletteInfo()
        {
            Fill = ((BondMetaData)metadata).Color,
            Stroke = ((BondMetaData)metadata).Color,

        };
    }

It works, however, the panning feature becomes extremely laggy as though it is resetting the color of every point everytime the chart is moved.

What should I do to improve the performance?

Version
--
  • You must to post comments
0
0

Hi George,

Are you using v5 or 6 or SciChart WPF?

In v5 the Lines or Scatter Chart + PaletteProvider is really slow, but in v6 this was one of the issues we addressed with our new ‘Visual Xccelerator engine’ which brings up to 100x faster WPF Charts.

Find out more below:
http://scichart.com/scichart-wpf-v6-the-worlds-fastest-wpf-charts/

SciChart WPF v5 could draw line charts pretty fast, but if you added in edge-cases such as changing the colour per-point, or including gaps in series with double.NaN, or dashed lines, or digital lines, the extra processing would slow down the chart. In SciChart WPF v6, we have improved all these scenarios. Take a look at the test results below.

enter image description here

In summary:

  • The control test (1,000 line series x 1,000 points) is 292% faster.
  • However … with PaletteProvider (changing colour per point) it is 3,874% faster.
  • … with dashed lines is 318% faster .
  • … with gaps in series using double.NaN, is 669% faster.
  • … with digital (step) line is 465% faster.

Please let me know if this helps. If you still experience issues, contact support with steps to reproduce and we will do our best to assist.

Best regards,
Andrew

  • George Dobson
    Hi Andrew, I upgraded to v6 and that improved the performance. Thanks, George
  • Ota Hofmann
    Hi, I have same problem even though I updated the SciChart. Can you help me? I have ~20k points and graph render takes about 30 sec. The render without PaletteProvider is immediate. Thank you so much!
  • Andrew Burnett-Thompson
    You’ve updated, but did you enable the Visual Xccelerator engine? https://www.scichart.com/documentation/win/current/Enabling%20The%20Visual%20Xccelerator%20Engine.html
  • Ota Hofmann
    Hi Andrew, thank you for your response. I did – I ’ve added VisualXcceleratorEngine.IsEnabled=true and there is no change. With line VisualXcceleratorEngine.EnableImpossibleMode=true I have blurred graf (everything is very small, but fast) Btw. Every points have same color I change only opacity. Thank you for your time
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies