Charting for WPF Programmer's Guide

PieSeries.Labels Property

See Also
 


Gets or sets custom labels for pie pieces or pie legend.

Namespace: MindFusion.Charting.Wpf
Assembly: Charting

 Syntax

C#  Copy Code

public IList Labels { get; set; }

Visual Basic  Copy Code

Public Property Labels As IList

 Property Value

A list with objects. Default is a list with five labels e.g. new string[] { "Jan", "Feb", "March", "April", "May" }.

 Remarks

The Labels property specifies custom labels for the PieSeries. If there is a legend, they are drawn as items in the legend. If the InnerLabelType or OuterLabelType propertiy is set to LabelType.CustomText the labels are drawn inside or outside pie pieces.

Objects of any type are accepted. They are converted to string-s using the standard WPF ToString() method.

 See Also