Labels can be displayed for any chart type - line charts display them at data points, bar charts - inside or at the top of bars, pie charts - inside or beside each pie slice.
Each chart can have a title which is set with Chart.Title. If you don't want a title you can hide it with the Chart.TitleVisibility property. Use Chart.TitleFontStyle, Chart.TitleFontFamily, Chart.TitleFontSize and Chart.TitleFontWeight to customize the appearance of the title label.
Line charts show labels at data points with the LineSeries.Labels property. If you want to use data binding, the property is LineSeries.LabelPath.
Bar charts can show labels inside bars depending on the value of the BarSeries.InnerLabelType property. If it is set to LabelType.CustomText, custom labels are specified with BarSeries.InnerLabel. The type of labels at the top of the bars depends on BarSeries.TopLabelType. Custom labels are set with BarSeries.TopLabel. If you want to use data binding for setting the labels the properties are BarSeries.InnerLabelPath and BarSeries.TopLabelPath.
Pie charts can show labels both inside and outside the pieces. The type depends on PieSeries.InnerLabelType and PieSeries.OuterLabelType. If custom labels are drawn, the properties are PieSeries.InnerLabel or PieSeries.OuterLabel as well PieSeries.InnerLabelPath and PieSeries.OuterLabelPath if you use data binding.
Radar charts can show labels at their inner axis, at the outer axis and at data points for each series. Use the InnerLabelType property to specify the labels for the inner axis and OuterLabelType to set the labels for the outer axis. If you need custom labels, use InnerLabels and OuterLabels to specify them. Each RadarSeries has its LabelType property which sets the labels drawn at data points for this series. Custom labels are set with RadarSeries.Labels.
The Font settings for labels drawn at each chart are set with ChartSeries.LabelFontFamily, ChartSeries.LabelFontSize, ChartSeries.LabelFontWeight and ChartSeries.LabelFontStyle.
You can set the formt of your numbers with the standard numeric format strings supported by the Silverlight class library. The property for this is AxisSettings.LabelFormat:
C#
![]() |
---|
//format the labels as currency |
VB.NET
![]() |
---|
'format the labels as currency |