stimulus-components / stimulus-components

A modern Stimulus library delivering common JavaScript behaviors with a bunch of customizable controllers.
https://www.stimulus-components.com/
1.15k stars 39 forks source link

Date adapter issue with Chartjs #89

Closed jclusso closed 5 months ago

jclusso commented 6 months ago

I'm getting the following error.

This method is not implemented: Check that a complete date adapter is provided.

I've tried add import 'chartjs-adapter-luxon' to an inheritted controller. This is also imported globally since we are using ChartJS without Stimulus Components currently. Not sure how to get around this error so we can use timeseries charts.

guillaumebriday commented 5 months ago

You gonna need to override the connect method in your own controller so you can modify the chartJS import and use plugins or adapters.

Reopen if needed 👍