Fork of Modern UI (Metro) Charts WPF https://modernuicharts.codeplex.com/ with various bug fixes/enhancments
Bug fixes:
- You can now set 0 as starting percentage in
RadialGaugeChart
- You can now safely set percentages to fractional values in
RadialGaugeChart
- Fixed layout positioning of
PiePiece
labels
Enhancements
- Added
RadialPieceStyle
toRadialGaugeChart
along with additionalPercentageFontSize
andPercentageSmallFontSize
properties onRadialGaugePiece
to make it more customizable. Sample usage:
<charts:RadialGaugeChart>
<charts:RadialGaugeChart.RadialPieceStyle>
<Style TargetType="charts:RadialGaugePiece" BasedOn="{StaticResource {x:Type charts:RadialGaugePiece}}">
<Setter Property="ClientHeight" Value="100" />
<Setter Property="ClientWidth" Value="100" />
<Setter Property="PercentageFontSize" Value="18" />
<Setter Property="PercentageSmallFontSize" Value="12" />
</Style>
</charts:RadialGaugeChart.RadialPieceStyle>
<charts:RadialGaugeChart>
- Added
PiePieceStyle
toPieChart
along with additionalValueFormatString
properties onPiePiece
to make it's labels more customizable. Sample usage:
<charts:PieChart>
<charts:RadialGaugeChart.PiePieceStyle>
<Style TargetType="charts:PiePiece" BasedOn="{StaticResource {x:Type charts:PiePiece}}">
<Setter Property="ValueFormatString" Value="n2" />
</Style>
</charts:PieChart.PiePieceStyle>
<charts:PieChart>
- You can now customize
ItemsPanelTemplate
onRadialGaugeChart
. Sample usage:
<ResourceDictionary Source="pack://application:,,,/De.TorstenMandelkow.MetroChart;component/Themes/Generic.xaml"/>
<charts:RadialGaugeChart>
<charts:RadialGaugeChart.PlotterAreaStyle>
<Style TargetType="charts:PlotterArea" BasedOn="{StaticResource RadialGaugeChartPlotterAreaStyle}">
<Setter Property="DataPointItemsPanel">
<Setter.Value>
<ItemsPanelTemplate>
<UniformGrid Rows="1" />
</ItemsPanelTemplate>
</Setter.Value>
</Setter>
</Style>
</charts:RadialGaugeChart.PlotterAreaStyle>
</charts:RadialGaugeChart>