DataTable dtcombo = new DataTable(); dtcombo = objG.GraphReport(); var datas = dtcombo.AsEnumerable(); ColumnSeries col = new ColumnSeries() { DataLabels = true, Values = new ChartValues<int>(), LabelPoint = Point => Point.Y.ToString() }; Axis ax = new Axis() { Separator = new Separator() { Step = 1, IsEnabled = false } }; ax.Labels = new List<string>(); foreach (var x in datas) { col.Values.Add(x.particulars.ToString()); ax.Labels.Add(x.year.ToString()); }
col.Values.Add(x.particulars.ToString()); ax.Labels.Add(x.year.ToString());
col.Values.Add(x[0].ToString());
col.Values.Add(x["particulars"].ToString());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)