Converting Coordinates to Series

In the C1Chart Legend, series are represented by the series name and a symbol containing a sample of the SymbolStyle or LineStyle. The SeriesFromCoord method of the Legend returns the nearest associated series from a pixel coordinate value located in the legend. For instance, suppose that the user clicks on the symbol for the first series in the Legend, the pixel coordinates of the user's mouse at this moment when input into the SeriesFromCoord method would return group and series values from the Group and Series parameters. The following is an example of this:

      Visual Basic

      C#

 Sample Project Available

For a complete sample using this method, see DataStyl or PieStuff sample located on http://helpcentral.componentone.com/Samples.aspx.


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