What are the different Chart types supported by Syncfusion Winforms Chart?
The WinForms Chart control supports various types of charts including Area Charts, Line Charts, Financial Charts, Bar Charts, Accumulation Charts, Pie Charts, Polar and Radar Charts, as well as Bubble and Scatter Charts. For each chart, any number of series can be added. The Points.Add() method is used to add points to a series, and the Series.Add() method is used to incorporate a series into the Chart Control. The ChartSeriesType enumeration is utilized to select the particular type of chart.
For more details on supported chart types, refer to the WinForms Chart documentation.
The following code snippet illustrates how to create a Bar Chart:
this.chartControl1 = new ChartControl();
. . .
// Creating first series
ChartSeries series1 = new ChartSeries("Server1", ChartSeriesType.Bar);
series1.Text = series1.Name;
series1.Points.Add(0, 25);
series1.Points.Add(1, 49);
series1.Points.Add(2, 38);
series1.Points.Add(3, 43);
series1.Points.Add(4, 32);
// Creating second series
ChartSeries series2 = new ChartSeries("Server 2", ChartSeriesType.Bar);
series2.Text = series2.Name;
series2.Points.Add(0, 43);
series2.Points.Add(1, 45);
series2.Points.Add(2, 40);
series2.Points.Add(3, 36);
series2.Points.Add(4, 42);
// Adding the series into Chart control
this.chartControl1.Series.Add(series1);
this.chartControl1.Series.Add(series2);Me.ChartControl1 = New ChartControl()
. . .
' Creating first series
Dim series1 As ChartSeries = New ChartSeries("Server1", ChartSeriesType.Bar)
series1.Text = series1.Name
series1.Points.Add(0, 25)
series1.Points.Add(1, 49)
series1.Points.Add(2, 38)
series1.Points.Add(3, 43)
series1.Points.Add(4, 32)
' Creating second series
Dim series2 As ChartSeries = New ChartSeries("Server 2", ChartSeriesType.Bar)
series2.Text = series2.Name
series2.Points.Add(0, 43)
series2.Points.Add(1, 45)
series2.Points.Add(2, 40)
series2.Points.Add(3, 36)
series2.Points.Add(4, 42)
' Adding the series into Chart control
Me.ChartControl1.Series.Add(series1)
Me.ChartControl1.Series.Add(series2)
Conclusion
I hope you enjoyed learning about different Chart types supported in Syncfusion Winforms Chart.
You can refer to our WinForms Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications. You can also explore our WinForms Chart examples to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!