Click or drag to resize
Accord.NET (logo)

ChartAddDataSeries Method (String, Color, ChartSeriesType, Int32)

Add data series to the chart.

Namespace:  Accord.Controls
Assembly:  Accord.Controls (in Accord.Controls.dll) Version: 3.8.0
Syntax
public void AddDataSeries(
	string name,
	Color color,
	ChartSeriesType type,
	int width
)
Request Example View Source

Parameters

name
Type: SystemString
Data series name.
color
Type: System.DrawingColor
Data series color.
type
Type: Accord.ControlsChartSeriesType
Data series type.
width
Type: SystemInt32
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, Double) 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).

See Also