question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

to discuss: flat export of helpers in main chart.js

See original GitHub issue

what 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:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kurklecommented, Sep 16, 2020

@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?

0reactions
sgratzlcommented, Sep 18, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found