Version

Specify Row Labels

Many chart types support automatic series labeling based on the first string column that is projected in a row. If another column specifies the desired series labels, then a row labels column can be specified. This topic describes how you can select row labels other than the default ones determined by the chart type.

This topic describes how the row labels can be taken from a specified column in the data source. By default, the row labels are read from the first column in the table that contains a string. To override this, the UseRowLabelsColumn property will need to be set to True. Then the RowLabelsColumn property can be set to the column number in that data source that contains the row labels.

Enter the following code to specify the column to use for row labels:

In Visual Basic:

Private Sub Specify_Row_Labels_Load(ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraChart1.Data.UseRowLabelsColumn = True
	Me.UltraChart1.Data.RowLabelsColumn = 3
End Sub

In C#:

private void Specify_Row_Labels_Load(object sender, EventArgs e)
{
	this.ultraChart1.Data.UseRowLabelsColumn = true;
	this.ultraChart1.Data.RowLabelsColumn = 3;
}