I have searched and searched, but cannot figure out how to have each bar in each series be a different color from the bound palette per category. Is this doable? It appears so if you manually create each series, but my series are dynamic. Attached is the markup for my chart control in its current state.
I also cannot get the smart labels to do anything. I'm not sure if I have declare the strategy correctly or not.
I also cannot get the smart labels to do anything. I'm not sure if I have declare the strategy correctly or not.
<
telerik:RadCartesianChart
Palette
=
"{Binding Palette}"
telerik:ChartSeriesProvider.IsDynamicSeries
=
"True"
TooltipTemplate
=
"{StaticResource BarChartTemplate}"
HoverMode
=
"FadeOtherSeries"
>
<
telerik:RadCartesianChart.SmartLabelsStrategy
>
<
telerik:ChartSmartLabelsStrategy
/>
</
telerik:RadCartesianChart.SmartLabelsStrategy
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
LabelFormat
=
"N2"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:CategoricalAxis
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:RadCartesianChart.SeriesProvider
>
<
telerik:ChartSeriesProvider
Source
=
"{Binding BarData}"
>
<
telerik:ChartSeriesProvider.SeriesDescriptors
>
<
telerik:CategoricalSeriesDescriptor
ItemsSourcePath
=
"ChartData"
ValuePath
=
"Value"
CategoryPath
=
"Category"
>
<
telerik:CategoricalSeriesDescriptor.Style
>
<
Style
TargetType
=
"telerik:BarSeries"
>
<
Setter
Property
=
"CombineMode"
Value
=
'Cluster'
/>
</
Style
>
</
telerik:CategoricalSeriesDescriptor.Style
>
</
telerik:CategoricalSeriesDescriptor
>
</
telerik:ChartSeriesProvider.SeriesDescriptors
>
</
telerik:ChartSeriesProvider
>
</
telerik:RadCartesianChart.SeriesProvider
>
</
telerik:RadCartesianChart
>