MindFusion.Charting Programmer's Guide

BarChart.ClusterLabels Property

See Also
 





Gets or sets custom labels for clustered bar charts.

Namespace: MindFusion.Charting.WebForms
Assembly: MindFusion.Charting.WebForms

 Syntax

C#  Copy Code

public IList ClusterLabels { get; }

Visual Basic  Copy Code

Public ReadOnly Property ClusterLabels As IList

 Property Value

An object of type .NET IList that holds the labels.

 Remarks

The property specifies custom labels for each bar cluster or data group. If the labels are less than the clusters, MindFusion.Charting adds empty strings. ClusterLabels are drawn when the label type for the axis at which the bars are drawn is AxisLabelType.CustomText.

Only one label is drawn at each bar cluster / data group. If the LabelType is AxisLabelType.CustomText and the ClusterLabels property is empty, MindFusion.Charting takes the labels from the XLabels or YLabels properties according to the chart's orientation. In this case, each bar has a label.

Cluster labels are considered only when the BarType is Clustered2D, Clustered3D, Groups2D or Groups3D.

Default value for the ClusterLabels property is an empty array.

 See Also