Bound MarkerFill for LineSeries

Oystein Bjorke 4 years ago 0
This discussion was imported from CodePlex

Jerry007 wrote at 2013-11-14 14:24:

Hello
I'm newbie user of OxyPlot. It looks impressive, however I can not find how to do the following:
I have a LineSerie bound to list of POCO's. One of the property of the poco is "status" enum
...I'd like to bind the state to a particular MarkerFill (like red/gree/blue)...is there a way how to achieve this?

As a workaround I would have to create additional 3 ScatterSeries with just points per each status with constant MarkerFill....

objo wrote at 2013-11-14 21:03:

Right, LineSeries does not support different fill color for each marker, and converters have not been implemented for the property bindings.
The workaround sounds like a good solution! Or you can populate the points of the scatter series yourself, not using binding.

Jerry007 wrote at 2013-11-15 07:56:

Thanks, I got inspired by this, which seems to scale better than adding additional series just for markers.
CodePlex