MindFusion.Charting Programmer's Guide

AxesChart.Y2Labels Property

See Also
 





Gets or sets custom labels for the second Y-axis.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public IList Y2Labels { get; set; }

Visual Basic  Copy Code

Public Property Y2Labels As IList

 Property Value

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

 Remarks

Custom labels are drawn when the Y2AxisSettings.AxiLabelsType property is set to AxisLabelType.CustomText. Second Y-axis is drawn when the Y2Data property is not an empty list.

When there are more than one series of Y2Data, the labels are drawn in column. The distance between the columns is set with Y2AxisSettings.LabelSpan. The offset of the first label column to the Y2-axis is set with Y2AxisSettings.LabelOffset.

The labels can be of any data type - numbers, strings and so on. The control converts automatically the data into strings. The labels are drawn with the LabelBrush; the font is set with LabelFont.

Default value for the Y2Labels property is an empty list.

 See Also