Closed digitalMUTANTsoft closed 3 years ago
Thanks for the issue.
I don't have time to test it for myself right now but have you referenced the moment.js script in your index.html / _Host.cshtml?
I'm suspecting that might be the issue (see https://github.com/chartjs/Chart.js/issues/6335).
Ps. V2.0 removed a lot of unrelated stuff from the library e.g. moment.js interop and things like TimeDisplayFormats.DE_CH
.
Oh and before I forget, you need to include moment.js before Chart.js (see here). Might be good to highlight in the readme (?)
Oh and before I forget, you need to include moment.js before Chart.js (see here). Might be good to highlight in the readme (?)
Ow... sorry, my bad.. I had previously set moment.js before, but i mislead while following the new README.md
Thank you for your help. Its solved!
Cheers!
No worries, it wasn't specified in the readme. Fixed now (bfa6b62).
Describe the bug
LineChart with TimeAxis(TimePoint) stopped working after ChartJs.Blazor update from 2.0.0.preview to 2.0.0 ('Fork' repo). It throws the following runtime error: 'Microsoft.JSInterop.JSException: This method is not implemented: either no adapter can be found or an incomplete integration was provided.'
Which Blazor project type is your bug related to?
Which charts does this bug apply to?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should generate LineCharts with TimeAxis and TimePoint, like the previous versions did : without any problem.
Additional context / logging
Code example