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);
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