Chart: Color Palette not used after applying custom DataPointStyle

Mar 31, 2010 at 2:39 PM
Edited Apr 1, 2010 at 9:05 AM

Hi,

I try to style a ColumnSeries, but whenever I set Style to DataPointStyle-Property of my ColumnSeries, it does not use the colors from the Palette anymore.
It does not matter what kind of style I use, among others I have tried an empty style or a copy of the default Style from the generic.xaml.

Why is that and what do I need todo so it still works?

 

Thanks.

Apr 1, 2010 at 9:55 AM

Okay I figured out that the Palette-Property of the Chart overrides the Styles of the individual DataPoints.. so removes the Style of the DataPointStyle-Property from the Series...

That seems ... odd ... as an API-Design... that to define the colors you cannot use DataPointStyle-Property of the Series anymore...

I want to use the Color-Palette for different types of Series (Line, Colum etc) but obviously different template for the different types of DataPoints...

I could make a Template-Selector or something...