Please, find attached a small example showing this. Here is what you should have in mind:
While RadChart will not automatically align its items according to a
string value ("Person1", "Person2" etc.), but this can be done for a numeric value. So, if you add a column PersonID you can use it to set XValue
to ChartSeriesItems (when databinding this is done through the series' ValuesXColumn
property). This way two ChartSeriesItems with the same XValue
will appear at the same position along the X axis. Note, that for horizontal charts the vertical axis becomes X axis, while the horizontal one becomes Y axis.
Second problem would be to show the names along the X axis. The DataLabelsColumn
property would not fit here as RadChart will create a new axis item for each entry in the
datasource and this would force the chart to create multiple items for the same name.One possible workaround would be
to create the chart axis items manually.
All the best,
the Telerik team