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

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.