This question is locked. New answers and comments are not allowed.
This is the code for my PIE chart
How can I add the percentage sign to the value on the chart view... I have tried out " DefaultLabelValue="#Y%" but I don't know where to put it.
Edit... found the answer... Have to add ItemLabelFormat="#%{P2}" into the telerik:PieSeriesDefinition
<
telerik:RadChart
Grid.Row
=
"1"
telerik:Theming.Theme
=
"Metro"
HorizontalAlignment
=
"Left"
Padding
=
"10"
x:Name
=
"pieChart"
BorderThickness
=
"0"
Foreground
=
"White"
ItemsSource
=
"{Binding PieData, Mode=TwoWay}"
VerticalAlignment
=
"Top"
>
<
telerik:RadChart.PaletteBrushes
>
<
SolidColorBrush
Color
=
"{StaticResource QMFirstColor}"
/>
<
SolidColorBrush
Color
=
"{StaticResource QMSecondColor}"
/>
</
telerik:RadChart.PaletteBrushes
>
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
LegendLabel
=
"Legend"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:PieSeriesDefinition
AxisName
=
"Evals"
ShowItemLabels
=
"True"
/>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:ItemMapping
FieldName
=
"Total"
DataPointMember
=
"YValue"
/>
<
telerik:ItemMapping
FieldName
=
"Label"
DataPointMember
=
"LegendLabel"
/>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
ChartLegendPosition
=
"Bottom"
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
LabelFormatBehavior
=
"HumanReadable"
LegendName
=
"legend"
FontFamily
=
"{StaticResource DefaultLabelStyle}"
FontSize
=
"13.333"
>
<
telerik:ChartArea.AxisX
>
<
telerik:AxisX
AxisLabelsVisibility
=
"Visible"
/>
</
telerik:ChartArea.AxisX
>
<
telerik:ChartArea.AxisY
>
<
telerik:AxisY
AxisName
=
"Evals"
Title
=
"Monthly Totals"
/>
</
telerik:ChartArea.AxisY
>
</
telerik:ChartArea
>
</
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartLegend
Header
=
"{Binding ElementName=ChartLegend1,Path=Tag,Mode=TwoWay, Converter={StaticResource LabelConverter}}"
x:Name
=
"legend"
LegendItemMarkerShape
=
"Circle"
Visibility
=
"Visible"
Padding
=
"0"
/>
</
telerik:ChartDefaultView.ChartLegend
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
</
telerik:RadChart
>
How can I add the percentage sign to the value on the chart view... I have tried out " DefaultLabelValue="#Y%" but I don't know where to put it.
Edit... found the answer... Have to add ItemLabelFormat="#%{P2}" into the telerik:PieSeriesDefinition