SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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.