Chart.AddSeries Method
Provides data points and series attributes for the chart.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Function AddSeries ( _
name As String, _
chartType As String, _
chartArea As String, _
axisLabel As String, _
legend As String, _
markerStep As Integer, _
xValue As IEnumerable, _
xField As String, _
yValues As IEnumerable, _
yFields As String _
) As Chart
'Usage
Dim instance As Chart
Dim name As String
Dim chartType As String
Dim chartArea As String
Dim axisLabel As String
Dim legend As String
Dim markerStep As Integer
Dim xValue As IEnumerable
Dim xField As String
Dim yValues As IEnumerable
Dim yFields As String
Dim returnValue As Chart
returnValue = instance.AddSeries(name, _
chartType, chartArea, axisLabel, _
legend, markerStep, xValue, xField, _
yValues, yFields)
public Chart AddSeries(
string name,
string chartType,
string chartArea,
string axisLabel,
string legend,
int markerStep,
IEnumerable xValue,
string xField,
IEnumerable yValues,
string yFields
)
public:
Chart^ AddSeries(
String^ name,
String^ chartType,
String^ chartArea,
String^ axisLabel,
String^ legend,
int markerStep,
IEnumerable^ xValue,
String^ xField,
IEnumerable^ yValues,
String^ yFields
)
member AddSeries :
name:string *
chartType:string *
chartArea:string *
axisLabel:string *
legend:string *
markerStep:int *
xValue:IEnumerable *
xField:string *
yValues:IEnumerable *
yFields:string -> Chart
public function AddSeries(
name : String,
chartType : String,
chartArea : String,
axisLabel : String,
legend : String,
markerStep : int,
xValue : IEnumerable,
xField : String,
yValues : IEnumerable,
yFields : String
) : Chart
Parameters
- name
Type: System.String
The unique name of the series.
- chartType
Type: System.String
The chart type of a series.
- chartArea
Type: System.String
The name of the chart area that is used to plot the data series.
- axisLabel
Type: System.String
The axis label text for the series.
- legend
Type: System.String
The name of the series that is associated with the legend.
- markerStep
Type: System.Int32
The granularity of data point markers.
- xValue
Type: System.Collections.IEnumerable
The values to plot along the x-axis.
- xField
Type: System.String
The name of the field for x-values.
- yValues
Type: System.Collections.IEnumerable
The values to plot along the y-axis.
- yFields
Type: System.String
A comma-separated list of name or names of the field or fields for y-values.
Return Value
Type: System.Web.Helpers.Chart
The chart.