apexcharts 5.9.0 → 5.10.0

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.
Files changed (72) hide show
  1. package/README.md +23 -7
  2. package/dist/apexcharts.common.js +2 -2
  3. package/dist/apexcharts.esm.js +3 -2
  4. package/dist/apexcharts.js +3 -2
  5. package/dist/apexcharts.min.js +2 -2
  6. package/dist/apexcharts.ssr.common.js +2 -2
  7. package/dist/apexcharts.ssr.esm.js +3 -2
  8. package/dist/area.common.js +5 -0
  9. package/dist/area.esm.js +1132 -0
  10. package/dist/bar.common.js +1 -1
  11. package/dist/bar.esm.js +1 -1
  12. package/dist/boxPlot.common.js +5 -0
  13. package/dist/boxPlot.esm.js +2011 -0
  14. package/dist/bubble.common.js +5 -0
  15. package/dist/bubble.esm.js +1132 -0
  16. package/dist/candlestick.common.js +1 -1
  17. package/dist/candlestick.esm.js +1 -1
  18. package/dist/column.common.js +5 -0
  19. package/dist/column.esm.js +2422 -0
  20. package/dist/core.common.js +2 -2
  21. package/dist/core.esm.js +3 -2
  22. package/dist/donut.common.js +5 -0
  23. package/dist/donut.esm.js +795 -0
  24. package/dist/features/all.common.js +1 -1
  25. package/dist/features/all.esm.js +1 -1
  26. package/dist/features/annotations.common.js +1 -1
  27. package/dist/features/annotations.esm.js +1 -1
  28. package/dist/features/exports.common.js +1 -1
  29. package/dist/features/exports.esm.js +1 -1
  30. package/dist/features/keyboard.common.js +1 -1
  31. package/dist/features/keyboard.esm.js +1 -1
  32. package/dist/features/legend.common.js +1 -1
  33. package/dist/features/legend.esm.js +1 -1
  34. package/dist/features/toolbar.common.js +1 -1
  35. package/dist/features/toolbar.esm.js +1 -1
  36. package/dist/heatmap.common.js +2 -2
  37. package/dist/heatmap.esm.js +2 -445
  38. package/dist/line.common.js +1 -1
  39. package/dist/line.esm.js +1 -1
  40. package/dist/pie.common.js +1 -1
  41. package/dist/pie.esm.js +1 -1
  42. package/dist/polarArea.common.js +5 -0
  43. package/dist/polarArea.esm.js +795 -0
  44. package/dist/radar.common.js +5 -0
  45. package/dist/radar.esm.js +447 -0
  46. package/dist/radialBar.common.js +5 -0
  47. package/dist/{radial.esm.js → radialBar.esm.js} +2 -412
  48. package/dist/rangeArea.common.js +5 -0
  49. package/dist/rangeArea.esm.js +1132 -0
  50. package/dist/rangeBar.common.js +5 -0
  51. package/dist/rangeBar.esm.js +2422 -0
  52. package/dist/scatter.common.js +5 -0
  53. package/dist/scatter.esm.js +1132 -0
  54. package/dist/treemap.common.js +5 -0
  55. package/dist/treemap.esm.js +596 -0
  56. package/package.json +59 -4
  57. package/src/entries/area.js +5 -0
  58. package/src/entries/boxPlot.js +5 -0
  59. package/src/entries/bubble.js +5 -0
  60. package/src/entries/column.js +5 -0
  61. package/src/entries/donut.js +5 -0
  62. package/src/entries/heatmap.js +2 -4
  63. package/src/entries/polarArea.js +5 -0
  64. package/src/entries/radar.js +16 -0
  65. package/src/entries/radialBar.js +16 -0
  66. package/src/entries/rangeArea.js +5 -0
  67. package/src/entries/rangeBar.js +5 -0
  68. package/src/entries/scatter.js +5 -0
  69. package/src/entries/treemap.js +16 -0
  70. package/src/modules/ChartFactory.js +5 -1
  71. package/dist/radial.common.js +0 -5
  72. 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
- // Chart types
132
- import 'apexcharts/line' // line, area, scatter, bubble, rangeArea
133
- import 'apexcharts/bar' // bar, column
134
- // import 'apexcharts/pie' // pie, donut
135
- // import 'apexcharts/radial' // radialBar, radar
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