2D Chart for WinForms | ComponentOne
Charting Labels / Customizing Chart Labels
In This Topic
    Customizing Chart Labels
    In This Topic

    Chart Labels Rotation

    Use the Rotation property to set or change the rotation of a ChartLabel. Rotation is available at design time under the DefaultLabelStyle node of the ChartLabels object or through the Label Collection Editor. For more information on the Label Collection Editor, see Label Collection Editor.

    The Rotation property can be set to Rotate0, Rotate90, Rotate180, or Rotate270. If you would like to set a specific angle other than 90, 180, or 270 degrees then you can override these values and specify the clockwise rotation angle around the connection point of the label.

    The RotationOverride property is useful for charts that require special labeling like psychometric charts where there is multiple axes with constant lines of various parameters such as enthalpy, humidity, temperature, etc.

    Note: The RotationOverride does not apply to Radial or RadialText compass values.

    Chart Labels Connecting Line

    Set the Connected property to True to show a connecting line from the data coordinate to the associated label. An numeric value should be specified for the Offset property to make room to draw the connecting line from the data coordinate to the label.

    The following image shows a connecting line with an offset value of 10 pixels:


    Chart Labels Border

    Use the BorderStyle and Thickness border properties to customize the border’s ChartLabel. These properties are available at design time under the Style node of the ChartLabels Collection Editor. For more information on the ChartLabels Collection Editor, see Label Collection Editor. This property can also be set in the DefaultLabelStyle node.

    For more information on how to customize the label’s appearance see, Modify the Appearance of the Chart Labels using the Properties Window.

    Chart Labels Colors

    Use the .NET Color properties to set the font for the ChartLabels. The color properties are available at design time under the Style node of the ChartLabels Collection Editor. For more information on the ChartLabels Collection Editor, see Label Collection Editor. See Chart Colors for more information. This property can also be set in the DefaultLabelStyle node.

    Chart Labels Font

    Use the font properties to customize the font used for a ChartLabel. These are available at design time under the Style node of the ChartLabels Collection Editor. For more information on the ChartLabels Collection Editor, see Label Collection Editor. This property can also be set in the DefaultLabelStyle node.

    See Also