by on March 26, 2009
Binding Categorical Data Overview Binding chart to the data source with categorical values is pretty simple and usually requires just one line of code: Chart1.Series["Series1"].Points.DataBind(mySource, “ProductName”, “Sales”); It is important to understand that after DataBind method creates series DataPoint objects, their XValue property will always be set to zero and category is saved in the AxisLabel property. Position of each data point along the category axis is determined using the index of the object in Series.Points collection.
View original post here:
Aligning Multiple Series with Categorical Values