MindFusion.Charting Programmer's Guide

ChartElement.Index Property

See Also
 





Gets the index of the chart element.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public int Index { get; }

Visual Basic  Copy Code

Public ReadOnly Property Index As Integer

 Property Value

An int value that specifies the index.

 Remarks

The index of the element represents the place that the chart element has among all other chart elements. The index is calculated according to the position of the data value it represents among all other data values. This means:

  • For line charts, the Index represents the index of the Line series in the XData and YData properties.
  • For bar charts, the index of the Bar represents the position of the number, which is represented by this Bar in the Data list.
  • For scatter charts, the Index represents the position of the value, which this scatter represents in the YData or XData lists, depending on whether the chart is vertical or horizontal.
  • For bubble charts, the Index represents the index of the number, which is shown by this Bubble in the YData or Y2Data list if used.
  • For pie charts, the Index shows the position of the PiePiece in the chart.
  • For radar charts, the Index shows the position of the RadarPiece in the chart.

All ChartElement objects in a chart have unique indexes. The index remains unchanged even when sorting has been applied. 

 See Also