apexcharts 7.7.0 → 7.9.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 (248) hide show
  1. package/{LICENSE → LICENSE.md} +1 -1
  2. package/README.md +1 -0
  3. package/dist/apexcharts.common.js +2 -2
  4. package/dist/apexcharts.core.js +4414 -722
  5. package/dist/apexcharts.core.min.js +2 -2
  6. package/dist/apexcharts.css +22 -5
  7. package/dist/apexcharts.esm.js +2141 -598
  8. package/dist/apexcharts.js +6568 -1263
  9. package/dist/apexcharts.min.js +2 -2
  10. package/dist/apexcharts.ssr.common.js +2 -2
  11. package/dist/apexcharts.ssr.esm.js +6567 -1262
  12. package/dist/area.common.js +2 -2
  13. package/dist/area.esm.js +297 -194
  14. package/dist/bar.common.js +2 -2
  15. package/dist/bar.esm.js +357 -143
  16. package/dist/bar.js +2 -2
  17. package/dist/boxPlot.common.js +2 -2
  18. package/dist/boxPlot.esm.js +417 -152
  19. package/dist/bubble.common.js +2 -2
  20. package/dist/bubble.esm.js +297 -194
  21. package/dist/candlestick.common.js +2 -2
  22. package/dist/candlestick.esm.js +417 -152
  23. package/dist/candlestick.js +2 -2
  24. package/dist/column.common.js +2 -2
  25. package/dist/column.esm.js +357 -143
  26. package/dist/core.common.js +2 -2
  27. package/dist/core.esm.js +4414 -722
  28. package/dist/donut.common.js +2 -2
  29. package/dist/donut.esm.js +49 -17
  30. package/dist/dumbbell.common.js +2 -2
  31. package/dist/dumbbell.esm.js +357 -143
  32. package/dist/features/all.common.js +2 -2
  33. package/dist/features/all.esm.js +647 -133
  34. package/dist/features/annotations.common.js +2 -2
  35. package/dist/features/annotations.esm.js +2 -2
  36. package/dist/features/annotations.js +2 -2
  37. package/dist/features/context-menu.common.js +2 -2
  38. package/dist/features/context-menu.esm.js +17 -8
  39. package/dist/features/context-menu.js +2 -2
  40. package/dist/features/drilldown.common.js +2 -2
  41. package/dist/features/drilldown.esm.js +3 -1
  42. package/dist/features/drilldown.js +2 -2
  43. package/dist/features/dumbbell.common.js +1 -1
  44. package/dist/features/dumbbell.esm.js +1 -1
  45. package/dist/features/dumbbell.js +1 -1
  46. package/dist/features/exports.common.js +2 -2
  47. package/dist/features/exports.esm.js +12 -6
  48. package/dist/features/exports.js +2 -2
  49. package/dist/features/facet.common.js +1 -1
  50. package/dist/features/facet.esm.js +1 -1
  51. package/dist/features/facet.js +1 -1
  52. package/dist/features/highlight-filter.common.js +5 -0
  53. package/dist/features/highlight-filter.esm.js +4485 -0
  54. package/dist/features/highlight-filter.js +5 -0
  55. package/dist/features/history.common.js +1 -1
  56. package/dist/features/history.esm.js +1 -1
  57. package/dist/features/history.js +1 -1
  58. package/dist/features/ink.common.js +2 -2
  59. package/dist/features/ink.esm.js +6 -4
  60. package/dist/features/ink.js +2 -2
  61. package/dist/features/keyboard.common.js +2 -2
  62. package/dist/features/keyboard.esm.js +482 -54
  63. package/dist/features/keyboard.js +2 -2
  64. package/dist/features/legend.common.js +2 -2
  65. package/dist/features/legend.esm.js +24 -8
  66. package/dist/features/legend.js +2 -2
  67. package/dist/features/link.common.js +1 -1
  68. package/dist/features/link.esm.js +1 -1
  69. package/dist/features/link.js +1 -1
  70. package/dist/features/marks.common.js +1 -1
  71. package/dist/features/marks.esm.js +1 -1
  72. package/dist/features/marks.js +1 -1
  73. package/dist/features/measure.common.js +2 -2
  74. package/dist/features/measure.esm.js +17 -7
  75. package/dist/features/measure.js +2 -2
  76. package/dist/features/morph.common.js +2 -2
  77. package/dist/features/morph.esm.js +74 -25
  78. package/dist/features/morph.js +2 -2
  79. package/dist/features/perspectives.common.js +2 -2
  80. package/dist/features/perspectives.esm.js +3 -1
  81. package/dist/features/perspectives.js +2 -2
  82. package/dist/features/raincloud.common.js +1 -1
  83. package/dist/features/raincloud.esm.js +1 -1
  84. package/dist/features/raincloud.js +1 -1
  85. package/dist/features/renderer-canvas.common.js +2 -2
  86. package/dist/features/renderer-canvas.esm.js +464 -28
  87. package/dist/features/renderer-canvas.js +2 -2
  88. package/dist/features/stats.common.js +1 -1
  89. package/dist/features/stats.esm.js +1 -1
  90. package/dist/features/stats.js +1 -1
  91. package/dist/features/storyboard.common.js +2 -2
  92. package/dist/features/storyboard.esm.js +3 -1
  93. package/dist/features/storyboard.js +2 -2
  94. package/dist/features/streamgraph.common.js +1 -1
  95. package/dist/features/streamgraph.esm.js +1 -1
  96. package/dist/features/streamgraph.js +1 -1
  97. package/dist/features/toolbar.common.js +2 -2
  98. package/dist/features/toolbar.esm.js +69 -48
  99. package/dist/features/toolbar.js +2 -2
  100. package/dist/features/trellis.common.js +2 -2
  101. package/dist/features/trellis.esm.js +131 -46
  102. package/dist/features/trellis.js +2 -2
  103. package/dist/features/waterfall.common.js +1 -1
  104. package/dist/features/waterfall.esm.js +1 -1
  105. package/dist/features/waterfall.js +1 -1
  106. package/dist/features/weave.common.js +1 -1
  107. package/dist/features/weave.esm.js +1 -1
  108. package/dist/features/weave.js +1 -1
  109. package/dist/heatmap.common.js +2 -2
  110. package/dist/heatmap.esm.js +74 -19
  111. package/dist/heatmap.js +2 -2
  112. package/dist/histogram.common.js +2 -2
  113. package/dist/histogram.esm.js +357 -143
  114. package/dist/icicle.common.js +1 -1
  115. package/dist/icicle.esm.js +1 -1
  116. package/dist/icicle.js +1 -1
  117. package/dist/line.common.js +2 -2
  118. package/dist/line.esm.js +297 -194
  119. package/dist/line.js +2 -2
  120. package/dist/locales/eu.json +56 -0
  121. package/dist/locales/gl.json +4 -3
  122. package/dist/pictograms.common.js +1 -1
  123. package/dist/pictograms.esm.js +1 -1
  124. package/dist/pictograms.js +1 -1
  125. package/dist/pie.common.js +2 -2
  126. package/dist/pie.esm.js +49 -17
  127. package/dist/pie.js +2 -2
  128. package/dist/polarArea.common.js +2 -2
  129. package/dist/polarArea.esm.js +49 -17
  130. package/dist/radar.common.js +2 -2
  131. package/dist/radar.esm.js +30 -4
  132. package/dist/radar.js +2 -2
  133. package/dist/radialBar.common.js +2 -2
  134. package/dist/radialBar.esm.js +149 -60
  135. package/dist/radialBar.js +2 -2
  136. package/dist/raincloud.common.js +2 -2
  137. package/dist/raincloud.esm.js +325 -143
  138. package/dist/rangeArea.common.js +2 -2
  139. package/dist/rangeArea.esm.js +297 -194
  140. package/dist/rangeBar.common.js +2 -2
  141. package/dist/rangeBar.esm.js +357 -143
  142. package/dist/scatter.common.js +2 -2
  143. package/dist/scatter.esm.js +297 -194
  144. package/dist/streamgraph.common.js +2 -2
  145. package/dist/streamgraph.esm.js +297 -194
  146. package/dist/sunburst.common.js +1 -1
  147. package/dist/sunburst.esm.js +1 -1
  148. package/dist/sunburst.js +1 -1
  149. package/dist/treemap.common.js +2 -2
  150. package/dist/treemap.esm.js +522 -40
  151. package/dist/treemap.js +2 -2
  152. package/dist/unit-shapes.common.js +1 -1
  153. package/dist/unit-shapes.esm.js +1 -1
  154. package/dist/unit-shapes.js +1 -1
  155. package/dist/unit.common.js +1 -1
  156. package/dist/unit.esm.js +1 -1
  157. package/dist/unit.js +1 -1
  158. package/dist/violin.common.js +2 -2
  159. package/dist/violin.esm.js +325 -143
  160. package/dist/violin.js +2 -2
  161. package/dist/waterfall.common.js +2 -2
  162. package/dist/waterfall.esm.js +357 -143
  163. package/package.json +7 -9
  164. package/src/apexcharts.js +43 -3
  165. package/src/assets/apexcharts.css +22 -5
  166. package/src/charts/Bar.js +268 -116
  167. package/src/charts/BarStacked.js +30 -5
  168. package/src/charts/BoxCandleStick.js +155 -16
  169. package/src/charts/HeatMap.js +77 -24
  170. package/src/charts/Line.js +303 -148
  171. package/src/charts/Pie.js +66 -15
  172. package/src/charts/Radar.js +70 -2
  173. package/src/charts/Radial.js +151 -82
  174. package/src/charts/RangeBar.js +24 -0
  175. package/src/charts/Treemap.js +676 -39
  176. package/src/charts/Violin.js +26 -0
  177. package/src/charts/common/bar/DataLabels.js +39 -16
  178. package/src/charts/common/bar/Helpers.js +134 -112
  179. package/src/charts/common/line/Helpers.js +27 -0
  180. package/src/entries/core.js +7 -0
  181. package/src/features/highlight-filter.js +27 -0
  182. package/src/locales/eu.json +56 -0
  183. package/src/locales/gl.json +4 -3
  184. package/src/modules/Animations.js +86 -6
  185. package/src/modules/Base.js +7 -0
  186. package/src/modules/Core.js +39 -42
  187. package/src/modules/CoreUtils.js +15 -7
  188. package/src/modules/Data.js +132 -17
  189. package/src/modules/DataLabels.js +289 -31
  190. package/src/modules/Exports.js +18 -6
  191. package/src/modules/Graphics.js +44 -23
  192. package/src/modules/Markers.js +11 -2
  193. package/src/modules/MorphTypeChange.js +89 -32
  194. package/src/modules/Range.js +62 -28
  195. package/src/modules/RendererController.js +36 -10
  196. package/src/modules/Series.js +341 -9
  197. package/src/modules/Theme.js +4 -10
  198. package/src/modules/ZoomPanSelection.js +68 -51
  199. package/src/modules/accessibility/KeyboardNavigation.js +674 -99
  200. package/src/modules/animations/AxisTransition.js +100 -9
  201. package/src/modules/animations/CircleTransition.js +479 -0
  202. package/src/modules/animations/DataLabelTransition.js +275 -2
  203. package/src/modules/animations/LayoutTransition.js +472 -0
  204. package/src/modules/animations/LengthTransition.js +122 -0
  205. package/src/modules/annotations/Annotations.js +10 -1
  206. package/src/modules/axes/Grid.js +68 -43
  207. package/src/modules/contextMenu/ContextMenu.js +23 -7
  208. package/src/modules/drilldown/Drilldown.js +3 -0
  209. package/src/modules/helpers/DataLabelOverlap.js +222 -0
  210. package/src/modules/helpers/Destroy.js +2 -0
  211. package/src/modules/helpers/InitCtxVariables.js +15 -0
  212. package/src/modules/helpers/UpdateHelpers.js +95 -3
  213. package/src/modules/highlightFilter/HighlightFilter.js +2858 -0
  214. package/src/modules/highlightFilter/PiePart.js +653 -0
  215. package/src/modules/highlightFilter/RadialPart.js +1337 -0
  216. package/src/modules/highlightFilter/TreemapPart.js +499 -0
  217. package/src/modules/highlightFilter/util.js +306 -0
  218. package/src/modules/ink/InkLayer.js +15 -3
  219. package/src/modules/legend/HeatmapGradientLegend.js +26 -7
  220. package/src/modules/legend/Helpers.js +14 -1
  221. package/src/modules/license/LicenseEnforcer.js +8 -5
  222. package/src/modules/measure/Measure.js +17 -7
  223. package/src/modules/settings/Config.js +322 -2
  224. package/src/modules/settings/Defaults.js +48 -49
  225. package/src/modules/settings/Globals.js +49 -1
  226. package/src/modules/settings/Options.js +44 -0
  227. package/src/modules/settings/TypeAliases.js +83 -0
  228. package/src/modules/tooltip/AxesTooltip.js +5 -1
  229. package/src/modules/tooltip/Intersect.js +663 -197
  230. package/src/modules/tooltip/Labels.js +89 -28
  231. package/src/modules/tooltip/Marker.js +209 -20
  232. package/src/modules/tooltip/Position.js +829 -138
  233. package/src/modules/tooltip/Tooltip.js +493 -73
  234. package/src/modules/tooltip/Utils.js +173 -3
  235. package/src/modules/tooltip/constants.js +20 -0
  236. package/src/modules/tooltip/placement.js +569 -0
  237. package/src/modules/trellis/Trellis.js +14 -2
  238. package/src/modules/trellis/TrellisScales.js +58 -17
  239. package/src/modules/trellis/TrellisSplit.js +19 -3
  240. package/src/modules/trellis/TrellisSync.js +7 -1
  241. package/src/modules/trellis/TrellisTooltip.js +27 -15
  242. package/src/renderers/Renderer.js +2 -0
  243. package/src/renderers/canvas/CanvasCompositor.js +113 -17
  244. package/src/renderers/canvas/CanvasGraphics.js +173 -3
  245. package/src/renderers/canvas/CanvasRenderer.js +275 -14
  246. package/src/types/internal.d.ts +132 -2
  247. package/src/utils/Utils.js +61 -0
  248. package/types/apexcharts.d.ts +365 -16
