Hi Rob Jones,
Thank you for using Syncfusion products.
We suggest you to use “ChartDataBindModel” and bind the List collection with it by providing the XName and YNames of it . Create a series and set the “seriesModel” property as the object of “ChartDataBindModel”. This will plot the data contains in the List collection. When you are using the String values to XValue means we suggest you to add YNames alone to the model and Bind it with the series.
You can customize the Axislabels using “ChartDataBindAxisLabelModel” object by giving the “LabelName” property.
Please refer the following code snippet:
[CS]
ChartSeries series = new ChartSeries("Populations");
//Bind the above list to the chart control.
ChartDataBindModel dataSeriesModel = new ChartDataBindModel(bindList);
// If ChartDataBindModel.XName is empty or null, X value is index of point.
dataSeriesModel.YNames = new string[] { "Population" };
series.SeriesModel = dataSeriesModel;
//Customizing the axis labels .
ChartDataBindAxisLabelModel dataLabelsModel = new ChartDataBindAxisLabelModel();
//Setup a datasource for chart axis and populate axis labels.
dataLabelsModel.DataSource = bindList;
dataLabelsModel.LabelName = "Name";
chartControl1.PrimaryXAxis.LabelsImpl = dataLabelsModel;
chartControl1.PrimaryXAxis.TickLabelsDrawingMode = ChartAxisTickLabelDrawingMode.UserMode;
Please refer the Document from the following link:
http://help.syncfusion.com/ug_82/WindowsFormsUI_Chart/ChartDataBindingWithIEnumerables.htmlhttp://help.syncfusion.com/ug_82/WindowsFormsUI_Chart/ChartData.htmlLet me know if you have any other concerns.
Regards,
Jaffer.B