Explicit mechanism for ignoring default ColorAxis
Some series support using a ColorAxis but do not require it (e.g. ScatterSeries, VectorSeries being design at the moment) or could support not having a ColorAxis (e.g. RectangleSeries).
Presently, ScatterSeries will ignore a ColorAxis if it's Color is defined and not automatic, see #271 for why this is the case (essentially the same motivation as this issue). This isn't ideal, as it means you can't use an automatically picked color. The implementation also seems to be unhappy if there is no ColorAxis at all, which shouldn't be the case.
Options:
- #271 suggested a sentinel value for the
ColorAxisKeythat would resolve to anullaxis (String.Emptywas considered) - A new property in each applicable series to enable/disable use of
DefaultColorAxis(or anyColorAxis) - A new property in
PlotModelto enable/disable initialisation ofDefaultColorAxis - A new property in
IColorAxisorIAxisto enable/prevent use as a default axis
2 or 4 would be my preferred options from these; any other suggestions welcome.
This is all made more complicated by having to know whether to call PlotModel.GetDefaultColor
It seems that there is also a problem when there is a defined color axis and the color (markerfill in this case) is set. See #2078