$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Chart Control for C# Windows Forms
Design Bar, Pie, Line, Area, Polar, Radar and Scatter for C# Windows Forms application
Home > WinForms UI Controls > User Manual > Chart Series Scatter in C#

Scatter Series of Chart for WinForms C# Tutorial

The Series Types of Chart View is a collection of Chart Series, including Area, Spline Area, Bar, Line, Spline, Scatter point, Combined series. The Chart control provides two primary functions to Chart series. One is a collection used to stand for the specific data and the other is to visualize the data by using a predefined model. The following are the series types that the Chart support, including Bar, Pie, Line, Area, Donut, Scatter, Polar, Stock, Radar, Categorical or Polar.
The Scatter Series are different from the Categorical series and are to position its data on 2 numeric axes. The Scatter series are able to identify the position of each property of ScatterDataPoint. There are 2 numeric values of the Scattr Series, the XValue and the YValue, which are used for controlling the horizontal and vertical axes respectively.

How to Create and Populate Scatter Series

The following are C# code that illustrates how to create two Scatter Series and populate them

ScatterSeries scatterSeries = new ScatterSeries();
scatterSeries.Name = "";
scatterSeries.DataPoints.Add(new ScatterDataPoint(25, 19));
scatterSeries.DataPoints.Add(new ScatterDataPoint(18, 30));
scatterSeries.DataPoints.Add(new ScatterDataPoint(23, 25));
scatterSeries.DataPoints.Add(new ScatterDataPoint(10, 2));
scatterSeries.DataPoints.Add(new ScatterDataPoint(9, 12));
scatterSeries.PointSize = new SizeF(12, 12);
this.chart1.Series.Add(scatterSeries);

ScatterSeries scatterSeries2 = new ScatterSeries();
scatterSeries2.Name = "";
scatterSeries2.DataPoints.Add(new ScatterDataPoint(20, 20));
scatterSeries2.DataPoints.Add(new ScatterDataPoint(15, 10));
scatterSeries2.DataPoints.Add(new ScatterDataPoint(7, 6));
scatterSeries2.DataPoints.Add(new ScatterDataPoint(18, 22));
scatterSeries2.DataPoints.Add(new ScatterDataPoint(10, 10));
scatterSeries2.PointSize = new SizeF(18, 18);
scatterSeries.Shape = new RoundRectShape(0);

Properties of Scatter Series for Chart View

  • PointSize, this is a property used to set the point size of the Scatter Series.
  • XValueMember, this property is used to set the name of the field that holds the XValue when a DataSource is connected
  • YValueMember, this property is used to set the name of the field that holds the XValue when a DataSource is connected
  • Shape, this property is used to change the shape of a series points. The below C# Code is a sample to customize the shape

RoundRectShape shape = new RoundRectShape(0);
scatterSeries2.Shape = shape;
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls