apexcharts 6.5.0 → 6.6.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.
Files changed (107) hide show
  1. package/README.md +5 -2
  2. package/dist/apexcharts.common.js +2 -2
  3. package/dist/apexcharts.esm.js +2365 -123
  4. package/dist/apexcharts.js +2365 -123
  5. package/dist/apexcharts.min.js +2 -2
  6. package/dist/apexcharts.ssr.common.js +2 -2
  7. package/dist/apexcharts.ssr.esm.js +2365 -123
  8. package/dist/area.common.js +1 -1
  9. package/dist/area.esm.js +1 -1
  10. package/dist/bar.common.js +1 -1
  11. package/dist/bar.esm.js +1 -1
  12. package/dist/boxPlot.common.js +1 -1
  13. package/dist/boxPlot.esm.js +1 -1
  14. package/dist/bubble.common.js +1 -1
  15. package/dist/bubble.esm.js +1 -1
  16. package/dist/candlestick.common.js +1 -1
  17. package/dist/candlestick.esm.js +1 -1
  18. package/dist/column.common.js +1 -1
  19. package/dist/column.esm.js +1 -1
  20. package/dist/core.common.js +2 -2
  21. package/dist/core.esm.js +650 -106
  22. package/dist/donut.common.js +1 -1
  23. package/dist/donut.esm.js +1 -1
  24. package/dist/features/all.common.js +2 -2
  25. package/dist/features/all.esm.js +346 -92
  26. package/dist/features/annotations.common.js +1 -1
  27. package/dist/features/annotations.esm.js +1 -1
  28. package/dist/features/context-menu.common.js +1 -1
  29. package/dist/features/context-menu.esm.js +1 -1
  30. package/dist/features/drilldown.common.js +1 -1
  31. package/dist/features/drilldown.esm.js +1 -1
  32. package/dist/features/exports.common.js +1 -1
  33. package/dist/features/exports.esm.js +1 -1
  34. package/dist/features/facet.common.js +1 -1
  35. package/dist/features/facet.esm.js +1 -1
  36. package/dist/features/history.common.js +2 -2
  37. package/dist/features/history.esm.js +2 -1
  38. package/dist/features/ink.common.js +1 -1
  39. package/dist/features/ink.esm.js +1 -1
  40. package/dist/features/keyboard.common.js +1 -1
  41. package/dist/features/keyboard.esm.js +1 -1
  42. package/dist/features/legend.common.js +2 -2
  43. package/dist/features/legend.esm.js +35 -11
  44. package/dist/features/link.common.js +1 -1
  45. package/dist/features/link.esm.js +1 -1
  46. package/dist/features/marks.common.js +1 -1
  47. package/dist/features/marks.esm.js +1 -1
  48. package/dist/features/measure.common.js +1 -1
  49. package/dist/features/measure.esm.js +1 -1
  50. package/dist/features/morph.common.js +2 -2
  51. package/dist/features/morph.esm.js +79 -3
  52. package/dist/features/perspectives.common.js +2 -2
  53. package/dist/features/perspectives.esm.js +250 -79
  54. package/dist/features/renderer-canvas.common.js +1 -1
  55. package/dist/features/renderer-canvas.esm.js +1 -1
  56. package/dist/features/storyboard.common.js +2 -2
  57. package/dist/features/storyboard.esm.js +250 -79
  58. package/dist/features/toolbar.common.js +2 -2
  59. package/dist/features/toolbar.esm.js +5 -2
  60. package/dist/features/weave.common.js +1 -1
  61. package/dist/features/weave.esm.js +1 -1
  62. package/dist/heatmap.common.js +1 -1
  63. package/dist/heatmap.esm.js +1 -1
  64. package/dist/line.common.js +1 -1
  65. package/dist/line.esm.js +1 -1
  66. package/dist/pie.common.js +1 -1
  67. package/dist/pie.esm.js +1 -1
  68. package/dist/polarArea.common.js +1 -1
  69. package/dist/polarArea.esm.js +1 -1
  70. package/dist/radar.common.js +1 -1
  71. package/dist/radar.esm.js +1 -1
  72. package/dist/radialBar.common.js +1 -1
  73. package/dist/radialBar.esm.js +1 -1
  74. package/dist/rangeArea.common.js +1 -1
  75. package/dist/rangeArea.esm.js +1 -1
  76. package/dist/rangeBar.common.js +1 -1
  77. package/dist/rangeBar.esm.js +1 -1
  78. package/dist/scatter.common.js +1 -1
  79. package/dist/scatter.esm.js +1 -1
  80. package/dist/treemap.common.js +1 -1
  81. package/dist/treemap.esm.js +1 -1
  82. package/dist/violin.common.js +1 -1
  83. package/dist/violin.esm.js +1 -1
  84. package/package.json +1 -1
  85. package/src/apexcharts.js +4 -1
  86. package/src/charts/Unit.js +2130 -0
  87. package/src/entries/full.js +2 -0
  88. package/src/entries/unit.js +17 -0
  89. package/src/modules/Base.js +1 -0
  90. package/src/modules/Core.js +5 -0
  91. package/src/modules/CoreUtils.js +6 -0
  92. package/src/modules/Data.js +46 -0
  93. package/src/modules/MorphTypeChange.js +95 -7
  94. package/src/modules/Series.js +79 -1
  95. package/src/modules/ZoomPanSelection.js +18 -1
  96. package/src/modules/dimensions/Dimensions.js +22 -0
  97. package/src/modules/helpers/UpdateHelpers.js +14 -28
  98. package/src/modules/legend/Helpers.js +40 -10
  99. package/src/modules/license/LicenseEnforcer.js +97 -14
  100. package/src/modules/license/LicenseManager.js +350 -93
  101. package/src/modules/settings/Config.js +24 -3
  102. package/src/modules/settings/Defaults.js +38 -0
  103. package/src/modules/settings/Options.js +150 -0
  104. package/src/modules/state/ViewState.js +5 -0
  105. package/src/modules/tooltip/Tooltip.js +127 -5
  106. package/src/types/internal.d.ts +7 -2
  107. package/types/apexcharts.d.ts +198 -4
