to discuss: flat export of helpers in main chart.js
See original GitHub issuewhat is the main benefit of not having the helpers as part of the chart.js module but as separate imports?
cause so far it requires quite some bundling efforts to get it working across UMD, ESM, and CommonJS cases.
Like I wanna create an CommonJS build. However importing chart.js/helpers/core
will results in an ESM file and there is no corresponding CommonJS file.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Utils | Chart.js
The Utils file contains multiple helper functions that the chart.js sample pages use to generate charts. These functions are subject to change, ...
Read more >Chart JS Video Guide – Learn Chart JS via videos
Always wanted to learn Chart JS but needed to understand the instructions in a more visual way? This website covers Chart JS with...
Read more >15 JavaScript Libraries for Creating Beautiful Charts - SitePoint
ChartJS provides beautiful flat designs for charts. It uses the HTML5 Canvas element for rendering and supports all modern browsers (IE11+).
Read more >chart.js: Versions - Openbase
Full version history for chart.js including change logs. ... #8688 Make sure all helpers are exported; #8683 Expose `formatNumber` as a helper. Bugs...
Read more >Buy Plugins & Code from CodeCanyon
Discover 27599 Plugins, Code and Script for Bootstrap, Javascript, PHP, Wordpress, HTML5 and more. Save time, buy Code on CodeCanyon!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sgratzl that seems reasonable. It might be even worth the break from backward compatibility to just have them flat under
Chart.helpers
/chartjs/helpers
, because its hard to remember the namespace every helper is under (mainly between core and the obvious ones). Would also make the imports cleaner.Would you be willing to do a pr?
see https://github.com/chartjs/Chart.js/pull/7806