apexcharts 5.9.0 → 5.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -7
- package/dist/apexcharts.common.js +2 -2
- package/dist/apexcharts.esm.js +10 -4
- package/dist/apexcharts.js +10 -4
- package/dist/apexcharts.min.js +2 -2
- package/dist/apexcharts.ssr.common.js +2 -2
- package/dist/apexcharts.ssr.esm.js +10 -4
- package/dist/area.common.js +5 -0
- package/dist/area.esm.js +1132 -0
- package/dist/bar.common.js +1 -1
- package/dist/bar.esm.js +1 -1
- package/dist/boxPlot.common.js +5 -0
- package/dist/boxPlot.esm.js +2011 -0
- package/dist/bubble.common.js +5 -0
- package/dist/bubble.esm.js +1132 -0
- package/dist/candlestick.common.js +1 -1
- package/dist/candlestick.esm.js +1 -1
- package/dist/column.common.js +5 -0
- package/dist/column.esm.js +2422 -0
- package/dist/core.common.js +2 -2
- package/dist/core.esm.js +10 -4
- package/dist/donut.common.js +5 -0
- package/dist/donut.esm.js +795 -0
- package/dist/features/all.common.js +1 -1
- package/dist/features/all.esm.js +1 -1
- package/dist/features/annotations.common.js +1 -1
- package/dist/features/annotations.esm.js +1 -1
- package/dist/features/exports.common.js +1 -1
- package/dist/features/exports.esm.js +1 -1
- package/dist/features/keyboard.common.js +1 -1
- package/dist/features/keyboard.esm.js +1 -1
- package/dist/features/legend.common.js +1 -1
- package/dist/features/legend.esm.js +1 -1
- package/dist/features/toolbar.common.js +1 -1
- package/dist/features/toolbar.esm.js +1 -1
- package/dist/heatmap.common.js +2 -2
- package/dist/heatmap.esm.js +2 -445
- package/dist/line.common.js +1 -1
- package/dist/line.esm.js +1 -1
- package/dist/pie.common.js +1 -1
- package/dist/pie.esm.js +1 -1
- package/dist/polarArea.common.js +5 -0
- package/dist/polarArea.esm.js +795 -0
- package/dist/radar.common.js +5 -0
- package/dist/radar.esm.js +447 -0
- package/dist/radialBar.common.js +5 -0
- package/dist/{radial.esm.js → radialBar.esm.js} +2 -412
- package/dist/rangeArea.common.js +5 -0
- package/dist/rangeArea.esm.js +1132 -0
- package/dist/rangeBar.common.js +5 -0
- package/dist/rangeBar.esm.js +2422 -0
- package/dist/scatter.common.js +5 -0
- package/dist/scatter.esm.js +1132 -0
- package/dist/treemap.common.js +5 -0
- package/dist/treemap.esm.js +596 -0
- package/package.json +59 -4
- package/src/entries/area.js +5 -0
- package/src/entries/boxPlot.js +5 -0
- package/src/entries/bubble.js +5 -0
- package/src/entries/column.js +5 -0
- package/src/entries/donut.js +5 -0
- package/src/entries/heatmap.js +2 -4
- package/src/entries/polarArea.js +5 -0
- package/src/entries/radar.js +16 -0
- package/src/entries/radialBar.js +16 -0
- package/src/entries/rangeArea.js +5 -0
- package/src/entries/rangeBar.js +5 -0
- package/src/entries/scatter.js +5 -0
- package/src/entries/treemap.js +16 -0
- package/src/modules/ChartFactory.js +17 -4
- package/dist/radial.common.js +0 -5
- package/src/entries/radial.js +0 -18
package/README.md
CHANGED
|
@@ -128,13 +128,11 @@ By default `import ApexCharts from 'apexcharts'` includes everything. If you wan
|
|
|
128
128
|
```js
|
|
129
129
|
import ApexCharts from 'apexcharts/core' // bare class — no chart types, no features
|
|
130
130
|
|
|
131
|
-
//
|
|
132
|
-
import 'apexcharts/line'
|
|
133
|
-
import 'apexcharts/bar'
|
|
134
|
-
// import 'apexcharts/
|
|
135
|
-
// import 'apexcharts/
|
|
136
|
-
// import 'apexcharts/heatmap' // heatmap, treemap
|
|
137
|
-
// import 'apexcharts/candlestick'
|
|
131
|
+
// Import by the exact chart type name you use in { chart: { type: '...' } }
|
|
132
|
+
import 'apexcharts/line'
|
|
133
|
+
import 'apexcharts/bar'
|
|
134
|
+
// import 'apexcharts/area'
|
|
135
|
+
// import 'apexcharts/scatter'
|
|
138
136
|
|
|
139
137
|
// Optional features
|
|
140
138
|
import 'apexcharts/features/legend'
|
|
@@ -144,6 +142,24 @@ import 'apexcharts/features/toolbar' // zoom/pan toolbar
|
|
|
144
142
|
// import 'apexcharts/features/keyboard' // keyboard navigation
|
|
145
143
|
```
|
|
146
144
|
|
|
145
|
+
**Vite users:** Vite's dependency pre-bundler can create two separate copies of ApexCharts, causing `"chart type X is not registered"` errors even when the import is present. Fix this by listing all apexcharts sub-entries in `optimizeDeps.include`:
|
|
146
|
+
|
|
147
|
+
```js
|
|
148
|
+
// vite.config.js
|
|
149
|
+
export default {
|
|
150
|
+
optimizeDeps: {
|
|
151
|
+
include: [
|
|
152
|
+
'apexcharts/core',
|
|
153
|
+
'apexcharts/line', // add only the ones you import
|
|
154
|
+
'apexcharts/bar',
|
|
155
|
+
'apexcharts/features/legend',
|
|
156
|
+
'apexcharts/features/toolbar',
|
|
157
|
+
// ...
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
147
163
|
See [tree-shaking](https://apexcharts.com/docs/tree-shaking/) for the full guide.
|
|
148
164
|
|
|
149
165
|
### A little more than the basic
|