Chart.AddSeries(String, String, String, String, String, Int32, IEnumerable, String, IEnumerable, String) Chart.AddSeries(String, String, String, String, String, Int32, IEnumerable, String, IEnumerable, String) Chart.AddSeries(String, String, String, String, String, Int32, IEnumerable, String, IEnumerable, String) Method

Definition

Provides data points and series attributes for the chart.

public System.Web.Helpers.Chart AddSeries (string name = null, string chartType = "Column", string chartArea = null, string axisLabel = null, string legend = null, int markerStep = 1, System.Collections.IEnumerable xValue = null, string xField = null, System.Collections.IEnumerable yValues = null, string yFields = null);
member this.AddSeries : string * string * string * string * string * int * System.Collections.IEnumerable * string * System.Collections.IEnumerable * string -> System.Web.Helpers.Chart
Public Function AddSeries (Optional name As String = null, Optional chartType As String = "Column", Optional chartArea As String = null, Optional axisLabel As String = null, Optional legend As String = null, Optional markerStep As Integer = 1, Optional xValue As IEnumerable = null, Optional xField As String = null, Optional yValues As IEnumerable = null, Optional yFields As String = null) As Chart
Parameters
name
String String String

The unique name of the series.

chartType
String String String

The chart type of a series.

chartArea
String String String

The name of the chart area that is used to plot the data series.

axisLabel
String String String

The axis label text for the series.

legend
String String String

The name of the series that is associated with the legend.

markerStep
Int32 Int32 Int32

The granularity of data point markers.

xValue
IEnumerable IEnumerable IEnumerable

The values to plot along the x-axis.

xField
String String String

The name of the field for x-values.

yValues
IEnumerable IEnumerable IEnumerable

The values to plot along the y-axis.

yFields
String String String

A comma-separated list of name or names of the field or fields for y-values.

Returns

The chart.

Applies to