Rails
Require it in your app/assets/javascripts/application.js
.
Or, if you use webpacker
, you can run:
and then require it in your app/javascript/packs/application.js
.
Or, if you use `importmaps', you can:
Download to local vendor directory (optional but recommended)
Pin "apexcharts" in
config/importmap.rb
to local esm file if you did No. 1:
or, to CDN URL directly if you didn't do No. 1:
Import and assign to window in
app/javascript/application.js
Use it with options
module: true
For example:
Last updated