@@ -359,15 +359,24 @@ rect.legend-mouseover-inactive,
359
359
  .apexcharts-bar-area.apexcharts-keyboard-focused,
360
360
  .apexcharts-candlestick-area.apexcharts-keyboard-focused,
361
361
  .apexcharts-boxPlot-area.apexcharts-keyboard-focused,
362
+ .apexcharts-violin-area.apexcharts-keyboard-focused,
362
363
  .apexcharts-rangebar-area.apexcharts-keyboard-focused,
363
364
  .apexcharts-pie-area.apexcharts-keyboard-focused,
364
365
  .apexcharts-heatmap-rect.apexcharts-keyboard-focused,
365
- .apexcharts-treemap-rect.apexcharts-keyboard-focused {
366
+ .apexcharts-treemap-rect.apexcharts-keyboard-focused,
367
+ .apexcharts-keyboard-focus-ring {
366
368
  stroke: var(--apexcharts-focus-color, #008FFB);
367
369
  stroke-width: 2;
368
370
  stroke-opacity: 1;
369
371
  }
370
372
 
373
+ /* A heatmap or a bar-like painted to canvas has no node per cell or mark, so
374
+ keyboard focus draws this outline over the focused one instead. */
375
+ .apexcharts-keyboard-focus-ring {
376
+ fill: none;
377
+ pointer-events: none;
378
+ }
379
+
371
380
  .apexcharts-tooltip {
372
381
  --apx-tt-bg: #ffffff;
373
382
  /* Shared by the body and the arrow's two outward facets, so the
@@ -430,7 +439,9 @@ rect.legend-mouseover-inactive,
430
439
  opacity: 1;
431
440
  transition: opacity .12s ease
432
441
  }
433
- .apexcharts-tooltip.apexcharts-tooltip-interactive {
442
+ /* Only while shown: a hidden box keeps its last position, which on a short
443
+ * chart is outside the chart, over whatever the page has there. */
444
+ .apexcharts-tooltip.apexcharts-tooltip-interactive.apexcharts-active {
434
445
  pointer-events: auto;
435
446
  }
436
447
  .apexcharts-tooltip.apexcharts-active[data-positioned="true"] {
@@ -532,7 +543,13 @@ rect.legend-mouseover-inactive,
532
543
  * (-6px = -1px border - 10px/2), i.e. exactly on the body's border line,
533
544
  * so the two borders meet end to end instead of overlapping or gapping.
534
545
  * `box-sizing` must be border-box or the bordered sides would grow the
535
- * square asymmetrically and knock its centre off that line. */
546
+ * square asymmetrically and knock its centre off that line.
547
+ *
548
+ * Along the edge, `--apx-tt-arrow-y` / `--apx-tt-arrow-x` are measured from
549
+ * the body's outer edge, as every position the script works out is, while
550
+ * `top` / `left` count from inside its 1px border: hence 6px back, not 5px,
551
+ * or the arrow stands a pixel past the mark it points at. The 50% default
552
+ * centres on the padding box, which is the body's centre either way. */
536
553
  .apexcharts-tooltip-arrow {
537
554
  position: absolute;
538
555
  box-sizing: border-box;
@@ -541,7 +558,7 @@ rect.legend-mouseover-inactive,
541
558
  background: var(--apx-tt-arrow-bg);
542
559
  transform: rotate(45deg);
543
560
  pointer-events: none;
544
- top: calc(var(--apx-tt-arrow-y, 50%) - 5px)
561
+ top: calc(var(--apx-tt-arrow-y, calc(50% + 1px)) - 6px)
545
562
  }
546
563
 
547
564
  /* Which two sides face outward depends on the placement. Under
@@ -568,7 +585,7 @@ rect.legend-mouseover-inactive,
568
585
  .apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow,
569
586
  .apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {
570
587
  top: auto;
571
- left: calc(var(--apx-tt-arrow-x, 50%) - 5px)
588
+ left: calc(var(--apx-tt-arrow-x, calc(50% + 1px)) - 6px)
572
589
  }
573
590
 
574
591
  .apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow {