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 ) |
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).
Remarks
Adds new empty data series to the collection of data series. To update this series the UpdateDataSeries(String, array<Double,2>[,](,)[,]) method should be used.
The meaning of the width parameter depends on the data series type:
- Line – width of the line;
- Dots – size of dots (rectangular dots with specified width and the same height);
- Connected dots – size of dots (dots are connected with one pixel width line).