Class ChartSeriesModel
This is the core data container implementation for a chart. This is a very simple model that stores data in the list inherited from the CollectionBase. It relies on the events raised by the CollectionBase base class to inform users of the changes that had occurred to the series.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public class ChartSeriesModel : CollectionBase, IList, ICollection, IEnumerable, IEditableChartSeriesModel, IChartSeriesModel, IChartEditableCategory, IChartSeriesCategory
Constructors
ChartSeriesModel()
Initializes a new instance of the ChartSeriesModel class.
Declaration
public ChartSeriesModel()
Methods
Add(Double, Double[])
Adds data to the end of the data representation.
Declaration
public void Add(double x, double[] yValues)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double[] | yValues |
Add(Double, Double[], Boolean)
Adds data to the end of the data representation.
Declaration
public void Add(double x, double[] yValues, bool isEmpty)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x. |
System.Double[] | yValues | The y values. |
System.Boolean | isEmpty | if set to |
Add(Double, Double[], Boolean, String)
Adds data to the end of the data representation.
Declaration
public void Add(double x, double[] yValues, bool isEmpty, string category)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x. |
System.Double[] | yValues | The y values. |
System.Boolean | isEmpty | if set to |
System.String | category | The category values. |
Add(Double, Double[], String)
Adds data to the end of the data representation.
Declaration
public void Add(double x, double[] yValues, string category)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | |
System.Double[] | yValues | |
System.String | category |
Add(String)
Adds data to the end of the data representation.
Declaration
public void Add(string category)
Parameters
Type | Name | Description |
---|---|---|
System.String | category |
GetCategory(Int32)
Please refer to
Declaration
public string GetCategory(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
Returns
Type |
---|
System.String |
GetEmpty(Int32)
Please refer to GetEmpty(Int32).
Declaration
public bool GetEmpty(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
Returns
Type |
---|
System.Boolean |
GetX(Int32)
Please refer to GetX(Int32).
Declaration
public double GetX(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
Returns
Type |
---|
System.Double |
GetY(Int32)
Please refer to GetY(Int32).
Declaration
public double[] GetY(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
Returns
Type |
---|
System.Double[] |
Insert(Int32, Double, Double[])
Please refer to Insert(Int32, Double, Double[]).
Declaration
public void Insert(int xIndex, double x, double[] yValues)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | |
System.Double | x | |
System.Double[] | yValues |
Insert(Int32, Double, Double[], String)
Please refer to Insert(Int32, Double, Double[]).
Declaration
public void Insert(int xIndex, double x, double[] yValues, string category)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | |
System.Double | x | |
System.Double[] | yValues | |
System.String | category |
OnClear()
Declaration
protected override void OnClear()
Overrides
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
OnInsert(Int32, Object)
Declaration
protected override void OnInsert(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
OnRemove(Int32, Object)
Declaration
protected override void OnRemove(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value |
Overrides
OnSet(Int32, Object, Object)
Declaration
protected override void OnSet(int index, object value, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | value | |
System.Object | newValue |
Overrides
OnSetComplete(Int32, Object, Object)
Declaration
protected override void OnSetComplete(int index, object newValue, object oldValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | newValue | |
System.Object | oldValue |
Overrides
RaiseChanged(ListChangedEventArgs)
Raises the Changed event.
Declaration
protected void RaiseChanged(ListChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ListChangedEventArgs | args | The System.ComponentModel.ListChangedEventArgs instance containing the event data. |
Remove(Int32)
Please refer to Remove(Int32).
Declaration
public void Remove(int xIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex |
SetCategory(Int32, String)
Please refer to
Declaration
public void SetCategory(int xIndex, string category)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | |
System.String | category |
SetEmpty(Int32, Boolean)
Please refer to SetEmpty(Int32, Boolean).
Declaration
public void SetEmpty(int xIndex, bool isEmpty)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | |
System.Boolean | isEmpty |
SetX(Int32, Double)
Please refer to SetX(Int32, Double).
Declaration
public void SetX(int xIndex, double value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | |
System.Double | value |
SetY(Int32, Double[])
Please refer to SetY(Int32, Double[]).
Declaration
public void SetY(int xIndex, double[] yValues)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | xIndex | |
System.Double[] | yValues |
Events
Changed
Please refer to Changed.
Declaration
public event ListChangedEventHandler Changed
Event Type
Type |
---|
System.ComponentModel.ListChangedEventHandler |