SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & 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.
Is it possible to have a serie of datapoints with different colors?
I’ve got data, which are movements of the body, and I would like to disable 1 or more movements from it.
The user would see the same data, but a part of the series will be a different color, so the user will see the difference between an enabled and a disabled movement (see attachments).
Is this possible in SciChart and if so, how?
Yes it is possible, but only starting with SciChart v2. There is a feature in v1.x called the BaseRenderableSeries.PaletteProvider. This allows you to create a class which derives from IPaletteProvider which can be used to change the colours of points in a series, on a point by point basis.
In v1.x this only works with Column, Candlestick and OHLC series, but in v2 we have extended this to work with Line series. There is an example in the examples suite in the beta which demonstrates how to change the colours of lines. The example is called ‘UsePaletteProvider’.
Take a look and let me know what you think.
Please login first to submit.