Hi Xavier,
Thanks for using syncfusion products,
We have analyzed your query. By default, chart chooses the axis based on the data passed to it. We suspect that the x value passed for chart(topuser.X = item.Id;) is of type numeric, so that the chart renders with numeric axis. If you wish to use category axis, you can set category in the valueType property in axis.
For more information on category axis, kindly find the
help document Please find the below code snippet to use axis labels in string formats.
| <ej-chart id="container"> <e-primary-x-axis value-type="@AxisValueType.Category"> </e-primary-x-axis> ... </ej-chart> |
Screenshot:
Sample for your reference can be find from below link,
https://www.syncfusion.com/downloads/support/forum/137823/ze/xAxisString-core884959223
If you have any concern, Kindly revert us.
Thanks,
Baby.