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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What are the different Chart Types supported by Essential Chart?

 

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)

Article ID: Published Date: Last Revised Date: Platform: Control:
86 04/30/2011 07/10/2014 Windows Forms Chart
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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