SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I’m rendering an XyDataSeries chart, with the series data being populated by a view model. The VM also has an array of “metadata” objects (one per series point), and I would like to change the colour of each point based on a property value in that point’s metadata object (e.g. true=blue, false=red). What’s the best approach?
I thought about using two series – one for blue and one for red – the VM adds each point to the appropriate series based on its metadata, but thought I’d ask first in case there was a slicker solution, e.g. using bindings.
No, unfortunately, this doesn’t work with XyScatterRenderableSeries now. That’s because PointMarkers are rendered as bitmaps so binding won’t work. You could try to implement CustomRenderableSeries and implelement desired behavior there. But seems your solution(having separate series and append/remove points dynamically) seems to be the best for now.
Please login first to submit.