PPCC Namespace
Initializes a new instance of the Series class
Namespace:
PPCC.ChartAssembly: Chart (in Chart.dll)
Version: 5.1.2859.14274
Syntax
| C# |
|---|
public Series( string seriesLabel, Color color, SeriesType seriesType, ScatterShape scatterShape ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ seriesLabel As String, _ color As Color, _ seriesType As SeriesType, _ scatterShape As ScatterShape _ ) |
| Visual C++ |
|---|
public: Series( String^ seriesLabel, Color color, SeriesType seriesType, ScatterShape scatterShape ) |
Parameters
- seriesLabel
- Type: System..::.String
Label for the series, to be show in the legend
- color
- Type: System.Drawing..::.Color
Color for the series to be show in
- seriesType
- Type: PPCC.Chart..::.SeriesType
Type of series to be drawn
- scatterShape
- Type: PPCC.Chart..::.ScatterShape
Shape for the scatter object to be drawn in with this series
Examples
private void LoadChart() { chart1.ClearAll(); Series s = new Series("Cereal 1", Color.Red, SeriesType.Scatter, ScatterShape.Circle); s.AddXY(1, "1999"); s.AddXY(2, "2000"); s.AddXY(3, "2001"); s.AddXY(4, "2002"); chart1.AddSeries(s); chart1.Refresh(); }
Private Sub LoadChart()
Chart1.ClearAll()
Dim s As New PPCC.Chart.Series("Cereal 1", Color.Red, PPCC.Chart.SeriesType.Scatter, PPCC.Chart.ScatterShape.Circle)
s.AddXY(1, "1999")
s.AddXY(2, "2000")
s.AddXY(3, "2001")
s.AddXY(4, "2002")
Chart1.AddSeries(s)
Chart1.Refresh()
End Sub