We have a requirement where we need to change the color of column series based on the underlying value. We have a reference value set to 0 for NumericYAxis which means negative value bars need to displayed with different color. Also some bars need to be painted differently based on estimate val etc.
It would be great if we can override some sort of DataTemplate to drive this req based on the data-triggers
please see:
http://community.infragistics.com/forums/p/48210/256989.aspx#256989
-Graham
Hi Graham,
I have similar requirements and can get by with only a column chart. Has anyone suggested or can you recomend a competitive product that might be able to bind colors to series elements?
Obviously the data is all there (see Tooltip Item values examples). This seems so fundamental.
Bob Hall
I was wondering since our requirement is pretty refined, display different color of bar for negative values (our ref point is 0)
We tried using a following style trigger on ColumnSeries, binding seems to be working but trigger is not working.
<Style x:Key="ColumnStyle" TargetType="{x:Type Charts:ColumnSeries}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsNeg}" Value="true">
<Setter Property="Brush" Value="Red"/>
</DataTrigger>
<DataTrigger Binding="{Binding Path=IsNeg}" Value="false">
<Setter Property="Brush" Value="Blue"/>
</Style.Triggers>
</Style>