SmartLabelsStyle class is used to enable and configure the SmartLabels algorithm for data point labels and annotations. In most of the cases it is enough just to enable the algorithm, but this class also contains properties which allow controlling how the labels are moved around to avoid collisions. Visual appearance of callouts can also be set through this class.
Visual Basic (Declaration) | |
---|---|
Public Class SmartLabelsStyle |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class SmartLabelsStyle |
This class defines the style for data point SmartLabels positioning.
To enable smart labels, set the Enabled property to true. The default value is false.
Using this class you can also:
- automatically reposition the data point labels to prevent overlapping.
- control the appearance of callout lines and the use of line end caps.
- defines the rules with respect to distance of label repositioning.
- defines the rules with respect to direction of label repositioning.
- defines the overlapping rules with respect to labels and markers.
- hide labels when overlapping issues cannot be resolved.
NOTE: SmartLabels only work when the Label angle property is set to zero.
System.Object
Dundas.Charting.WinControl.SmartLabelsStyle
Dundas.Charting.WinControl.AnnotationSmartLabelsStyle
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family