Dundas Chart for Windows Forms
PieLabelStyle Custom Attribute
See Also Send comments on this topic.
Custom Attributes > PieLabelStyle Custom Attribute



Glossary Item Box

Gets or sets the DataPoint label position.
Visual Basic Copy Code
Imports Dundas.Charting.WinControl
  ...

' Set the Series to show labels as Ellipse and none for Point 3.
Chart1.Series(0)("PieLabelStyle") = "Ellipse"
Chart1.Series(0).Points(3)("PieLabelStyle") = "Disabled"

C# Copy Code
using Dundas.Charting.WinControl;
   ...

// Set the Series to show labels as Ellipse and none for Point 3.
Chart1.Series[0]["PieLabelStyle"] = "Ellipse";
Chart1.Series[0].Points[3]["PieLabelStyle"] = "Disabled";

Remarks

If a label is displayed outside the pie then the color of the connecting line is set by the BorderColor property by default but can also be controlled the PieLineColor custom attribute. 

Custom Attribute Summary
Possible Values: Disabled  - Labels are not shown.
Inside - Labels are placed inside the pie chart values.
Outside - Labels are placed outside the pie chart values. The connecting lines are straight lines.
Ellipse - Labels are placed outside the pie chart values. The connecting lines form an elliptical pattern.
Default Value: Inside
2D / 3D Limitations: Not Supported
Applies to Chart Element: Series and DataPoint Objects
Applies to Chart Types: Pie, Doughnut

See Also

©2009. All Rights Reserved.