While implementing the LayoutControlExpanderGroup in my project I thought the doughnut charts shown in the WPF example were quite nice visually so decided to use those for weights on transactions. After many days of struggling to reproduce the code I finally got something somewhat working but I'm still having problems. I don't know where to set the max value of a chart, I'm guessing the example has it set at around 15,000 since even 11234 steps on Feb, 09 is still a ways away from the max. My weights go from 25,000 up to 170,000 so even the lowest weight show 100% filled. I can't find documentation on where to set this max value.
I'm also having a hard time wrapping the text in the middle. I have a date time that has year/month/day followed by a space then hour/minute. For some reason it's all on the same line and goes outside the doughnut.
My XAML is quite similar to the example in the StepsPerDay.xaml in the Layout Control demo (first look). I just have different properties bound to it.
<telerik:RadPieChart Palette="Flower"
Style="{StaticResource ChartStyle}">
<telerik:RadPieChart.Series>
<telerik:DoughnutSeries ItemsSource="{Binding Transaction.Weights}"
InnerRadiusFactor="0.75"
RadiusFactor="1"
ValueBinding="Weight">
<telerik:DoughnutSeries.AngleRange>
<telerik:AngleRange StartAngle="270" />
</telerik:DoughnutSeries.AngleRange>
<telerik:DoughnutSeries.SliceStyles>
<Style TargetType="Path">
<Setter Property="Fill" Value="{Binding DataItem.WeightFill}" />
</Style>
</telerik:DoughnutSeries.SliceStyles>
<telerik:DoughnutSeries.LabelDefinitions>
<telerik:ChartSeriesLabelDefinition Margin="20">
<telerik:ChartSeriesLabelDefinition.Template>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding DataItem.WeightDisplay}"
Style="{StaticResource BoldLabelStyle}" />
<TextBlock Text="{Binding DataItem.WeighInTimeDisplay}"
Foreground="Black"
TextWrapping="Wrap"
TextAlignment="Center" />
</StackPanel>
</DataTemplate>
</telerik:ChartSeriesLabelDefinition.Template>
</telerik:ChartSeriesLabelDefinition>
</telerik:DoughnutSeries.LabelDefinitions>
</telerik:DoughnutSeries>
</telerik:RadPieChart.Series>
</telerik:RadPieChart>