package/README.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  ## Why ApexCharts
26
26
 
27
- - **17+ chart types** out of the box: line, area, bar, column, pie, donut, radar, heatmap, treemap, candlestick, boxplot, violin, funnel, pyramid, gauge and more
27
+ - **18+ chart types** out of the box: line, area, bar, column, pie, donut, radar, heatmap, treemap, candlestick, boxplot, violin, funnel, pyramid, gauge, unit (dot / pictogram / waffle / beeswarm) and more
28
28
  - **SSR support** for Next.js, Nuxt, SvelteKit, Astro, and other meta-frameworks: render real SVG on the server, hydrate on the client
29
29
  - **Tree-shakable**: import only the chart types and features you need; typical bundles are 30-60% smaller than the full build
30
30
  - **TypeScript-first**: full type definitions ship with the package, no `@types/*` install needed
@@ -89,6 +89,7 @@ Browse [100+ ready-to-use samples](https://apexcharts.com/javascript-chart-demos
89
89
  - [Pie](https://apexcharts.com/javascript-chart-demos/pie-charts/) · [Donut](https://apexcharts.com/javascript-chart-demos/pie-charts/) · [Polar Area](https://apexcharts.com/javascript-chart-demos/polar-area-charts/) · [Radial Bar / Gauge](https://apexcharts.com/javascript-chart-demos/radialbar-charts/)
90
90
  - [Radar](https://apexcharts.com/javascript-chart-demos/radar-charts/) · [Heatmap](https://apexcharts.com/javascript-chart-demos/heatmap-charts/) · [Treemap](https://apexcharts.com/javascript-chart-demos/treemap-charts/)
91
91
  - [Funnel](https://apexcharts.com/javascript-chart-demos/funnel-charts/)
92
+ - [Unit / Pictogram / Beeswarm](samples/vanilla-js/unit/) · [Waffle](samples/vanilla-js/waffle/) (premium)
92
93
 
93
94
  Combine any of the above as [mixed/combo charts](https://apexcharts.com/javascript-chart-demos/mixed-charts/), [stacked variants](https://apexcharts.com/javascript-chart-demos/column-charts/stacked/), [sparklines](https://apexcharts.com/javascript-chart-demos/sparklines/), or [synchronized multi-chart layouts](https://apexcharts.com/javascript-chart-demos/line-charts/syncing-charts/).
94
95
 
@@ -149,6 +150,7 @@ import 'apexcharts/line'
149
150
  import 'apexcharts/bar'
150
151
  // import 'apexcharts/area'
151
152
  // import 'apexcharts/scatter'
153
+ // import 'apexcharts/unit' // dot / pictogram / waffle / beeswarm (premium; 'waffle' aliases this)
152
154
 
153
155
  // Optional features
154
156
  import 'apexcharts/features/legend'
@@ -179,6 +181,7 @@ Most of ApexCharts is free and open source. A small set of advanced features are
179
181
 
180
182
  | Feature | Enabled by |
181
183
  |---|---|
184
+ | Unit chart type (dot / pictogram / waffle / beeswarm) | `chart.type: 'unit'` / `chart.type: 'waffle'` |
182
185
  | Storyboard (scrollytelling) | `chart.storyboard.bind(...)` |
183
186
  | Linked views / crossfilter | `chart.link.enabled` / `chart.link.dimension` / `ApexCharts.crossfilter()` |
184
187
  | Ink layer (on-chart annotation editing) | `chart.ink.enabled` |
@@ -187,7 +190,7 @@ Most of ApexCharts is free and open source. A small set of advanced features are
187
190
  | Perspectives (shareable view state) | `chart.perspectives.apply()` / `.save()` / `ApexCharts.perspectives.decode()` |
188
191
  | History (undo/redo) | `chart.history.enabled` |
189
192
 
190
- Without a valid key these features still work (**trial mode**), but the chart shows an "APEXCHARTS" watermark. A valid key removes it. Everything else, including every chart type and all other features, is free and never watermarked.
193
+ Without a valid key these features still work (**trial mode**), but the chart shows an "APEXCHARTS" watermark. A valid key removes it. Every other chart type and feature is free and never watermarked; the `unit` chart type (listed above, aliased by `waffle`) is the one premium chart type.
191
194
 
192
195
  ```js
193
196
  import ApexCharts from 'apexcharts'