apexcharts 6.8.0 → 6.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.
- package/README.md +19 -1
- package/dist/apexcharts.common.js +2 -2
- package/dist/apexcharts.css +159 -55
- package/dist/apexcharts.esm.js +17940 -12543
- package/dist/apexcharts.js +17921 -12524
- package/dist/apexcharts.min.js +2 -2
- package/dist/apexcharts.ssr.common.js +2 -2
- package/dist/apexcharts.ssr.esm.js +17943 -12546
- package/dist/area.common.js +2 -2
- package/dist/area.esm.js +8 -9
- package/dist/bar.common.js +2 -2
- package/dist/bar.esm.js +107 -12
- package/dist/boxPlot.common.js +2 -2
- package/dist/boxPlot.esm.js +117 -16
- package/dist/bubble.common.js +2 -2
- package/dist/bubble.esm.js +8 -9
- package/dist/candlestick.common.js +2 -2
- package/dist/candlestick.esm.js +117 -16
- package/dist/column.common.js +2 -2
- package/dist/column.esm.js +107 -12
- package/dist/core.common.js +2 -2
- package/dist/core.esm.js +6225 -5042
- package/dist/donut.common.js +2 -2
- package/dist/donut.esm.js +470 -120
- package/dist/features/all.common.js +2 -2
- package/dist/features/all.esm.js +4080 -1984
- package/dist/features/annotations.common.js +2 -2
- package/dist/features/annotations.esm.js +6 -4
- package/dist/features/context-menu.common.js +1 -1
- package/dist/features/context-menu.esm.js +1 -1
- package/dist/features/drilldown.common.js +2 -2
- package/dist/features/drilldown.esm.js +421 -21
- package/dist/features/exports.common.js +2 -2
- package/dist/features/exports.esm.js +247 -11
- package/dist/features/facet.common.js +1 -1
- package/dist/features/facet.esm.js +1 -1
- package/dist/features/history.common.js +1 -1
- package/dist/features/history.esm.js +1 -1
- package/dist/features/ink.common.js +1 -1
- package/dist/features/ink.esm.js +1 -1
- package/dist/features/keyboard.common.js +2 -2
- package/dist/features/keyboard.esm.js +5 -13
- package/dist/features/legend.common.js +2 -2
- package/dist/features/legend.esm.js +219 -19
- package/dist/features/link.common.js +2 -2
- package/dist/features/link.esm.js +244 -516
- package/dist/features/marks.common.js +1 -1
- package/dist/features/marks.esm.js +1 -1
- package/dist/features/measure.common.js +1 -1
- package/dist/features/measure.esm.js +1 -1
- package/dist/features/morph.common.js +2 -2
- package/dist/features/morph.esm.js +1221 -20
- package/dist/features/perspectives.common.js +2 -2
- package/dist/features/perspectives.esm.js +221 -412
- package/dist/features/renderer-canvas.common.js +1 -1
- package/dist/features/renderer-canvas.esm.js +1 -1
- package/dist/features/stats.common.js +5 -0
- package/dist/features/stats.esm.js +580 -0
- package/dist/features/storyboard.common.js +2 -2
- package/dist/features/storyboard.esm.js +214 -422
- package/dist/features/toolbar.common.js +2 -2
- package/dist/features/toolbar.esm.js +291 -19
- package/dist/features/weave.common.js +1 -1
- package/dist/features/weave.esm.js +1 -1
- package/dist/heatmap.common.js +1 -1
- package/dist/heatmap.esm.js +1 -1
- package/dist/histogram.common.js +5 -0
- package/dist/histogram.esm.js +4017 -0
- package/dist/line.common.js +2 -2
- package/dist/line.esm.js +8 -9
- package/dist/pie.common.js +2 -2
- package/dist/pie.esm.js +470 -120
- package/dist/polarArea.common.js +2 -2
- package/dist/polarArea.esm.js +470 -120
- package/dist/radar.common.js +2 -2
- package/dist/radar.esm.js +68 -53
- package/dist/radialBar.common.js +2 -2
- package/dist/radialBar.esm.js +470 -120
- package/dist/rangeArea.common.js +2 -2
- package/dist/rangeArea.esm.js +8 -9
- package/dist/rangeBar.common.js +2 -2
- package/dist/rangeBar.esm.js +107 -12
- package/dist/scatter.common.js +2 -2
- package/dist/scatter.esm.js +8 -9
- package/dist/sunburst.common.js +2 -2
- package/dist/sunburst.esm.js +192 -92
- package/dist/treemap.common.js +2 -2
- package/dist/treemap.esm.js +1437 -64
- package/dist/unit-shapes.common.js +5 -0
- package/dist/unit-shapes.esm.js +1544 -0
- package/dist/unit-shapes.js +5 -0
- package/dist/unit.common.js +5 -0
- package/dist/unit.esm.js +2566 -0
- package/dist/violin.common.js +2 -2
- package/dist/violin.esm.js +119 -18
- package/package.json +25 -2
- package/src/apexcharts.js +168 -4
- package/src/assets/apexcharts.css +159 -55
- package/src/charts/Bar.js +42 -3
- package/src/charts/BoxCandleStick.js +13 -2
- package/src/charts/Line.js +30 -11
- package/src/charts/Pie.js +489 -90
- package/src/charts/Radar.js +36 -0
- package/src/charts/Sunburst.js +129 -104
- package/src/charts/Treemap.js +1224 -71
- package/src/charts/Unit.js +709 -41
- package/src/charts/Violin.js +14 -2
- package/src/charts/common/Breadcrumb.js +295 -0
- package/src/charts/common/Hierarchy.js +253 -0
- package/src/charts/common/OuterLabels.js +182 -0
- package/src/charts/common/Stats.js +453 -0
- package/src/charts/common/bar/DataLabels.js +81 -17
- package/src/charts/common/bar/Helpers.js +40 -1
- package/src/charts/common/circle/Helpers.js +10 -61
- package/src/charts/common/treemap/ColorScale.js +291 -0
- package/src/charts/common/treemap/Nested.js +165 -0
- package/src/entries/histogram.js +11 -0
- package/src/features/all.js +1 -0
- package/src/features/stats.js +535 -0
- package/src/libs/Treemap-squared.js +151 -1
- package/src/modules/AxisMapping.js +21 -1
- package/src/modules/Base.js +12 -0
- package/src/modules/Data.js +116 -2
- package/src/modules/Exports.js +299 -17
- package/src/modules/Filters.js +60 -0
- package/src/modules/Graphics.js +37 -7
- package/src/modules/Markers.js +12 -4
- package/src/modules/MorphPieces.js +403 -0
- package/src/modules/MorphTypeChange.js +1363 -31
- package/src/modules/RowSourceRegistry.js +99 -0
- package/src/modules/Series.js +46 -0
- package/src/modules/SeriesTransformRegistry.js +75 -0
- package/src/modules/Theme.js +30 -5
- package/src/modules/UnitLayoutRegistry.js +77 -0
- package/src/modules/ZoomPanSelection.js +27 -10
- package/src/modules/accessibility/KeyboardNavigation.js +8 -18
- package/src/modules/annotations/Helpers.js +15 -3
- package/src/modules/axes/Grid.js +2 -0
- package/src/modules/dimensions/Dimensions.js +88 -4
- package/src/modules/dimensions/Grid.js +68 -0
- package/src/modules/drilldown/Breadcrumb.js +16 -4
- package/src/modules/drilldown/Drilldown.js +396 -15
- package/src/modules/drilldown/DrilldownLoading.js +98 -0
- package/src/modules/helpers/InitCtxVariables.js +1 -0
- package/src/modules/helpers/UpdateHelpers.js +30 -4
- package/src/modules/legend/HeatmapGradientLegend.js +93 -21
- package/src/modules/legend/Legend.js +5 -4
- package/src/modules/license/LicenseEnforcer.js +8 -4
- package/src/modules/link/Crossfilter.js +13 -725
- package/src/modules/link/LinkedViews.js +8 -1
- package/src/modules/settings/Config.js +17 -42
- package/src/modules/settings/Defaults.js +456 -47
- package/src/modules/settings/Globals.js +10 -0
- package/src/modules/settings/Options.js +343 -16
- package/src/modules/tooltip/Marker.js +15 -2
- package/src/modules/tooltip/Position.js +30 -19
- package/src/modules/tooltip/Tooltip.js +76 -20
- package/src/modules/tooltip/Utils.js +14 -16
- package/src/modules/tooltip/constants.js +12 -1
- package/src/types/internal.d.ts +46 -0
- package/src/unit-shapes/catalog.js +97 -0
- package/src/unit-shapes/cdn.js +25 -0
- package/src/unit-shapes/engine/digits.js +150 -0
- package/src/unit-shapes/engine/pack.js +234 -0
- package/src/unit-shapes/engine/path.js +413 -0
- package/src/unit-shapes/engine/preview.js +172 -0
- package/src/unit-shapes/engine/radial.js +369 -0
- package/src/unit-shapes/engine/region.js +313 -0
- package/src/unit-shapes/engine/shape.js +120 -0
- package/src/unit-shapes/engine/silhouette.js +111 -0
- package/src/unit-shapes/engine/stroke.js +167 -0
- package/src/unit-shapes/index.js +82 -0
- package/src/unit-shapes/registry.js +77 -0
- package/src/unit-shapes/shapes/arrow.js +17 -0
- package/src/unit-shapes/shapes/battery.js +18 -0
- package/src/unit-shapes/shapes/bolt.js +17 -0
- package/src/unit-shapes/shapes/bulb.js +20 -0
- package/src/unit-shapes/shapes/car.js +23 -0
- package/src/unit-shapes/shapes/check.js +18 -0
- package/src/unit-shapes/shapes/cross.js +19 -0
- package/src/unit-shapes/shapes/crown.js +18 -0
- package/src/unit-shapes/shapes/droplet.js +14 -0
- package/src/unit-shapes/shapes/fish.js +23 -0
- package/src/unit-shapes/shapes/flame.js +22 -0
- package/src/unit-shapes/shapes/flask.js +17 -0
- package/src/unit-shapes/shapes/funnel.js +19 -0
- package/src/unit-shapes/shapes/gear.js +34 -0
- package/src/unit-shapes/shapes/globe.js +19 -0
- package/src/unit-shapes/shapes/group.js +29 -0
- package/src/unit-shapes/shapes/heart.js +16 -0
- package/src/unit-shapes/shapes/house.js +20 -0
- package/src/unit-shapes/shapes/human.js +18 -0
- package/src/unit-shapes/shapes/leaf.js +24 -0
- package/src/unit-shapes/shapes/moneybag.js +22 -0
- package/src/unit-shapes/shapes/mountain.js +17 -0
- package/src/unit-shapes/shapes/percent.js +21 -0
- package/src/unit-shapes/shapes/pin.js +24 -0
- package/src/unit-shapes/shapes/plane.js +21 -0
- package/src/unit-shapes/shapes/pulse.js +19 -0
- package/src/unit-shapes/shapes/pyramid.js +17 -0
- package/src/unit-shapes/shapes/question.js +18 -0
- package/src/unit-shapes/shapes/robot.js +24 -0
- package/src/unit-shapes/shapes/rocket.js +20 -0
- package/src/unit-shapes/shapes/shield.js +16 -0
- package/src/unit-shapes/shapes/spiral.js +32 -0
- package/src/unit-shapes/shapes/star.js +19 -0
- package/src/unit-shapes/shapes/sun.js +24 -0
- package/src/unit-shapes/shapes/target.js +18 -0
- package/src/unit-shapes/shapes/tree.js +20 -0
- package/src/unit-shapes/shapes/trophy.js +20 -0
- package/src/unit-shapes/shapes/wifi.js +26 -0
- package/src/unit-shapes/shapes/xmark.js +19 -0
- package/src/utils/Utils.js +37 -0
- package/types/apexcharts.d.ts +693 -64
- package/types/unit-shapes.d.ts +224 -0
- package/src/modules/license/LicenseManager.js +0 -521
- package/src/modules/license/Watermark.js +0 -129
package/README.md
CHANGED
|
@@ -89,7 +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
|
+
- [Unit / Pictogram / Beeswarm](samples/vanilla-js/unit/) · [Waffle](samples/vanilla-js/waffle/) (premium) · [shape kit](#shapes-for-the-unit-chart)
|
|
93
93
|
|
|
94
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/).
|
|
95
95
|
|
|
@@ -175,6 +175,24 @@ import 'apexcharts/features/toolbar' // zoom/pan toolbar
|
|
|
175
175
|
|
|
176
176
|
See the [tree-shaking guide](https://apexcharts.com/docs/tree-shaking/) for the complete list of entry points.
|
|
177
177
|
|
|
178
|
+
### Shapes for the unit chart
|
|
179
|
+
|
|
180
|
+
`apexcharts/unit-shapes` is a companion kit: 39 shapes a unit chart can pack its dots into, as silhouettes (heart, house, globe, tree), stroked glyphs (checkmark, arrow, heartbeat trace) and a composer that draws a number in its own dots. Every shape is a plain function of the marks and the plot rectangle, so it repacks at any dot count and any size, and importing one costs about 4 KB gzipped with the rest shaken out.
|
|
181
|
+
|
|
182
|
+
```js
|
|
183
|
+
import ApexCharts from 'apexcharts'
|
|
184
|
+
import { heart } from 'apexcharts/unit-shapes'
|
|
185
|
+
|
|
186
|
+
new ApexCharts(el, {
|
|
187
|
+
chart: { type: 'unit' },
|
|
188
|
+
series: [576, 168, 42, 34],
|
|
189
|
+
labels: ['Owned', 'Mortgaged', 'Renting', 'Other'],
|
|
190
|
+
plotOptions: { unit: { layout: 'custom', positions: heart } },
|
|
191
|
+
}).render()
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Shapes are composable (`outlined(heart)` traces it instead of filling it, `heart.with({ order: 'cols' })` changes where each series band lands), and `preview(heart, { series })` renders one to an SVG string with no chart and no DOM, for docs and build-time images. From a script tag, `dist/unit-shapes.js` exposes the same kit as `ApexUnitShapes` and registers every shape by name.
|
|
195
|
+
|
|
178
196
|
## Premium features & licensing
|
|
179
197
|
|
|
180
198
|
Most of ApexCharts is free and open source. A small set of advanced features are **premium** and require a license key:
|