Click or drag to resize
Accord.NET (logo)

ChartAddDataSeries Method (String, Color, ChartSeriesType, Int32, Boolean)

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,
	bool updateYRange
)
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).
updateYRange
Type: SystemBoolean
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.

See Also