You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I got the Initial Rewrite for ChartJs 3 version (#21), but I need to make it a web-only version for React (without NodeJs/ npm install), The two problems are following :
The files are in ESModule but i need ton convert them for React
The files are distribued in three parts in the src folder
How could I recover the files from src to put them in one .js or .min.js, compatible for a React application ?
(For example, the chartjs-gauge.min.js found on other sites works perfectly, but only with ChartJs 2.8)
Thank you for any response
The text was updated successfully, but these errors were encountered:
For those with the same problem as me, here’s how I did it:
I saw that the files. js and .min.js in the format I want are usually in the node_modules/{MODULE}/dist folder (95% of the npm install it’s like this)
So I made a git clone of the git project #21, found here : https://github.com/jbsgh/chartjs-gauge , in order to "build" it myself and get the contents of the /dist generated folder.
After going to the root of the git project, use the command: npm run build
If it does'nt work it will probably ask you to install libraries (karma/ rollup etc...)
I had a lot of problems before I managed to
make the order, especially with karma who couldn’t find rollup plugins that he needed (solved by searching with karma init or other solutions found on Google)
But in the end, it worked!
For those who are lazy to take all the steps, you can try first with the files I generated as a result of this post.
Thanks. I was searching for solution today. But valueLabel option doesnt work at least on Chart.js v3.4.1.
Doesnt show any text on the canvas. Rest of functionality is working great!
Hi, I got the Initial Rewrite for ChartJs 3 version (#21), but I need to make it a web-only version for React (without NodeJs/ npm install), The two problems are following :
How could I recover the files from src to put them in one .js or .min.js, compatible for a React application ?
(For example, the chartjs-gauge.min.js found on other sites works perfectly, but only with ChartJs 2.8)
Thank you for any response
The text was updated successfully, but these errors were encountered: