SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

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

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
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
Showing 2 results
Your Answer

Please first to submit.