Attaching the Chart Label by Data Point

To attach a ChartLabel to a data point, set the AttachMethod property to AttachMethodEnum.DataIndex, and then under the AttachMethodData object set the GroupIndex, SeriesIndex, and PointIndex properties. These properties specify the ChartGroup, Series, and Point indices. PointIndex refers to the element of the data array. SeriesIndex refers to the element of the series array. Each series has arrays of data.

The following code example attaches a ChartLabel to a data point:

      Visual Basic

      C#

For more information on how to attach the chart label by data point at design time see, Attach by Data Index.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.