We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What are the different Chart Types supported by Essential Chart?

Platform: WinForms |
Control: Chart |
Published Date: April 30, 2011 |
Last Revised Date: July 10, 2014

 

Essential Chart supports different types of Chart like Area charts, Line Charts, Financial charts, Bar charts, Accumulation Charts, Pie Chart, Polar And Radar Charts, Other Charts, Bubble Chart and Scatter chart.

For each Chart we can add any number of series. To add points to series Points.Add() method is used. To add a series into Chart Control Series.Add() method is used. To select the particular type of chart ChartSeriesType enumeration is used.

The following code snippet illustrates how to create a Bar Chart

C#

// Creating first series

ChartSeries series1 = this.chartControl1.Model.NewSeries("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 = this.chartControl1.Model.NewSeries("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);

VB

' Creating first series

Dim series1 As ChartSeries = Me.chartControl1.Model.NewSeries("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 = Me.chartControl1.Model.NewSeries("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)

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon