Wednesday, September 19, 2018

Bar Chart in C#

  The Bar Chart are used to comparisons among individual items.

The following c# code are used draw a bar chart in c# window application

            chart1.Titles.Add("Area Chart ");
            Series s1 = this.chart1.Series.Add("Population");
            s1.ChartType = SeriesChartType.Bar;
            s1.Points.AddXY("2001",57);
            s1.Points.AddXY("2002", 67);
            s1.Points.AddXY("2003", 97);
            s1.Points.AddXY("2004", 107);


No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...