Pre loader

Series with different colors

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

Hi,

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?

Thanks,
Egbert

Images
  • You must to post comments
0
0

Hello Egbert,

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.

Best regards,
Andrew

  • 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