SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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?
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.
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.
Please login first to submit.