Chart.AddSeries Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data points and series attributes for the chart.
public System.Web.Helpers.Chart AddSeries(string name = default, string chartType = "Column", string chartArea = default, string axisLabel = default, string legend = default, int markerStep = 1, System.Collections.IEnumerable xValue = default, string xField = default, System.Collections.IEnumerable yValues = default, string yFields = default);
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
The unique name of the series.
- chartType
- String
The chart type of a series.
- chartArea
- String
The name of the chart area that is used to plot the data series.
- axisLabel
- String
The axis label text for the series.
- legend
- String
The name of the series that is associated with the legend.
- markerStep
- Int32
The granularity of data point markers.
- xValue
- IEnumerable
The values to plot along the x-axis.
- xField
- String
The name of the field for x-values.
- yValues
- IEnumerable
The values to plot along the y-axis.
- yFields
- String
A comma-separated list of name or names of the field or fields for y-values.
Returns
The chart.