apexcharts 6.4.0 → 6.5.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 (104) hide show
  1. package/README.md +44 -7
  2. package/dist/apexcharts.common.js +2 -2
  3. package/dist/apexcharts.esm.js +716 -118
  4. package/dist/apexcharts.js +716 -118
  5. package/dist/apexcharts.min.js +2 -2
  6. package/dist/apexcharts.ssr.common.js +2 -2
  7. package/dist/apexcharts.ssr.esm.js +716 -118
  8. package/dist/area.common.js +1 -1
  9. package/dist/area.esm.js +1 -1
  10. package/dist/bar.common.js +2 -2
  11. package/dist/bar.esm.js +33 -3
  12. package/dist/boxPlot.common.js +2 -2
  13. package/dist/boxPlot.esm.js +33 -3
  14. package/dist/bubble.common.js +1 -1
  15. package/dist/bubble.esm.js +1 -1
  16. package/dist/candlestick.common.js +2 -2
  17. package/dist/candlestick.esm.js +33 -3
  18. package/dist/column.common.js +2 -2
  19. package/dist/column.esm.js +33 -3
  20. package/dist/core.common.js +2 -2
  21. package/dist/core.esm.js +437 -9
  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 +672 -108
  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 +1 -1
  37. package/dist/features/history.esm.js +1 -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 +1 -1
  43. package/dist/features/legend.esm.js +1 -1
  44. package/dist/features/link.common.js +2 -2
  45. package/dist/features/link.esm.js +38 -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 +1 -1
  51. package/dist/features/morph.esm.js +1 -1
  52. package/dist/features/perspectives.common.js +2 -2
  53. package/dist/features/perspectives.esm.js +414 -3
  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 +417 -3
  58. package/dist/features/toolbar.common.js +2 -2
  59. package/dist/features/toolbar.esm.js +220 -107
  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 +2 -2
  77. package/dist/rangeBar.esm.js +33 -3
  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 +2 -2
  83. package/dist/violin.esm.js +33 -3
  84. package/package.json +1 -1
  85. package/src/apexcharts.js +55 -1
  86. package/src/charts/Bar.js +6 -1
  87. package/src/charts/common/bar/DataLabels.js +7 -2
  88. package/src/features/perspectives.js +12 -3
  89. package/src/modules/Animations.js +5 -5
  90. package/src/modules/AxisMapping.js +65 -0
  91. package/src/modules/Base.js +0 -2
  92. package/src/modules/ZoomPanSelection.js +247 -166
  93. package/src/modules/license/LicenseEnforcer.js +263 -0
  94. package/src/modules/license/LicenseManager.js +264 -0
  95. package/src/modules/license/Watermark.js +129 -0
  96. package/src/modules/link/LinkedViews.js +50 -2
  97. package/src/modules/perspectives/Perspectives.js +14 -0
  98. package/src/modules/settings/Globals.js +2 -3
  99. package/src/modules/settings/Options.js +6 -0
  100. package/src/modules/storyboard/Storyboard.js +11 -0
  101. package/src/modules/tooltip/Tooltip.js +5 -2
  102. package/src/types/internal.d.ts +9 -1
  103. package/src/utils/Utils.js +8 -0
  104. package/types/apexcharts.d.ts +19 -0
package/README.md CHANGED
@@ -158,21 +158,58 @@ import 'apexcharts/features/toolbar' // zoom/pan toolbar
158
158
  // import 'apexcharts/features/keyboard' // keyboard navigation
159
159
  // import 'apexcharts/features/drilldown' // hierarchical drill-down
160
160
  // import 'apexcharts/features/morph' // animated chart-type morphs
161
- // import 'apexcharts/features/history' // undo/redo
162
- // import 'apexcharts/features/perspectives' // shareable view state
163
- // import 'apexcharts/features/storyboard' // scrollytelling (includes perspectives)
161
+ // import 'apexcharts/features/history' // undo/redo (premium)
162
+ // import 'apexcharts/features/perspectives' // shareable view state (premium)
163
+ // import 'apexcharts/features/storyboard' // scrollytelling, incl. perspectives (premium)
164
164
  // import 'apexcharts/features/facet' // design tokens + OS themes
165
165
  // import 'apexcharts/features/weave' // plugin platform
166
166
  // import 'apexcharts/features/marks' // custom series types
167
- // import 'apexcharts/features/link' // crossfilter / linked views
168
- // import 'apexcharts/features/ink' // on-chart annotation editing
169
- // import 'apexcharts/features/measure' // measure/delta ruler
170
- // import 'apexcharts/features/context-menu' // right-click context menu
167
+ // import 'apexcharts/features/link' // crossfilter / linked views (premium)
168
+ // import 'apexcharts/features/ink' // on-chart annotation editing (premium)
169
+ // import 'apexcharts/features/measure' // measure/delta ruler (premium)
170
+ // import 'apexcharts/features/context-menu' // right-click context menu (premium)
171
171
  // import 'apexcharts/features/renderer-canvas' // canvas series renderer
172
172
  ```
173
173
 
174
174
  See the [tree-shaking guide](https://apexcharts.com/docs/tree-shaking/) for the complete list of entry points.
175
175
 
176
+ ## Premium features & licensing
177
+
178
+ Most of ApexCharts is free and open source. A small set of advanced features are **premium** and require a license key:
179
+
180
+ | Feature | Enabled by |
181
+ |---|---|
182
+ | Storyboard (scrollytelling) | `chart.storyboard.bind(...)` |
183
+ | Linked views / crossfilter | `chart.link.enabled` / `chart.link.dimension` / `ApexCharts.crossfilter()` |
184
+ | Ink layer (on-chart annotation editing) | `chart.ink.enabled` |
185
+ | Measure / delta ruler | `chart.measure.enabled` |
186
+ | Context menu (right-click) | `chart.contextMenu.enabled` |
187
+ | Perspectives (shareable view state) | `chart.perspectives.apply()` / `.save()` / `ApexCharts.perspectives.decode()` |
188
+ | History (undo/redo) | `chart.history.enabled` |
189
+
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.
191
+
192
+ ```js
193
+ import ApexCharts from 'apexcharts'
194
+
195
+ // Set once, before rendering. Applies to every chart on the page.
196
+ ApexCharts.setLicense('APEX-xxxxxxxx')
197
+ ```
198
+
199
+ Alternatives to `setLicense`:
200
+
201
+ ```js
202
+ // Global variable (used when setLicense was not called):
203
+ window.Apex = { license: 'APEX-xxxxxxxx' }
204
+
205
+ // Per-chart override (most specific wins):
206
+ new ApexCharts(el, { chart: { license: 'APEX-xxxxxxxx' /* ... */ } })
207
+ ```
208
+
209
+ Precedence per chart: `chart.license` -> `ApexCharts.setLicense()` -> `window.Apex.license` -> unlicensed (trial). The watermark is re-evaluated on every render, so a late `setLicense(validKey)` followed by `chart.update()` clears it.
210
+
211
+ Keys are **shared across the whole ApexCharts family** (apexgantt, apextree, apexsankey, apex-grid-enterprise, apexstock), so one customer key works everywhere. Get a license at [apexcharts.com/pricing](https://apexcharts.com/pricing).
212
+
176
213
  ## Browser support
177
214
 
178
215
  ApexCharts works in all modern evergreen browsers (Chrome, Firefox, Safari, Edge). For server-side rendering, Node.js 18+ is required.