Makanz / chartjs-plugin-trendline

This plugin draws an linear trendline in your Chart. Made for Chart.js > 3.0
MIT License
80 stars 57 forks source link

can't load directly in browser version 2.2.1 with chartjs 4.4.3 #89

Open jgrayson-apl opened 3 days ago

jgrayson-apl commented 3 days ago

Trying to use 2.1.1 (and chartjs 4.4.3) via "Load directly in the browser" method and receiving the following browser error:

Uncaught SyntaxError: Cannot use import statement outside a module (at chartjs-plugin-trendline.min.js:17:1)

Is there live example such as a CodePen or similar that we can check out?

Makanz commented 3 days ago

Sounds like I have introduced a bug in the latest version. Thanks for letting me know. I will try to solve it asap.