Pre loader

CategoryDateTimeAxis and several markers on same bar

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

1
0

Hello,
I’m using your package for price charting. And I need to put on one bar (or candlestick) several markers (for example several dots with different colours and sizes). Also sometimes I need to change size on some of these markers. Now I am doing this by putting CustomAnnotations. Is there a way to plot the same with for example XyScatterRenderableSeries to increase drawing speed?

Best regards,
Roman.

  • You must to post comments
0
0

Thank you for advises. I have tried XyScatterRenderableSeries but markers was placed incorrectly. If I had two markers on same bar one of them was placed correctly, but another was shifted to next bar. I used XyDataSeries<DateTime, double> for this experiment.

  • You must to post comments
0
0

Hi Roman,

XyScatterRenderableSeries supports fast (bitmap-based) point-markers, and will greatly outperform annotations.

You can try by creating a custom point marker using the SpritePointMarker class. See Adding Data-Point markers for more details.

SpritePointMarker won’t allow a different size per marker however, but you can also override BasePointMarker.InternalDraw to draw your own marker using our RenderContext API.

Please see Insane WPF Scatter Chart performance with Parallel Rendering which has examples of how to override BasePointMarker to draw whatever you like at a marker site.

Also, see Creating a Custom Spline Line Series which has an example of creating a CustomRenderableSeries, which is another way you could draw custom geometry at point locations.

Best regards,
Andrew

  • You must to post comments
Showing 2 results
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