Hi John,
Thank You for your interest in Syncfusion Products.
If your intention is to create a ColumnChart and have the name from the database for each column then it can done by creating a series of Type Column and binding the values in the database to the ChartDataBindAxisLabelModel and then to the ChartAxisLabelModel(i.e to the LabelModel of corresponding ChartAxis).
Kindly take a look at the code snippet below,
ChartSeries series = this.ChartWebControl1.Model.NewSeries("Data Bound Series");
series.Text = series.Name;
series.Type = ChartSeriesType.Column;
series.Points.Add(2001, 10);
series.Points.Add(2002, 13.5);
series.Points.Add(2003, 14.6);
series.Points.Add(2004, 16.5);
series.Points.Add(2005, 18);
this.ChartWebControl1.Series.Add(series);
this.xAxisLabelModel = new ChartDataBindAxisLabelModel(this.ds, "
");
this.xAxisLabelModel.LabelName = "Client";//LabelName should assigned the ColumnName of the table in database whose value should be displayed for each column
this.ChartWebControl1.ChartWebArea.PrimaryXAxis.LabelsImpl = this.xAxisLabelModel;
this.ChartWebControl1.ChartWebArea.PrimaryXAxis.ValueType = ChartValueType.Custom;
Let me know whether this helps you.
Thanks & Regards,
Ramya.