apexcharts 8.2.0 → 8.3.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 +7 -7
- package/dist/apexcharts.common.js +2 -2
- package/dist/apexcharts.core.js +19793 -19713
- package/dist/apexcharts.core.min.js +2 -2
- package/dist/apexcharts.css +38 -8
- package/dist/apexcharts.esm.js +1882 -1625
- package/dist/apexcharts.full.js +22044 -21634
- package/dist/apexcharts.full.min.js +2 -2
- package/dist/apexcharts.js +21414 -21124
- package/dist/apexcharts.min.js +2 -2
- package/dist/apexcharts.ssr.common.js +2 -2
- package/dist/apexcharts.ssr.esm.js +21413 -21123
- package/dist/area.common.js +2 -2
- package/dist/area.esm.js +91 -40
- package/dist/bar.common.js +2 -2
- package/dist/bar.esm.js +478 -406
- package/dist/bar.js +2 -2
- package/dist/boxPlot.common.js +2 -2
- package/dist/boxPlot.esm.js +409 -334
- package/dist/bubble.common.js +2 -2
- package/dist/bubble.esm.js +91 -40
- package/dist/candlestick.common.js +2 -2
- package/dist/candlestick.esm.js +409 -334
- package/dist/candlestick.js +2 -2
- package/dist/column.common.js +2 -2
- package/dist/column.esm.js +478 -406
- package/dist/core.common.js +2 -2
- package/dist/core.esm.js +19793 -19713
- package/dist/donut.common.js +2 -2
- package/dist/donut.esm.js +3 -9
- package/dist/dumbbell.common.js +2 -2
- package/dist/dumbbell.esm.js +478 -406
- package/dist/features/all.common.js +2 -2
- package/dist/features/all.esm.js +442 -324
- package/dist/features/annotations.common.js +2 -2
- package/dist/features/annotations.esm.js +65 -48
- package/dist/features/annotations.js +2 -2
- package/dist/features/context-menu.common.js +1 -1
- package/dist/features/context-menu.esm.js +1 -1
- package/dist/features/context-menu.js +1 -1
- package/dist/features/drilldown.common.js +2 -2
- package/dist/features/drilldown.esm.js +4 -2
- package/dist/features/drilldown.js +2 -2
- package/dist/features/dumbbell.common.js +1 -1
- package/dist/features/dumbbell.esm.js +1 -1
- package/dist/features/dumbbell.js +1 -1
- package/dist/features/exports.common.js +2 -2
- package/dist/features/exports.esm.js +10 -4
- package/dist/features/exports.js +2 -2
- package/dist/features/facet.common.js +1 -1
- package/dist/features/facet.esm.js +1 -1
- package/dist/features/facet.js +1 -1
- package/dist/features/highlight-filter.common.js +2 -2
- package/dist/features/highlight-filter.esm.js +14 -9
- package/dist/features/highlight-filter.js +2 -2
- package/dist/features/history.common.js +1 -1
- package/dist/features/history.esm.js +1 -1
- package/dist/features/history.js +1 -1
- package/dist/features/ink.common.js +1 -1
- package/dist/features/ink.esm.js +1 -1
- package/dist/features/ink.js +1 -1
- package/dist/features/keyboard.common.js +2 -2
- package/dist/features/keyboard.esm.js +97 -145
- package/dist/features/keyboard.js +2 -2
- package/dist/features/legend.common.js +2 -2
- package/dist/features/legend.esm.js +64 -44
- package/dist/features/legend.js +2 -2
- package/dist/features/link.common.js +1 -1
- package/dist/features/link.esm.js +1 -1
- package/dist/features/link.js +1 -1
- package/dist/features/marks.common.js +1 -1
- package/dist/features/marks.esm.js +1 -1
- package/dist/features/marks.js +1 -1
- package/dist/features/measure.common.js +1 -1
- package/dist/features/measure.esm.js +1 -1
- package/dist/features/measure.js +1 -1
- package/dist/features/morph.common.js +2 -2
- package/dist/features/morph.esm.js +9 -5
- package/dist/features/morph.js +2 -2
- package/dist/features/perspectives.common.js +2 -2
- package/dist/features/perspectives.esm.js +4 -1
- package/dist/features/perspectives.js +2 -2
- package/dist/features/raincloud.common.js +2 -2
- package/dist/features/raincloud.esm.js +26 -27
- package/dist/features/raincloud.js +2 -2
- package/dist/features/renderer-canvas.common.js +2 -2
- package/dist/features/renderer-canvas.esm.js +2 -1
- package/dist/features/renderer-canvas.js +2 -2
- package/dist/features/stats.common.js +2 -2
- package/dist/features/stats.esm.js +52 -59
- package/dist/features/stats.js +2 -2
- package/dist/features/storyboard.common.js +2 -2
- package/dist/features/storyboard.esm.js +4 -1
- package/dist/features/storyboard.js +2 -2
- package/dist/features/streamgraph.common.js +2 -2
- package/dist/features/streamgraph.esm.js +48 -14
- package/dist/features/streamgraph.js +2 -2
- package/dist/features/toolbar.common.js +2 -2
- package/dist/features/toolbar.esm.js +148 -18
- package/dist/features/toolbar.js +2 -2
- package/dist/features/trellis.common.js +2 -2
- package/dist/features/trellis.esm.js +150 -63
- package/dist/features/trellis.js +2 -2
- package/dist/features/waterfall.common.js +1 -1
- package/dist/features/waterfall.esm.js +1 -1
- package/dist/features/waterfall.js +1 -1
- package/dist/features/weave.common.js +2 -2
- package/dist/features/weave.esm.js +13 -12
- package/dist/features/weave.js +2 -2
- package/dist/full.common.js +2 -2
- package/dist/full.esm.js +1068 -842
- package/dist/heatmap.common.js +2 -2
- package/dist/heatmap.esm.js +3 -17
- package/dist/heatmap.js +2 -2
- package/dist/histogram.common.js +2 -2
- package/dist/histogram.esm.js +529 -464
- package/dist/icicle.common.js +2 -2
- package/dist/icicle.esm.js +80 -46
- package/dist/icicle.js +2 -2
- package/dist/line.common.js +2 -2
- package/dist/line.esm.js +91 -40
- package/dist/line.js +2 -2
- package/dist/locales/en.json +2 -1
- package/dist/locales/ro.json +3 -2
- package/dist/pictograms.common.js +1 -1
- package/dist/pictograms.esm.js +1 -1
- package/dist/pictograms.js +1 -1
- package/dist/pie.common.js +2 -2
- package/dist/pie.esm.js +3 -9
- package/dist/pie.js +2 -2
- package/dist/polarArea.common.js +2 -2
- package/dist/polarArea.esm.js +3 -9
- package/dist/radar.common.js +2 -2
- package/dist/radar.esm.js +5 -4
- package/dist/radar.js +2 -2
- package/dist/radialBar.common.js +2 -2
- package/dist/radialBar.esm.js +5 -12
- package/dist/radialBar.js +2 -2
- package/dist/raincloud.common.js +2 -2
- package/dist/raincloud.esm.js +97 -52
- package/dist/rangeArea.common.js +2 -2
- package/dist/rangeArea.esm.js +91 -40
- package/dist/rangeBar.common.js +2 -2
- package/dist/rangeBar.esm.js +478 -406
- package/dist/scatter.common.js +2 -2
- package/dist/scatter.esm.js +91 -40
- package/dist/streamgraph.common.js +2 -2
- package/dist/streamgraph.esm.js +138 -53
- package/dist/sunburst.common.js +2 -2
- package/dist/sunburst.esm.js +116 -94
- package/dist/sunburst.js +2 -2
- package/dist/treemap.common.js +2 -2
- package/dist/treemap.esm.js +138 -104
- package/dist/treemap.js +2 -2
- package/dist/unit-shapes.common.js +1 -1
- package/dist/unit-shapes.esm.js +1 -1
- package/dist/unit-shapes.js +1 -1
- package/dist/unit.common.js +2 -2
- package/dist/unit.esm.js +280 -202
- package/dist/unit.js +2 -2
- package/dist/violin.common.js +2 -2
- package/dist/violin.esm.js +72 -26
- package/dist/violin.js +2 -2
- package/dist/waterfall.common.js +2 -2
- package/dist/waterfall.esm.js +477 -405
- package/package.json +1 -1
- package/src/apexcharts.js +40 -59
- package/src/assets/apexcharts.css +38 -8
- package/src/charts/Bar.js +62 -55
- package/src/charts/BarStacked.js +80 -88
- package/src/charts/BoxCandleStick.js +28 -31
- package/src/charts/Icicle.js +68 -47
- package/src/charts/Line.js +118 -42
- package/src/charts/Pie.js +2 -8
- package/src/charts/Radar.js +5 -7
- package/src/charts/Radial.js +2 -6
- package/src/charts/RangeBar.js +47 -43
- package/src/charts/Sunburst.js +101 -98
- package/src/charts/Treemap.js +150 -88
- package/src/charts/Unit.js +368 -250
- package/src/charts/Violin.js +48 -30
- package/src/charts/common/Breadcrumb.js +2 -2
- package/src/charts/common/Hierarchy.js +32 -11
- package/src/charts/common/Jitter.js +32 -7
- package/src/charts/common/Stats.js +30 -23
- package/src/charts/common/bar/DataLabels.js +76 -81
- package/src/charts/common/bar/Helpers.js +43 -7
- package/src/charts/common/line/Helpers.js +12 -15
- package/src/charts/common/partition/NodeTooltip.js +29 -7
- package/src/charts/common/partition/Partition.js +33 -1
- package/src/charts/common/treemap/Helpers.js +3 -11
- package/src/charts/common/treemap/Nested.js +2 -3
- package/src/features/raincloud.js +16 -10
- package/src/features/stats.js +67 -62
- package/src/locales/en.json +2 -1
- package/src/locales/ro.json +3 -2
- package/src/modules/Animations.js +102 -95
- package/src/modules/AxisMapping.js +47 -12
- package/src/modules/Core.js +4 -0
- package/src/modules/CoreUtils.js +18 -42
- package/src/modules/Data.js +23 -24
- package/src/modules/DataLabels.js +6 -6
- package/src/modules/Exports.js +12 -5
- package/src/modules/Fill.js +17 -8
- package/src/modules/Filters.js +50 -50
- package/src/modules/Graphics.js +69 -51
- package/src/modules/Markers.js +3 -1
- package/src/modules/MorphTypeChange.js +13 -7
- package/src/modules/Range.js +44 -29
- package/src/modules/RendererController.js +17 -3
- package/src/modules/Scales.js +32 -9
- package/src/modules/Series.js +41 -19
- package/src/modules/Theme.js +1 -1
- package/src/modules/Toolbar.js +3 -2
- package/src/modules/UnitMarkRegistry.js +0 -5
- package/src/modules/ZoomPanSelection.js +123 -2
- package/src/modules/accessibility/KeyboardNavigation.js +114 -186
- package/src/modules/animations/Easing.js +2 -1
- package/src/modules/animations/LengthTransition.js +22 -2
- package/src/modules/annotations/Helpers.js +68 -52
- package/src/modules/axes/Grid.js +21 -7
- package/src/modules/axes/YAxis.js +8 -9
- package/src/modules/dimensions/Dimensions.js +9 -3
- package/src/modules/dimensions/Grid.js +2 -2
- package/src/modules/dimensions/XAxis.js +2 -5
- package/src/modules/drilldown/Breadcrumb.js +5 -2
- package/src/modules/helpers/Destroy.js +1 -1
- package/src/modules/helpers/UpdateHelpers.js +33 -15
- package/src/modules/highlightFilter/HighlightFilter.js +8 -9
- package/src/modules/highlightFilter/TreemapPart.js +2 -2
- package/src/modules/legend/HeatmapGradientLegend.js +76 -45
- package/src/modules/legend/Helpers.js +8 -1
- package/src/modules/legend/Legend.js +11 -12
- package/src/modules/license/LicenseEnforcer.js +5 -0
- package/src/modules/settings/Defaults.js +28 -56
- package/src/modules/settings/Globals.js +5 -0
- package/src/modules/settings/Options.js +7 -7
- package/src/modules/settings/TypeAliases.js +33 -16
- package/src/modules/streamgraph/StreamLabels.js +1 -0
- package/src/modules/tooltip/Labels.js +73 -76
- package/src/modules/tooltip/Marker.js +25 -21
- package/src/modules/tooltip/Position.js +88 -51
- package/src/modules/tooltip/Tooltip.js +242 -255
- package/src/modules/tooltip/Utils.js +71 -130
- package/src/modules/tooltip/constants.js +5 -5
- package/src/modules/trellis/Trellis.js +6 -0
- package/src/modules/trellis/TrellisChrome.js +18 -7
- package/src/modules/trellis/TrellisSync.js +2 -0
- package/src/modules/trellis/TrellisTooltip.js +2 -11
- package/src/modules/weave/WeaveHost.js +18 -12
- package/src/renderers/canvas/CanvasGraphics.js +1 -0
- package/src/ssr/DOMShim.js +10 -0
- package/src/svg/SVGFilter.js +26 -17
- package/src/types/internal.d.ts +9 -3
- package/src/utils/Utils.js +0 -14
- package/types/apexcharts.d.ts +33 -12
package/types/apexcharts.d.ts
CHANGED
|
@@ -336,11 +336,11 @@ declare class ApexCharts {
|
|
|
336
336
|
/** Returns the sum of all data points whose x value falls within [minX, maxX]. */
|
|
337
337
|
getSeriesTotalXRange(minX: number, maxX: number): number[]
|
|
338
338
|
|
|
339
|
-
/** Returns the highest y value in the specified series. */
|
|
340
|
-
getHighestValueInSeries(seriesIndex?: number): number
|
|
339
|
+
/** Returns the highest y value in the specified series, or undefined for an index with no series. */
|
|
340
|
+
getHighestValueInSeries(seriesIndex?: number): number | undefined
|
|
341
341
|
|
|
342
|
-
/** Returns the lowest y value in the specified series. */
|
|
343
|
-
getLowestValueInSeries(seriesIndex?: number): number
|
|
342
|
+
/** Returns the lowest y value in the specified series, or undefined for an index with no series. */
|
|
343
|
+
getLowestValueInSeries(seriesIndex?: number): number | undefined
|
|
344
344
|
|
|
345
345
|
/** Returns the sum of each series (totals used for percentage calculations). */
|
|
346
346
|
getSeriesTotal(): number[]
|
|
@@ -2131,6 +2131,7 @@ type ApexChart = {
|
|
|
2131
2131
|
/** Strata (#2) series renderer. Requires `import 'apexcharts/features/renderer-canvas'` for non-SVG. */
|
|
2132
2132
|
renderer?: 'svg' | 'canvas' | 'auto'
|
|
2133
2133
|
rendererThreshold?: number
|
|
2134
|
+
/** @deprecated Has no effect; removed in 9.0. Use `renderer` instead. */
|
|
2134
2135
|
layers?: {
|
|
2135
2136
|
series?: 'svg' | 'canvas' | 'auto'
|
|
2136
2137
|
grid?: 'svg'
|
|
@@ -2236,13 +2237,21 @@ type ApexChart = {
|
|
|
2236
2237
|
type?: 'x' | 'y' | 'xy'
|
|
2237
2238
|
autoScaleYaxis?: boolean
|
|
2238
2239
|
/**
|
|
2239
|
-
* Cursor-anchored zoom on mouse wheel / trackpad. `'auto'`
|
|
2240
|
-
*
|
|
2241
|
-
*
|
|
2242
|
-
*
|
|
2240
|
+
* Cursor-anchored zoom on mouse wheel / trackpad. `'auto'` is cooperative:
|
|
2241
|
+
* a bare wheel scrolls the page, and Ctrl/Cmd + wheel (or a trackpad
|
|
2242
|
+
* pinch) zooms. It is offered only when the toolbar's reset button is
|
|
2243
|
+
* present, so a zoom is always undoable. `true` zooms on every wheel, even
|
|
2244
|
+
* with the toolbar hidden. Requires `enabled: true`.
|
|
2243
2245
|
* @default 'auto'
|
|
2244
2246
|
*/
|
|
2245
2247
|
allowMouseWheelZoom?: boolean | 'auto'
|
|
2248
|
+
/**
|
|
2249
|
+
* With the cooperative `'auto'` wheel, a bare scroll over the chart
|
|
2250
|
+
* briefly shows how to zoom it. The text is the locale's
|
|
2251
|
+
* `toolbar.wheelZoomHint`, where `{key}` becomes Ctrl or ⌘.
|
|
2252
|
+
* @default true
|
|
2253
|
+
*/
|
|
2254
|
+
wheelHint?: boolean
|
|
2246
2255
|
/**
|
|
2247
2256
|
* Momentum: enable two-finger pinch-zoom on touch devices. Zooms the x-axis
|
|
2248
2257
|
* around the pinch centroid, frame-by-frame. `'auto'` enables it only when
|
|
@@ -2398,6 +2407,7 @@ type ApexChart = {
|
|
|
2398
2407
|
}
|
|
2399
2408
|
dataReducer?: {
|
|
2400
2409
|
enabled?: boolean
|
|
2410
|
+
/** @deprecated Has no effect; removed in 9.0. */
|
|
2401
2411
|
algorithm?: 'lttb'
|
|
2402
2412
|
targetPoints?: number
|
|
2403
2413
|
threshold?: number
|
|
@@ -2869,6 +2879,8 @@ type ApexLocale = {
|
|
|
2869
2879
|
exportToSVG?: string
|
|
2870
2880
|
exportToPNG?: string
|
|
2871
2881
|
exportToCSV?: string
|
|
2882
|
+
/** The cooperative wheel's hint; `{key}` becomes Ctrl or ⌘. Default 'Use {key} + scroll to zoom'. */
|
|
2883
|
+
wheelZoomHint?: string
|
|
2872
2884
|
}
|
|
2873
2885
|
/** The highlight filter add-on's words. */
|
|
2874
2886
|
highlightFilter?: {
|
|
@@ -3781,7 +3793,8 @@ type ApexPlotOptions = {
|
|
|
3781
3793
|
* recolours) across a regroup - the circles-to-bars transition.
|
|
3782
3794
|
* 'identity': keyed by each datum's `id`/`name`, so a SPECIFIC unit migrates
|
|
3783
3795
|
* across any regroup or relayout keeping its colour and size. Requires the
|
|
3784
|
-
* per-unit object form with unique ids/names
|
|
3796
|
+
* per-unit object form with unique ids/names (a repeated one is tracked by
|
|
3797
|
+
* its order of appearance).
|
|
3785
3798
|
*/
|
|
3786
3799
|
transition?: 'group' | 'flow' | 'identity'
|
|
3787
3800
|
/**
|
|
@@ -3919,7 +3932,10 @@ type ApexPlotOptions = {
|
|
|
3919
3932
|
sizeField?: string
|
|
3920
3933
|
/** `[minRadius, maxRadius]` in px: turns dots into area-scaled bubbles. */
|
|
3921
3934
|
sizeRange?: [number, number]
|
|
3922
|
-
/**
|
|
3935
|
+
/**
|
|
3936
|
+
* Left-gutter width reserved for lane (category) labels (lanes mode).
|
|
3937
|
+
* Defaults to the widest label, up to a third of the plot.
|
|
3938
|
+
*/
|
|
3923
3939
|
laneLabelWidth?: number
|
|
3924
3940
|
/** Draw the faint gridlines. Defaults to true. */
|
|
3925
3941
|
gridlines?: boolean
|
|
@@ -3991,7 +4007,11 @@ type ApexPlotOptions = {
|
|
|
3991
4007
|
borderRadius?: number
|
|
3992
4008
|
/** 1 dot represents this many units of value (waffle scaling). */
|
|
3993
4009
|
unitValue?: number
|
|
3994
|
-
/**
|
|
4010
|
+
/**
|
|
4011
|
+
* Safety cap on total dots; counts scale down proportionally above it (a
|
|
4012
|
+
* scatter keeps an even sample of each category). A split grid draws a
|
|
4013
|
+
* fixed number of cells per tile and is not capped.
|
|
4014
|
+
*/
|
|
3995
4015
|
maxUnits?: number
|
|
3996
4016
|
/** Packed layout: order categories smallest-first (minority centred). */
|
|
3997
4017
|
sortByGroup?: boolean
|
|
@@ -5327,7 +5347,8 @@ interface ApexUnitObject {
|
|
|
5327
5347
|
* Stable identity. The datum's own `id`/`name` when the per-unit object form
|
|
5328
5348
|
* supplies one, so a provider can address a specific unit ("Texas",
|
|
5329
5349
|
* "employee 41") rather than a positional slot; otherwise
|
|
5330
|
-
* `"<seriesIndex>:<dataPointIndex>"`.
|
|
5350
|
+
* `"<seriesIndex>:<dataPointIndex>"`. A repeated one is suffixed by its
|
|
5351
|
+
* order of appearance (`"Alex#2"`).
|
|
5331
5352
|
*/
|
|
5332
5353
|
id: string
|
|
5333
5354
|
/** Global draw order across every category. */
|