Pre loader

More than one stroke thickness on a single series

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

Answered
1
0

I saw in the examples where a “gain” and “loss” affected the color of a series. This took a bit of time; however, I figured out was you were doing and was able to implement it.

Please see the attached image. There are 2 sections in my series that are “Green” whereas the remainder of the series is gray. I’d like to be able to do 2 things ONLY to the green area.

  • Show point markers ONLY on the points in the green area.
  • Increase the stroke thickness.
Version
5.2.1.11703
Images
  • You must to post comments
Best Answer
1
0

Hi Chris,

A single series can have multiple colors via the PaletteProvider API (+Documentation)

A single series can only have a single StrokeThickness, however there is nothing stopping you from having two series, one with StrokeThickness=1 and one with StrokeThickness=2 and using the feature of double.NaN to draw gaps in the series

Similarly, to show pointmarkers at some places and not others, simply have another ScatterSeries with the X,Y points you want to show.

If you would really like to do all the above in a single series, it is also possible using the Custom Series API, however the above is simpler.

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