Originally based on this post: http://ko.infragistics.com/community/forums/p/64311/478866.aspx
We would like to use this range of colors:
<x:Array x:Key="SeriesBrushes" Type="Brush"> <SolidColorBrush Color="#FFBA131A" Opacity=".75" /> <SolidColorBrush Color="#FFEF413D" Opacity=".75" /> <SolidColorBrush Color="#FFF58220" Opacity=".75" /> <SolidColorBrush Color="#FFFAA61A" Opacity=".75" /> <SolidColorBrush Color="#FFFFF200" Opacity=".75" /> <SolidColorBrush Color="#FFCFFC8B" Opacity=".75" /> <SolidColorBrush Color="#FF6CCF32" Opacity=".75" /> <SolidColorBrush Color="#FF00A289" Opacity=".75" /> <SolidColorBrush Color="#FF00B6BD" Opacity=".75" /> <SolidColorBrush Color="#FF0066B3" Opacity=".75" /> <SolidColorBrush Color="#FF389FDA" Opacity=".75" /> <SolidColorBrush Color="#FF9ADAFF" Opacity=".75" /> <SolidColorBrush Color="#FF7766B5" Opacity=".75" /> <SolidColorBrush Color="#FF95086F" Opacity=".75" /> <SolidColorBrush Color="#FF5C2D91" Opacity=".75" /> <SolidColorBrush Color="#FFAA55A1" Opacity=".75" /> <SolidColorBrush Color="#FFF49AC1" Opacity=".75" /> <SolidColorBrush Color="#FFFFFFFF" Opacity=".75" /> <SolidColorBrush Color="#FF898989" Opacity=".75" /> <SolidColorBrush Color="#FF464646" Opacity=".75" /> <SolidColorBrush Color="#FF9E520E" Opacity=".75" /> <SolidColorBrush Color="#FFB38550" Opacity=".75" /> </x:Array>
<x:Array x:Key="SeriesBrushes"
Type="Brush">
<SolidColorBrush Color="#FFBA131A"
Opacity=".75" />
<SolidColorBrush Color="#FFEF413D"
<SolidColorBrush Color="#FFF58220"
<SolidColorBrush Color="#FFFAA61A"
<SolidColorBrush Color="#FFFFF200"
<SolidColorBrush Color="#FFCFFC8B"
<SolidColorBrush Color="#FF6CCF32"
<SolidColorBrush Color="#FF00A289"
<SolidColorBrush Color="#FF00B6BD"
<SolidColorBrush Color="#FF0066B3"
<SolidColorBrush Color="#FF389FDA"
<SolidColorBrush Color="#FF9ADAFF"
<SolidColorBrush Color="#FF7766B5"
<SolidColorBrush Color="#FF95086F"
<SolidColorBrush Color="#FF5C2D91"
<SolidColorBrush Color="#FFAA55A1"
<SolidColorBrush Color="#FFF49AC1"
<SolidColorBrush Color="#FFFFFFFF"
<SolidColorBrush Color="#FF898989"
<SolidColorBrush Color="#FF464646"
<SolidColorBrush Color="#FF9E520E"
<SolidColorBrush Color="#FFB38550"
</x:Array>
Hi Michael,
You will want to use the SeriesCreated event on the StackedColumnSeries since you are autogenerating the fragment series. The generated StackedFragmentSeries will be passed as the sender to the event so you can set whatever properties you need to on this object, including the brush it uses.
Thanks Rob.
Found the solution was looking for:
Snippet:
<infragistics:BrushCollection x:Key="BrushCollectionMultiColor"> <SolidColorBrush Color="#FFBA131A" Opacity=".90" />
.
</infragistics:BrushCollection>
<ig:XamDataChart x:Name="StackedAreaChart" Title="Stacked Area Chart" Subtitle="Titan Data" Legend="{Binding ElementName=StackedAreaLegend}" Brushes="{StaticResource BrushCollectionMultiColor}">
Thanks,
Michael