Pre loader

Setting some of the markers in a data series to a different colour on a 2D scatter chart



In my 2D scatter chart, I’d like to set markers in a defined region of x and y to a different colour from the rest of the markers. I know I can do this with two data series (where one series is for the points within the region, and the other series is for all the other points) but is there a way to do it with one data series?

I was expecting to be able to do it in a similar way as I did it for a 3D scatter, setting the colour of the marker when I append it to the series:

xyzDataSeries3D.Append(x, y, z, new PointMetadata3D(color, 1));

Thanks for any help,

  • You must to post comments
Best Answer

Hi Daryl,

Thanks for your question. In SciChart 2D, things work a little differently. To achieve the desired you should use IPointMarkerPaletteProvider.

Please find the relevant documentation article at this link. The last section has a code example for the XyScatterRenderableSeries.

Hope this helps!

Best regards,

  • 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