Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Date Adapters for Charts Not Working#315

Answeredbyjesseagleboy
jesseagleboy asked this question inQ&A
Discussion options

I wrote a similar question onStack Overflow but writing here both with updates and hopefully better insight:

• Setting the X or Y axis totype: time throws an error that a complete date-adapter needs to be implemented.
• After testingchart.js throughreact-chartjs-2 in a separate project sans CoreUI, creating the same config setup for the X-axis allowed the date-adapter to work.
• After checking the bundle file between the CoreUI project and react-chartjs-2, it appears that the node module never gets implemented to the page on the CoreUI side but does in the react-chartjs-2.
• My current hypothesis is that by using the React CoreUI template, which implementsReact.lazy() and code-splitting methods, importing thechartjs-adapter-luxon is dealing with an import issue. One, I could be wrong that it's specifically an issue with the CoreUI charts itself, and two, I could be wrong that it's an async-await/import function issue. Either way, I'm hoping there isn't a limitation with the adapters when using CoreUI.
• I've also tried the HTML CDN tags but no luck. My React project uses the CoreUI Pro Template and the Create-React-App setup.

You must be logged in to vote

After much study with ChartJS to see what was happening, it appears it is a CoreUI implementation issue. Both ChartJS and react-chartjs-2 implement the date adapters seamlessly.

Replies: 1 comment

Comment options

After much study with ChartJS to see what was happening, it appears it is a CoreUI implementation issue. Both ChartJS and react-chartjs-2 implement the date adapters seamlessly.

You must be logged in to vote
0 replies
Answer selected byjesseagleboy
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@jesseagleboy

[8]ページ先頭

©2009-2025 Movatter.jp