Closed schuttea closed 4 years ago
Thanks for contacting us!
You're trying to display labels/strings on the x-axis but you're using a LinearCartesianAxis
. The linear cartesian axis is used when there are numeric values on both axes. In order to display strings on an axis, you need to use a CategoryAxis
(see docs).
Replace your LinearCartesianAxis
in the xAxes
with a CategoryAxis
and it should work :)
If not, please reopen the issue.
Hello i Would like to view a simple chart like: https://www.chartjs.org/samples/latest/charts/line/basic.html
I have a Server Side Blazor app with a SimpleLineChart component. Some how i cat get this working with simple integer or double values With a category of a few months and some values. I think my object is ok but the values are not plotted.
Files:
Code: