I’m using both Charts (XYChart) and MicroCharts (MicroXYChart) in a WPF app. The MicroCharts act as “thumbnail previews” that open a full chart when clicked, so I’m trying to keep the series colors consistent between the two controls.
Scenario
- Full chart: XYChart with 3 series in this order:
- Bar series
- Bar series
- Line series
- Micro chart:
MicroXYChartwith the same data and series order (2x bar + 1x line)
Expected
Both controls pick the same automatic series colors (e.g., first three palette colors: green, blue, orange).
Actual
XYChartrenders series colors as green, blue, orangeMicroXYChartrenders as green, blue, blue- However, when I enable hot tracking on the MicroXYChart, the legend/tooltip indicator appears to use green, blue, orange (so the third “orange” seems to exist somewhere, just not applied to the rendered series).
Question
- Is this difference in automatic color assignment between
XYChartand MicroXYChart expected behavior (e.g., MicroCharts restarting palettes per series type), or is it a bug? - What’s the recommended way to ensure matching series colors between MicroCharts and Charts?