Skip to content

Commit fa229d0

Browse files
committed
Fix docs for web-support
1 parent 8bd3ced commit fa229d0

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

docs/web-support/middleman.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ activate :sprockets
1313
activate :apexcharts
1414
```
1515

16-
and then require it in your `source/javascripts/site.js`.
16+
and then require `apexcharts` in your `source/javascripts/site.js`.
1717
```js
1818
//= require apexcharts
1919
```

docs/web-support/rails.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,36 @@ window.ApexCharts = ApexCharts
2222

2323
Or, if you use `importmaps', you can:
2424

25-
Download to local vendor directory (optional but recommended)
25+
1. Download to local vendor directory (optional but recommended)
2626

2727
```bash
2828
$ wget -O vendor/javascript/apexcharts.esm.js https://ga.jspm.io/npm:apexcharts@latest/dist/apexcharts.esm.js`
2929
```
3030

31-
Pin "apexcharts" in `config/importmap.rb` to local esm file (if you do No. 1):
31+
2. Pin "apexcharts" in `config/importmap.rb` to local esm file if you did No. 1:
3232

3333
```ruby
3434
pin "apexcharts", to: "apexcharts.esm.js"`
3535
```
3636
37-
or, to CDN URL
37+
or, to CDN URL directly if you didn't do No. 1:
3838
3939
```ruby
4040
pin "apexcharts", to: "https://ga.jspm.io/npm:apexcharts@latest/dist/apexcharts.esm.js"`
4141
```
4242
43-
Import and assign to window in `app/javascript/application.js`
43+
3. Import and assign to window in `app/javascript/application.js`
4444
4545
```js
4646
import ApexCharts from "apexcharts"
4747
window.ApexCharts = ApexCharts
4848
```
4949
50-
Use it with options `module: true`
50+
4. Use it with options `module: true`
51+
5152
For example:
5253
53-
```
54+
```erb
5455
<% series = [{
5556
name: "Desktops",
5657
data: [10, 41, 35, 51, 49, 62, 69, 91, 148]

0 commit comments

Comments
 (0)