MindFusion.Charting Programmer's Guide

AxesChart.XLabels Property

See Also
 





Gets or sets custom labels drawn at the X-axis.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public IList XLabels { get; set; }

Visual Basic  Copy Code

Public Property XLabels As IList

 Property Value

An object of type .NET IList that holds other lists with the labels.

 Remarks

The labels are drawn when XAxisSettings.LabelType is set to AxisLabelType.CustomText. If the labels are not set as strings, the control converts them automatically.

In multi-series charts, the labels are drawn in rows. The space among the rows depends on LabelSpan. LabelOffset specifies the offset of the labels to the chart axis.

The labels can be drawn rotated if RotationAngle is greater than zero. LabelBrush sets the brush for the labels. If MultiColoredLabels is true, the labels are drawn with the ChartBrushes.

If the labels are less than the data, the control adds empty strings. If they are more, the excess labels are omitted.

Default value for the XLabels property is an empty list.

 See Also