Hi,
I think there is a bug when defining a ChartPalette with a series family for points. It is not coloring the points according to the series palette. Say I have a chart with a mixed set of line and point series. I add two PaletteEntryCollections for each series family:
ChartPalette palette = LinePalette;
palette.GlobalEntries.Clear();
palette.SeriesEntries.Clear();
palette.SeriesEntries.Add(
new
PaletteEntryCollection());
palette.SeriesEntries.Add(
new
PaletteEntryCollection());
palette.SeriesEntries[0].SeriesFamily =
"Line"
;
foreach
(ChartTimeSeries serie
in
model.ChartData.Where(s => s.Type ==
typeof
(LineSeries)))
{
SolidColorBrush brush =
new
SolidColorBrush(serie.Color);
PaletteEntry pe =
new
PaletteEntry(brush, brush);
palette.SeriesEntries[0].Add(pe);
}
palette.SeriesEntries[1].SeriesFamily =
"Point"
;
palette.SeriesEntries[1].Add(
new
PaletteEntry(
new
SolidColorBrush(Colors.Yellow)));
palette.SeriesEntries[1].Add(
new
PaletteEntry(
new
SolidColorBrush(Colors.Purple)));