In my app the ChartJS component shows strange results.
I download and check your own demo.
Look at the bar chart … this is empty.
The line chart looks also strange.
Luca,
I’ve added the default for the x-axis type as you suggested plus tidied up some other issues I found. I had to update to the latest chartjs (2.5.0) in order to resolve an issue with the time scale when empty. I also added the additional pointstyle that this release now supports. I also updated the demo to show the new pointstyle and the axis labels.
HTH
Nic
The new demo works perfect for me!
As far as I had understood the following lines must be implemented to run the old code with a valid chart result:
oOptionscaleX.Type=ScaleType.Category;
oOptionscaleY.Type=ScaleType.Linear;
Other options like RadialLinear giving me an error, so I guess this is in development.
Thank you Nic. Looks like the problem is that now that the ChartJS extension supports scale types the default is Linear for both X and Y while before it was Category for X. It may be better to default the X scale to Category and Y to Linear. What do you think? See attached override.
Hi Kay,
I think I caused that 🙂
I updated the extension to include the ability to set scales plus some other new options. I wasn’t expecting it to be pushed into the release straight away and I had not even thought of updating the demo. Since my changes the scale on charts always defaults to linear which is not the same as the previous behaviour. I’m still improving the extension but meantime attached is an updated demo with the scales correctly set for the line and bar charts.
HTH
Nic
Please login first to submit.