Attaching the Chart Label by Data Coordinate

To attach a ChartLabel to a data coordinate on the chart, set the AttachMethod property to AttachMethodEnum.DataCoordinate, and then under the AttachMethodData object set the X and Y properties to the data coordinates at which the ChartLabel is to be attached. For example, the following attaches a ChartLabel to the data coordinate (1.1, 15.8):

      Visual Basic

      C#

ChartLabels can only be attached to a data coordinate if the chart is an Area or XY-Plot. Any part of the ChartLabel that falls outside of the ChartArea is clipped.

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


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