Add data series to the chart.
Namespace:
AForge.ControlsAssembly: AForge.Controls (in AForge.Controls.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public void AddDataSeries( string name, Color color, Chart..::.SeriesType type, int width, bool updateYRange ) |
Parameters
- name
- Type: System..::.String
Data series name.
- color
- Type: System.Drawing..::.Color
Data series color.
- type
- Type: AForge.Controls..::.Chart..::.SeriesType
Data series type.
- width
- Type: System..::.Int32
Width (depends on the data series type, see remarks).
- updateYRange
- Type: System..::.Boolean
Specifies if RangeY should be updated.
Remarks
Adds new empty data series to the collection of data series.
The updateYRange parameter specifies if the data series may affect displayable Y range. If the value is set to false, then displayable Y range is not updated, but used the range, which was specified by user (see RangeY property). In the case if the value is set to true, the displayable Y range is recalculated to fully fit the new data series.