You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd guess this is because you are importing chart.js asynchronously and the adapter needs to be imported after chart.js
The editing you did is wrong in many ways. After that the format function is not called (because chart.js calls adapter.format, not adapter.xformat).
It should have defaulted to the abstract format: throw new Error('This method is not implemented: Check that a complete date adapter is provided.');
But if it did not, then you either have another adapter installed or date-fns adapter is included multiple times.
Hi, I updated our project our project dependecies to
and have (testing) graph like
And when I set some axis to be
type: "time"
, rendering of graphs failsI am not strong in JS, but I digg deep and it seems to me that this
do not call
date-fns.format
but itself again.When I did litlle rename and change call in chart.js
_tickFormatFunction(time, index, ticks, format)
:all went OK
The text was updated successfully, but these errors were encountered: