Attaching the Chart Label by Pixel Coordinate

In a coordinate attachment the label can be attached anywhere on the chart. The number of pixels between the top-left corner of the chart to the ChartLabel can be specified.

To attach a ChartLabel to a pixel coordinate, set the AttachMethod property to AttachMethodEnum.Coordinate, and then under the AttachMethodData object set the X and the Y properties to the coordinates at which the ChartLabel is to be attached. For example, the following attaches a ChartLabel to the coordinates specified:

      Visual Basic

      C#

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


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