This section provides information on using the DrawDataSeriesEventArgs for creating a custom brush during plotting.
Whenever a data series is plotted, the DrawDataSeries event of C1Chart fires. This event allows defining the selection of a custom brush during plotting. The event sender object is the C1Chart.ChartDataSeries to be plotted. The event data (DrawDataSeriesEventArgs) have the following properties:
· The Brush property defines the brush that will be used for rendering the data series. You should create your own brush and assign it to this property if want use to a custom brush.
· The DisposeBrush is Boolean value that specifies whether the brush should be disposed after using. If DisposeBrush is set to False then you must dispose the brush yourself.
· The GroupIndex property defines index of chart group.
· The SeriesIndex property defines index of chart group.
· The Bounds property represents rectangle area in which data will be plotted. This rectangle will be useful when creating gradient brushes.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |