vue-chrts 0.1.0-beta.2-internal-22 → 0.1.0-beta.3
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 +2 -0
- package/dist/components/AreaChart/AreaChart.js +133 -0
- package/dist/components/{Area → AreaChart}/types.d.ts +10 -9
- package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart.js +21 -26
- package/dist/components/AreaStackedChart/types.d.ts +58 -0
- package/dist/components/BarChart/BarChart.js +123 -0
- package/dist/components/BarChart/BarChart.vue.d.ts +14 -0
- package/dist/components/BarChart/types.d.ts +106 -0
- package/dist/components/DonutChart/DonutChart.js +58 -0
- package/dist/components/{Donut → DonutChart}/DonutChart.vue.d.ts +1 -1
- package/dist/components/DonutChart/types.d.ts +36 -0
- package/dist/components/{Donut/index.js → DonutChart/types.js} +0 -1
- package/dist/components/LineChart/LineChart.js +112 -0
- package/dist/components/{Line → LineChart}/LineChart.vue.d.ts +2 -15
- package/dist/components/LineChart/types.d.ts +90 -0
- package/dist/components/Tooltip.vue.d.ts +1 -3
- package/dist/index.d.ts +8 -6
- package/dist/index.js +13 -9
- package/dist/types.d.ts +39 -2
- package/dist/types.js +4 -2
- package/package.json +4 -5
- package/dist/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/browser.cjs +0 -1
- package/dist/_virtual/browser.js +0 -2
- package/dist/_virtual/striptags.cjs +0 -1
- package/dist/_virtual/striptags.js +0 -7
- package/dist/_virtual/striptags2.cjs +0 -1
- package/dist/_virtual/striptags2.js +0 -4
- package/dist/components/Area/AreaChart.cjs +0 -6
- package/dist/components/Area/AreaChart.js +0 -141
- package/dist/components/Area/AreaChart2.cjs +0 -1
- package/dist/components/Area/index.d.ts +0 -2
- package/dist/components/AreaStacked/AreaStackedChart.cjs +0 -1
- package/dist/components/AreaStacked/AreaStackedChart2.cjs +0 -1
- package/dist/components/AreaStacked/index.d.ts +0 -1
- package/dist/components/Bar/BarChart.cjs +0 -1
- package/dist/components/Bar/BarChart.js +0 -121
- package/dist/components/Bar/BarChart.vue.d.ts +0 -33
- package/dist/components/Bar/BarChart2.cjs +0 -1
- package/dist/components/Bar/index.d.ts +0 -1
- package/dist/components/Crosshair/Crosshair.vue.d.ts +0 -12
- package/dist/components/Crosshair/index.d.ts +0 -1
- package/dist/components/Donut/DonutChart.cjs +0 -5
- package/dist/components/Donut/DonutChart.js +0 -62
- package/dist/components/Donut/DonutChart2.cjs +0 -1
- package/dist/components/Donut/index.cjs +0 -1
- package/dist/components/Donut/index.d.ts +0 -17
- package/dist/components/Line/LineChart.cjs +0 -1
- package/dist/components/Line/LineChart.js +0 -97
- package/dist/components/Line/LineChart2.cjs +0 -1
- package/dist/components/Line/index.d.ts +0 -1
- package/dist/components/Tooltip.cjs +0 -1
- package/dist/components/Tooltip2.cjs +0 -1
- package/dist/index.cjs +0 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +0 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -279
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs +0 -1
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js +0 -86
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs +0 -1
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js +0 -8
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs +0 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -22
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +0 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs +0 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -123
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +0 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -44
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +0 -1
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -53
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +0 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -29
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +0 -15
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +0 -20
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +0 -31
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +0 -7
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +0 -31
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +0 -12
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +0 -26
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +0 -42
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +0 -11
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +0 -12
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js +0 -37
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js +0 -6
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js +0 -4
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js +0 -14
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +0 -18
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +0 -4
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +0 -70
- package/dist/node_modules/@unovis/ts/components/area/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/area/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/area/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/area/index.js +0 -52
- package/dist/node_modules/@unovis/ts/components/area/style.cjs +0 -35
- package/dist/node_modules/@unovis/ts/components/area/style.js +0 -41
- package/dist/node_modules/@unovis/ts/components/axis/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/axis/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/index.js +0 -287
- package/dist/node_modules/@unovis/ts/components/axis/style.cjs +0 -101
- package/dist/node_modules/@unovis/ts/components/axis/style.js +0 -114
- package/dist/node_modules/@unovis/ts/components/axis/types.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/types.js +0 -7
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js +0 -18
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js +0 -36
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js +0 -48
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs +0 -63
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js +0 -73
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js +0 -10
- package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/config.js +0 -5
- package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/index.js +0 -119
- package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs +0 -22
- package/dist/node_modules/@unovis/ts/components/crosshair/style.js +0 -29
- package/dist/node_modules/@unovis/ts/components/donut/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/config.js +0 -8
- package/dist/node_modules/@unovis/ts/components/donut/constants.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/constants.js +0 -11
- package/dist/node_modules/@unovis/ts/components/donut/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/index.js +0 -57
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js +0 -37
- package/dist/node_modules/@unovis/ts/components/donut/style.cjs +0 -58
- package/dist/node_modules/@unovis/ts/components/donut/style.js +0 -68
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js +0 -121
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs +0 -35
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js +0 -43
- package/dist/node_modules/@unovis/ts/components/line/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/line/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/line/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/line/index.js +0 -86
- package/dist/node_modules/@unovis/ts/components/line/style.cjs +0 -35
- package/dist/node_modules/@unovis/ts/components/line/style.js +0 -45
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js +0 -111
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs +0 -34
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js +0 -42
- package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/config.js +0 -17
- package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/index.js +0 -166
- package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs +0 -61
- package/dist/node_modules/@unovis/ts/components/tooltip/style.js +0 -71
- package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/config.js +0 -5
- package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/index.js +0 -71
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.js +0 -6
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs +0 -3
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.js +0 -185
- package/dist/node_modules/@unovis/ts/core/component/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/component/config.js +0 -8
- package/dist/node_modules/@unovis/ts/core/component/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/component/index.js +0 -68
- package/dist/node_modules/@unovis/ts/core/container/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/container/config.js +0 -24
- package/dist/node_modules/@unovis/ts/core/container/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/container/index.js +0 -73
- package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/config.js +0 -8
- package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/index.js +0 -53
- package/dist/node_modules/@unovis/ts/data-models/core.cjs +0 -1
- package/dist/node_modules/@unovis/ts/data-models/core.js +0 -14
- package/dist/node_modules/@unovis/ts/data-models/series.cjs +0 -1
- package/dist/node_modules/@unovis/ts/data-models/series.js +0 -16
- package/dist/node_modules/@unovis/ts/styles/colors.cjs +0 -1
- package/dist/node_modules/@unovis/ts/styles/colors.js +0 -18
- package/dist/node_modules/@unovis/ts/styles/index.cjs +0 -38
- package/dist/node_modules/@unovis/ts/styles/index.js +0 -63
- package/dist/node_modules/@unovis/ts/styles/patterns.cjs +0 -15
- package/dist/node_modules/@unovis/ts/styles/patterns.js +0 -45
- package/dist/node_modules/@unovis/ts/types/component.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/component.js +0 -12
- package/dist/node_modules/@unovis/ts/types/curve.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/curve.js +0 -43
- package/dist/node_modules/@unovis/ts/types/direction.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/direction.js +0 -7
- package/dist/node_modules/@unovis/ts/types/position.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/position.js +0 -22
- package/dist/node_modules/@unovis/ts/types/scale.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/scale.js +0 -40
- package/dist/node_modules/@unovis/ts/types/svg.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/svg.js +0 -15
- package/dist/node_modules/@unovis/ts/types/symbol.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/symbol.js +0 -24
- package/dist/node_modules/@unovis/ts/types/text.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/text.js +0 -22
- package/dist/node_modules/@unovis/ts/utils/color.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/color.js +0 -8
- package/dist/node_modules/@unovis/ts/utils/d3.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/d3.js +0 -12
- package/dist/node_modules/@unovis/ts/utils/data.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/data.js +0 -169
- package/dist/node_modules/@unovis/ts/utils/misc.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/misc.js +0 -28
- package/dist/node_modules/@unovis/ts/utils/path.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/path.js +0 -9
- package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/resize-observer.js +0 -6
- package/dist/node_modules/@unovis/ts/utils/text.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/text.js +0 -178
- package/dist/node_modules/@unovis/vue/components/area/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/area/index.js +0 -48
- package/dist/node_modules/@unovis/vue/components/axis/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/axis/index.js +0 -69
- package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/crosshair/index.js +0 -33
- package/dist/node_modules/@unovis/vue/components/donut/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/donut/index.js +0 -54
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js +0 -54
- package/dist/node_modules/@unovis/vue/components/line/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/line/index.js +0 -50
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js +0 -54
- package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/tooltip/index.js +0 -40
- package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/containers/single-container/index.js +0 -66
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.js +0 -102
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js +0 -43
- package/dist/node_modules/@unovis/vue/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/index.js +0 -10
- package/dist/node_modules/@unovis/vue/utils/context.cjs +0 -1
- package/dist/node_modules/@unovis/vue/utils/context.js +0 -8
- package/dist/node_modules/@unovis/vue/utils/props.cjs +0 -1
- package/dist/node_modules/@unovis/vue/utils/props.js +0 -18
- package/dist/node_modules/d3-array/src/ascending.cjs +0 -1
- package/dist/node_modules/d3-array/src/ascending.js +0 -6
- package/dist/node_modules/d3-array/src/bisect.cjs +0 -1
- package/dist/node_modules/d3-array/src/bisect.js +0 -9
- package/dist/node_modules/d3-array/src/bisector.cjs +0 -1
- package/dist/node_modules/d3-array/src/bisector.js +0 -37
- package/dist/node_modules/d3-array/src/descending.cjs +0 -1
- package/dist/node_modules/d3-array/src/descending.js +0 -6
- package/dist/node_modules/d3-array/src/extent.cjs +0 -1
- package/dist/node_modules/d3-array/src/extent.js +0 -9
- package/dist/node_modules/d3-array/src/max.cjs +0 -1
- package/dist/node_modules/d3-array/src/max.js +0 -15
- package/dist/node_modules/d3-array/src/mean.cjs +0 -1
- package/dist/node_modules/d3-array/src/mean.js +0 -15
- package/dist/node_modules/d3-array/src/merge.cjs +0 -1
- package/dist/node_modules/d3-array/src/merge.js +0 -10
- package/dist/node_modules/d3-array/src/min.cjs +0 -1
- package/dist/node_modules/d3-array/src/min.js +0 -15
- package/dist/node_modules/d3-array/src/number.cjs +0 -1
- package/dist/node_modules/d3-array/src/number.js +0 -6
- package/dist/node_modules/d3-array/src/quantile.cjs +0 -1
- package/dist/node_modules/d3-array/src/quantile.js +0 -12
- package/dist/node_modules/d3-array/src/range.cjs +0 -1
- package/dist/node_modules/d3-array/src/range.js +0 -9
- package/dist/node_modules/d3-array/src/sum.cjs +0 -1
- package/dist/node_modules/d3-array/src/sum.js +0 -15
- package/dist/node_modules/d3-array/src/ticks.cjs +0 -1
- package/dist/node_modules/d3-array/src/ticks.js +0 -32
- package/dist/node_modules/d3-axis/src/axis.cjs +0 -1
- package/dist/node_modules/d3-axis/src/axis.js +0 -72
- package/dist/node_modules/d3-axis/src/identity.cjs +0 -1
- package/dist/node_modules/d3-axis/src/identity.js +0 -6
- package/dist/node_modules/d3-color/src/color.cjs +0 -1
- package/dist/node_modules/d3-color/src/color.js +0 -305
- package/dist/node_modules/d3-color/src/define.cjs +0 -1
- package/dist/node_modules/d3-color/src/define.js +0 -12
- package/dist/node_modules/d3-dispatch/src/dispatch.cjs +0 -1
- package/dist/node_modules/d3-dispatch/src/dispatch.js +0 -64
- package/dist/node_modules/d3-ease/src/cubic.cjs +0 -1
- package/dist/node_modules/d3-ease/src/cubic.js +0 -6
- package/dist/node_modules/d3-ease/src/linear.cjs +0 -1
- package/dist/node_modules/d3-ease/src/linear.js +0 -4
- package/dist/node_modules/d3-format/src/defaultLocale.cjs +0 -1
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -15
- package/dist/node_modules/d3-format/src/exponent.cjs +0 -1
- package/dist/node_modules/d3-format/src/exponent.js +0 -7
- package/dist/node_modules/d3-format/src/formatDecimal.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -15
- package/dist/node_modules/d3-format/src/formatGroup.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -10
- package/dist/node_modules/d3-format/src/formatNumerals.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
- package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -12
- package/dist/node_modules/d3-format/src/formatRounded.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
- package/dist/node_modules/d3-format/src/formatSpecifier.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -28
- package/dist/node_modules/d3-format/src/formatTrim.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -19
- package/dist/node_modules/d3-format/src/formatTypes.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
- package/dist/node_modules/d3-format/src/identity.cjs +0 -1
- package/dist/node_modules/d3-format/src/identity.js +0 -6
- package/dist/node_modules/d3-format/src/locale.cjs +0 -1
- package/dist/node_modules/d3-format/src/locale.js +0 -68
- package/dist/node_modules/d3-format/src/precisionFixed.cjs +0 -1
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
- package/dist/node_modules/d3-format/src/precisionPrefix.cjs +0 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
- package/dist/node_modules/d3-format/src/precisionRound.cjs +0 -1
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
- package/dist/node_modules/d3-interpolate/src/array.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/array.js +0 -13
- package/dist/node_modules/d3-interpolate/src/color.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/color.js +0 -24
- package/dist/node_modules/d3-interpolate/src/constant.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
- package/dist/node_modules/d3-interpolate/src/date.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/date.js +0 -9
- package/dist/node_modules/d3-interpolate/src/number.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/number.js +0 -8
- package/dist/node_modules/d3-interpolate/src/numberArray.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -15
- package/dist/node_modules/d3-interpolate/src/object.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/object.js +0 -14
- package/dist/node_modules/d3-interpolate/src/piecewise.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -15
- package/dist/node_modules/d3-interpolate/src/round.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/round.js +0 -8
- package/dist/node_modules/d3-interpolate/src/string.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/string.js +0 -24
- package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +0 -23
- package/dist/node_modules/d3-interpolate/src/transform/index.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/index.js +0 -37
- package/dist/node_modules/d3-interpolate/src/transform/parse.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +0 -13
- package/dist/node_modules/d3-interpolate/src/value.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/value.js +0 -16
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs +0 -2
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js +0 -301
- package/dist/node_modules/d3-path/src/path.cjs +0 -1
- package/dist/node_modules/d3-path/src/path.js +0 -64
- package/dist/node_modules/d3-scale/src/band.cjs +0 -1
- package/dist/node_modules/d3-scale/src/band.js +0 -51
- package/dist/node_modules/d3-scale/src/constant.cjs +0 -1
- package/dist/node_modules/d3-scale/src/constant.js +0 -8
- package/dist/node_modules/d3-scale/src/continuous.cjs +0 -1
- package/dist/node_modules/d3-scale/src/continuous.js +0 -75
- package/dist/node_modules/d3-scale/src/diverging.cjs +0 -1
- package/dist/node_modules/d3-scale/src/diverging.js +0 -40
- package/dist/node_modules/d3-scale/src/identity.cjs +0 -1
- package/dist/node_modules/d3-scale/src/identity.js +0 -18
- package/dist/node_modules/d3-scale/src/init.cjs +0 -1
- package/dist/node_modules/d3-scale/src/init.js +0 -32
- package/dist/node_modules/d3-scale/src/linear.cjs +0 -1
- package/dist/node_modules/d3-scale/src/linear.js +0 -39
- package/dist/node_modules/d3-scale/src/log.cjs +0 -1
- package/dist/node_modules/d3-scale/src/log.js +0 -86
- package/dist/node_modules/d3-scale/src/nice.cjs +0 -1
- package/dist/node_modules/d3-scale/src/nice.js +0 -8
- package/dist/node_modules/d3-scale/src/number.cjs +0 -1
- package/dist/node_modules/d3-scale/src/number.js +0 -6
- package/dist/node_modules/d3-scale/src/ordinal.cjs +0 -1
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -31
- package/dist/node_modules/d3-scale/src/pow.cjs +0 -1
- package/dist/node_modules/d3-scale/src/pow.js +0 -37
- package/dist/node_modules/d3-scale/src/quantile.cjs +0 -1
- package/dist/node_modules/d3-scale/src/quantile.js +0 -38
- package/dist/node_modules/d3-scale/src/quantize.cjs +0 -1
- package/dist/node_modules/d3-scale/src/quantize.js +0 -31
- package/dist/node_modules/d3-scale/src/sequential.cjs +0 -1
- package/dist/node_modules/d3-scale/src/sequential.js +0 -42
- package/dist/node_modules/d3-scale/src/symlog.cjs +0 -1
- package/dist/node_modules/d3-scale/src/symlog.js +0 -29
- package/dist/node_modules/d3-scale/src/threshold.cjs +0 -1
- package/dist/node_modules/d3-scale/src/threshold.js +0 -23
- package/dist/node_modules/d3-scale/src/tickFormat.cjs +0 -1
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -32
- package/dist/node_modules/d3-scale/src/time.cjs +0 -1
- package/dist/node_modules/d3-scale/src/time.js +0 -46
- package/dist/node_modules/d3-scale/src/utcTime.cjs +0 -1
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
- package/dist/node_modules/d3-selection/src/array.cjs +0 -1
- package/dist/node_modules/d3-selection/src/array.js +0 -6
- package/dist/node_modules/d3-selection/src/constant.cjs +0 -1
- package/dist/node_modules/d3-selection/src/constant.js +0 -8
- package/dist/node_modules/d3-selection/src/creator.cjs +0 -1
- package/dist/node_modules/d3-selection/src/creator.js +0 -20
- package/dist/node_modules/d3-selection/src/matcher.cjs +0 -1
- package/dist/node_modules/d3-selection/src/matcher.js +0 -14
- package/dist/node_modules/d3-selection/src/namespace.cjs +0 -1
- package/dist/node_modules/d3-selection/src/namespace.js +0 -8
- package/dist/node_modules/d3-selection/src/namespaces.cjs +0 -1
- package/dist/node_modules/d3-selection/src/namespaces.js +0 -12
- package/dist/node_modules/d3-selection/src/pointer.cjs +0 -1
- package/dist/node_modules/d3-selection/src/pointer.js +0 -18
- package/dist/node_modules/d3-selection/src/select.cjs +0 -1
- package/dist/node_modules/d3-selection/src/select.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/append.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/append.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/attr.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/attr.js +0 -44
- package/dist/node_modules/d3-selection/src/selection/call.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/call.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/classed.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/classed.js +0 -54
- package/dist/node_modules/d3-selection/src/selection/clone.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/clone.js +0 -14
- package/dist/node_modules/d3-selection/src/selection/data.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/data.js +0 -42
- package/dist/node_modules/d3-selection/src/selection/datum.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/datum.js +0 -6
- package/dist/node_modules/d3-selection/src/selection/dispatch.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +0 -21
- package/dist/node_modules/d3-selection/src/selection/each.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/each.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/empty.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/empty.js +0 -6
- package/dist/node_modules/d3-selection/src/selection/enter.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/enter.js +0 -27
- package/dist/node_modules/d3-selection/src/selection/exit.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/exit.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/filter.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/filter.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/html.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/html.js +0 -20
- package/dist/node_modules/d3-selection/src/selection/index.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/index.js +0 -87
- package/dist/node_modules/d3-selection/src/selection/insert.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/insert.js +0 -14
- package/dist/node_modules/d3-selection/src/selection/iterator.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/iterator.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/join.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/join.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/lower.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/lower.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/merge.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/merge.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/node.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/node.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/nodes.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/nodes.js +0 -6
- package/dist/node_modules/d3-selection/src/selection/on.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/on.js +0 -52
- package/dist/node_modules/d3-selection/src/selection/order.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/order.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/property.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/property.js +0 -22
- package/dist/node_modules/d3-selection/src/selection/raise.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/raise.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/remove.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/remove.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/select.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/select.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/selectAll.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +0 -18
- package/dist/node_modules/d3-selection/src/selection/selectChild.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +0 -16
- package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +0 -16
- package/dist/node_modules/d3-selection/src/selection/size.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/size.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/sort.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/sort.js +0 -19
- package/dist/node_modules/d3-selection/src/selection/sparse.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/sparse.js +0 -6
- package/dist/node_modules/d3-selection/src/selection/style.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/style.js +0 -27
- package/dist/node_modules/d3-selection/src/selection/text.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/text.js +0 -20
- package/dist/node_modules/d3-selection/src/selector.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selector.js +0 -10
- package/dist/node_modules/d3-selection/src/selectorAll.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selectorAll.js +0 -11
- package/dist/node_modules/d3-selection/src/sourceEvent.cjs +0 -1
- package/dist/node_modules/d3-selection/src/sourceEvent.js +0 -8
- package/dist/node_modules/d3-selection/src/window.cjs +0 -1
- package/dist/node_modules/d3-selection/src/window.js +0 -6
- package/dist/node_modules/d3-shape/src/arc.cjs +0 -1
- package/dist/node_modules/d3-shape/src/arc.js +0 -85
- package/dist/node_modules/d3-shape/src/area.cjs +0 -1
- package/dist/node_modules/d3-shape/src/area.js +0 -56
- package/dist/node_modules/d3-shape/src/array.cjs +0 -1
- package/dist/node_modules/d3-shape/src/array.js +0 -6
- package/dist/node_modules/d3-shape/src/constant.cjs +0 -1
- package/dist/node_modules/d3-shape/src/constant.js +0 -8
- package/dist/node_modules/d3-shape/src/curve/basis.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -60
- package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -51
- package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -46
- package/dist/node_modules/d3-shape/src/curve/bundle.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/bundle.js +0 -33
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +0 -65
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -57
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -50
- package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +0 -72
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -61
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -54
- package/dist/node_modules/d3-shape/src/curve/linear.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -36
- package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
- package/dist/node_modules/d3-shape/src/curve/monotone.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -93
- package/dist/node_modules/d3-shape/src/curve/natural.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -41
- package/dist/node_modules/d3-shape/src/curve/step.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -51
- package/dist/node_modules/d3-shape/src/descending.cjs +0 -1
- package/dist/node_modules/d3-shape/src/descending.js +0 -6
- package/dist/node_modules/d3-shape/src/identity.cjs +0 -1
- package/dist/node_modules/d3-shape/src/identity.js +0 -6
- package/dist/node_modules/d3-shape/src/line.cjs +0 -1
- package/dist/node_modules/d3-shape/src/line.js +0 -29
- package/dist/node_modules/d3-shape/src/math.cjs +0 -1
- package/dist/node_modules/d3-shape/src/math.js +0 -22
- package/dist/node_modules/d3-shape/src/noop.cjs +0 -1
- package/dist/node_modules/d3-shape/src/noop.js +0 -5
- package/dist/node_modules/d3-shape/src/path.cjs +0 -1
- package/dist/node_modules/d3-shape/src/path.js +0 -18
- package/dist/node_modules/d3-shape/src/pie.cjs +0 -1
- package/dist/node_modules/d3-shape/src/pie.js +0 -43
- package/dist/node_modules/d3-shape/src/point.cjs +0 -1
- package/dist/node_modules/d3-shape/src/point.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/circle.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/cross.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/diamond.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/square.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/star.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -15
- package/dist/node_modules/d3-shape/src/symbol/triangle.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/wye.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol.js +0 -21
- package/dist/node_modules/d3-time/src/day.cjs +0 -1
- package/dist/node_modules/d3-time/src/day.js +0 -26
- package/dist/node_modules/d3-time/src/duration.cjs +0 -1
- package/dist/node_modules/d3-time/src/duration.js +0 -10
- package/dist/node_modules/d3-time/src/hour.cjs +0 -1
- package/dist/node_modules/d3-time/src/hour.js +0 -18
- package/dist/node_modules/d3-time/src/interval.cjs +0 -1
- package/dist/node_modules/d3-time/src/interval.js +0 -31
- package/dist/node_modules/d3-time/src/millisecond.cjs +0 -1
- package/dist/node_modules/d3-time/src/millisecond.js +0 -14
- package/dist/node_modules/d3-time/src/minute.cjs +0 -1
- package/dist/node_modules/d3-time/src/minute.js +0 -18
- package/dist/node_modules/d3-time/src/month.cjs +0 -1
- package/dist/node_modules/d3-time/src/month.js +0 -17
- package/dist/node_modules/d3-time/src/second.cjs +0 -1
- package/dist/node_modules/d3-time/src/second.js +0 -11
- package/dist/node_modules/d3-time/src/ticks.cjs +0 -1
- package/dist/node_modules/d3-time/src/ticks.js +0 -54
- package/dist/node_modules/d3-time/src/week.cjs +0 -1
- package/dist/node_modules/d3-time/src/week.js +0 -48
- package/dist/node_modules/d3-time/src/year.cjs +0 -1
- package/dist/node_modules/d3-time/src/year.js +0 -27
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +0 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -20
- package/dist/node_modules/d3-time-format/src/locale.cjs +0 -1
- package/dist/node_modules/d3-time-format/src/locale.js +0 -478
- package/dist/node_modules/d3-timer/src/timeout.cjs +0 -1
- package/dist/node_modules/d3-timer/src/timeout.js +0 -10
- package/dist/node_modules/d3-timer/src/timer.cjs +0 -1
- package/dist/node_modules/d3-timer/src/timer.js +0 -62
- package/dist/node_modules/d3-transition/src/interrupt.cjs +0 -1
- package/dist/node_modules/d3-transition/src/interrupt.js +0 -18
- package/dist/node_modules/d3-transition/src/selection/index.cjs +0 -1
- package/dist/node_modules/d3-transition/src/selection/index.js +0 -5
- package/dist/node_modules/d3-transition/src/selection/interrupt.cjs +0 -1
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +0 -9
- package/dist/node_modules/d3-transition/src/selection/transition.cjs +0 -1
- package/dist/node_modules/d3-transition/src/selection/transition.js +0 -28
- package/dist/node_modules/d3-transition/src/transition/attr.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/attr.js +0 -49
- package/dist/node_modules/d3-transition/src/transition/attrTween.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +0 -38
- package/dist/node_modules/d3-transition/src/transition/delay.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/delay.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/duration.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/duration.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/ease.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/ease.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +0 -15
- package/dist/node_modules/d3-transition/src/transition/end.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/end.js +0 -16
- package/dist/node_modules/d3-transition/src/transition/filter.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/filter.js +0 -12
- package/dist/node_modules/d3-transition/src/transition/index.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/index.js +0 -65
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +0 -11
- package/dist/node_modules/d3-transition/src/transition/merge.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/merge.js +0 -13
- package/dist/node_modules/d3-transition/src/transition/on.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/on.js +0 -21
- package/dist/node_modules/d3-transition/src/transition/remove.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/remove.js +0 -13
- package/dist/node_modules/d3-transition/src/transition/schedule.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/schedule.js +0 -85
- package/dist/node_modules/d3-transition/src/transition/select.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/select.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/selectAll.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/selection.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/selection.js +0 -8
- package/dist/node_modules/d3-transition/src/transition/style.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/style.js +0 -45
- package/dist/node_modules/d3-transition/src/transition/styleTween.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +0 -23
- package/dist/node_modules/d3-transition/src/transition/text.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/text.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/textTween.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/textTween.js +0 -23
- package/dist/node_modules/d3-transition/src/transition/transition.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/transition.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/tween.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/tween.js +0 -56
- package/dist/node_modules/internmap/src/index.cjs +0 -1
- package/dist/node_modules/internmap/src/index.js +0 -35
- package/dist/node_modules/parse-unit/index.cjs +0 -1
- package/dist/node_modules/parse-unit/index.js +0 -11
- package/dist/node_modules/striptags/src/striptags.cjs +0 -2
- package/dist/node_modules/striptags/src/striptags.js +0 -118
- package/dist/node_modules/stylis/src/Enum.cjs +0 -1
- package/dist/node_modules/stylis/src/Enum.js +0 -12
- package/dist/node_modules/stylis/src/Middleware.cjs +0 -1
- package/dist/node_modules/stylis/src/Middleware.js +0 -18
- package/dist/node_modules/stylis/src/Parser.cjs +0 -1
- package/dist/node_modules/stylis/src/Parser.js +0 -131
- package/dist/node_modules/stylis/src/Serializer.cjs +0 -1
- package/dist/node_modules/stylis/src/Serializer.js +0 -27
- package/dist/node_modules/stylis/src/Tokenizer.cjs +0 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +0 -141
- package/dist/node_modules/stylis/src/Utility.cjs +0 -1
- package/dist/node_modules/stylis/src/Utility.js +0 -50
- package/dist/node_modules/throttle-debounce/esm/index.cjs +0 -1
- package/dist/node_modules/throttle-debounce/esm/index.js +0 -28
- package/dist/node_modules/to-px/browser.cjs +0 -1
- package/dist/node_modules/to-px/browser.js +0 -63
- package/dist/types.cjs +0 -1
- package/dist/utils.cjs +0 -1
- package/dist/vite.svg +0 -1
- /package/dist/components/{Area → AreaChart}/AreaChart.vue.d.ts +0 -0
- /package/dist/components/{Area → AreaChart}/AreaChart2.js +0 -0
- /package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart.vue.d.ts +0 -0
- /package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart2.js +0 -0
- /package/dist/components/{Bar → BarChart}/BarChart2.js +0 -0
- /package/dist/components/{Donut → DonutChart}/DonutChart2.js +0 -0
- /package/dist/components/{Line → LineChart}/LineChart2.js +0 -0
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A Vue 3 charts package inspired by [Tremor](https://tremor.so/), built on top of [Unovis](https://unovis.dev). Vue-Chrts provides beautiful, responsive charts for your Vue applications with minimal setup.
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+
|
|
5
7
|
[Check the docs and examples](https://nuxtcharts.com/docs)
|
|
6
8
|
|
|
7
9
|
## Features
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { defineComponent as D, computed as c, createApp as N, createElementBlock as d, openBlock as l, normalizeClass as v, createVNode as s, createCommentVNode as g, unref as t, withCtx as $, createBlock as k, Fragment as L, renderList as x, mergeProps as P } from "vue";
|
|
2
|
+
import { Position as T, CurveType as b } from "@unovis/ts";
|
|
3
|
+
import { VisXYContainer as j, VisTooltip as F, VisArea as A, VisLine as w, VisAxis as B, VisCrosshair as z, VisBulletLegend as I } from "@unovis/vue";
|
|
4
|
+
import M from "../Tooltip.js";
|
|
5
|
+
import { LegendPosition as O } from "../../types.js";
|
|
6
|
+
import { getDistributedIndices as X } from "../../utils.js";
|
|
7
|
+
const Q = /* @__PURE__ */ D({
|
|
8
|
+
__name: "AreaChart",
|
|
9
|
+
props: {
|
|
10
|
+
data: {},
|
|
11
|
+
height: {},
|
|
12
|
+
xLabel: {},
|
|
13
|
+
yLabel: {},
|
|
14
|
+
categories: {},
|
|
15
|
+
xFormatter: {},
|
|
16
|
+
yFormatter: {},
|
|
17
|
+
curveType: {},
|
|
18
|
+
xNumTicks: { default: (a) => a.data.length > 24 ? 24 / 4 : a.data.length - 1 },
|
|
19
|
+
yNumTicks: { default: (a) => a.data.length > 24 ? 24 / 4 : a.data.length - 1 },
|
|
20
|
+
hideLegend: { type: Boolean },
|
|
21
|
+
hideTooltip: { type: Boolean },
|
|
22
|
+
xGridLine: { type: Boolean },
|
|
23
|
+
xDomainLine: { type: Boolean },
|
|
24
|
+
yGridLine: { type: Boolean },
|
|
25
|
+
yDomainLine: { type: Boolean },
|
|
26
|
+
legendPosition: {}
|
|
27
|
+
},
|
|
28
|
+
setup(a) {
|
|
29
|
+
const n = a, u = Object.values(n.categories).map((e) => e.color), V = c(() => (e) => {
|
|
30
|
+
if (typeof window > "u" || typeof document > "u")
|
|
31
|
+
return "";
|
|
32
|
+
try {
|
|
33
|
+
const o = N(M, {
|
|
34
|
+
data: e,
|
|
35
|
+
categories: n.categories
|
|
36
|
+
}), i = document.createElement("div");
|
|
37
|
+
o.mount(i);
|
|
38
|
+
const r = i.innerHTML;
|
|
39
|
+
return o.unmount(), r;
|
|
40
|
+
} catch {
|
|
41
|
+
return "";
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
function C(e) {
|
|
45
|
+
var o;
|
|
46
|
+
return {
|
|
47
|
+
y: (i) => Number(i[e]),
|
|
48
|
+
color: ((o = n.categories[e]) == null ? void 0 : o.color) ?? "#3b82f6"
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const G = u.map(
|
|
52
|
+
(e, o) => `
|
|
53
|
+
<linearGradient id="gradient${o}-${e}" gradientTransform="rotate(90)">
|
|
54
|
+
<stop offset="0%" stop-color="${e}" stop-opacity="1" />
|
|
55
|
+
<stop offset="100%" stop-color="${e}" stop-opacity="0" />
|
|
56
|
+
</linearGradient>
|
|
57
|
+
`
|
|
58
|
+
).join(""), h = c(
|
|
59
|
+
() => n.legendPosition === O.Top
|
|
60
|
+
), m = c(() => X(n.data.length, n.xNumTicks)), p = c(() => {
|
|
61
|
+
var e;
|
|
62
|
+
return !((e = n.data) != null && e.length) || !m || m.value.length === 0 ? [] : m.value.map((o) => n.data[o]);
|
|
63
|
+
});
|
|
64
|
+
return (e, o) => (l(), d("div", {
|
|
65
|
+
class: v(["flex flex-col space-y-4", { "flex-col-reverse": h.value }])
|
|
66
|
+
}, [
|
|
67
|
+
s(t(j), {
|
|
68
|
+
data: p.value,
|
|
69
|
+
height: e.height,
|
|
70
|
+
"svg-defs": t(G)
|
|
71
|
+
}, {
|
|
72
|
+
default: $(() => [
|
|
73
|
+
e.hideTooltip ? g("", !0) : (l(), k(t(F), {
|
|
74
|
+
key: 0,
|
|
75
|
+
"horizontal-placement": t(T).Right,
|
|
76
|
+
"vertical-placement": t(T).Top
|
|
77
|
+
}, null, 8, ["horizontal-placement", "vertical-placement"])),
|
|
78
|
+
(l(!0), d(L, null, x(Object.keys(n.categories), (i, r) => (l(), d(L, { key: r }, [
|
|
79
|
+
s(t(A), P({
|
|
80
|
+
x: (f, y) => y,
|
|
81
|
+
ref_for: !0
|
|
82
|
+
}, C(i), {
|
|
83
|
+
color: `url(#gradient${r}-${t(u)[r]})`,
|
|
84
|
+
opacity: 0.5,
|
|
85
|
+
"curve-type": e.curveType ?? t(b).MonotoneX
|
|
86
|
+
}), null, 16, ["x", "color", "curve-type"]),
|
|
87
|
+
s(t(w), {
|
|
88
|
+
x: (f, y) => y,
|
|
89
|
+
y: (f) => f[i],
|
|
90
|
+
color: t(u)[r],
|
|
91
|
+
"curve-type": e.curveType ?? t(b).MonotoneX
|
|
92
|
+
}, null, 8, ["x", "y", "color", "curve-type"])
|
|
93
|
+
], 64))), 128)),
|
|
94
|
+
s(t(B), {
|
|
95
|
+
type: "x",
|
|
96
|
+
"num-ticks": p.value.length,
|
|
97
|
+
"tick-format": (i, r) => e.xFormatter(p.value[i], r),
|
|
98
|
+
label: e.xLabel,
|
|
99
|
+
"grid-line": e.xGridLine,
|
|
100
|
+
"domain-line": e.xDomainLine,
|
|
101
|
+
"tick-line": !!e.xGridLine
|
|
102
|
+
}, null, 8, ["num-ticks", "tick-format", "label", "grid-line", "domain-line", "tick-line"]),
|
|
103
|
+
s(t(B), {
|
|
104
|
+
type: "y",
|
|
105
|
+
"num-ticks": e.yNumTicks,
|
|
106
|
+
"tick-format": e.yFormatter,
|
|
107
|
+
label: e.yLabel,
|
|
108
|
+
"grid-line": e.yGridLine,
|
|
109
|
+
"domain-line": e.yDomainLine,
|
|
110
|
+
"tick-line": !!e.yGridLine
|
|
111
|
+
}, null, 8, ["num-ticks", "tick-format", "label", "grid-line", "domain-line", "tick-line"]),
|
|
112
|
+
e.hideTooltip ? g("", !0) : (l(), k(t(z), {
|
|
113
|
+
key: 1,
|
|
114
|
+
color: "#666",
|
|
115
|
+
template: V.value
|
|
116
|
+
}, null, 8, ["template"]))
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, ["data", "height", "svg-defs"]),
|
|
120
|
+
e.hideLegend ? g("", !0) : (l(), d("div", {
|
|
121
|
+
key: 0,
|
|
122
|
+
class: v(["flex items center justify-end", { "pb-4": h.value }])
|
|
123
|
+
}, [
|
|
124
|
+
s(t(I), {
|
|
125
|
+
items: Object.values(e.categories)
|
|
126
|
+
}, null, 8, ["items"])
|
|
127
|
+
], 2))
|
|
128
|
+
], 2));
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
export {
|
|
132
|
+
Q as default
|
|
133
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LegendPosition } from '../../types';
|
|
2
2
|
import { BulletLegendItemInterface, CurveType } from '@unovis/ts';
|
|
3
3
|
export interface AreaChartProps<T> {
|
|
4
4
|
/**
|
|
@@ -27,9 +27,10 @@ export interface AreaChartProps<T> {
|
|
|
27
27
|
/**
|
|
28
28
|
* A function that formats the x-axis tick labels.
|
|
29
29
|
* @param item The x-axis value to be formatted.
|
|
30
|
+
* @param idx The index of the data point.
|
|
30
31
|
* @returns The formatted x-axis label.
|
|
31
32
|
*/
|
|
32
|
-
xFormatter: (item: T) => string | number;
|
|
33
|
+
xFormatter: (item: T, idx: number) => string | number;
|
|
33
34
|
/**
|
|
34
35
|
* An optional function that formats the y-axis tick labels.
|
|
35
36
|
* @param i The value to be formatted.
|
|
@@ -61,22 +62,22 @@ export interface AreaChartProps<T> {
|
|
|
61
62
|
/**
|
|
62
63
|
* If `true`, displays grid lines along the x-axis.
|
|
63
64
|
*/
|
|
64
|
-
|
|
65
|
+
xGridLine?: boolean;
|
|
65
66
|
/**
|
|
66
67
|
* If `true`, displays a domain line (axis line) along the x-axis.
|
|
67
68
|
*/
|
|
68
|
-
|
|
69
|
+
xDomainLine?: boolean;
|
|
69
70
|
/**
|
|
70
71
|
* If `true`, displays grid lines along the y-axis.
|
|
71
72
|
*/
|
|
72
|
-
|
|
73
|
+
yGridLine?: boolean;
|
|
73
74
|
/**
|
|
74
75
|
* If `true`, displays a domain line (axis line) along the y-axis.
|
|
75
76
|
*/
|
|
76
|
-
|
|
77
|
+
yDomainLine?: boolean;
|
|
77
78
|
/**
|
|
78
|
-
* Optional position for
|
|
79
|
-
* See `
|
|
79
|
+
* Optional position for the legend, if applicable.
|
|
80
|
+
* See `LegendPosition` for available options.
|
|
80
81
|
*/
|
|
81
|
-
|
|
82
|
+
legendPosition?: LegendPosition;
|
|
82
83
|
}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { defineComponent as d, computed as f, createApp as h, createElementBlock as y, openBlock as a, createVNode as o, createElementVNode as g, unref as t, withCtx as v, createBlock as _, createCommentVNode as
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { CurveType as N } from "../../node_modules/@unovis/ts/types/curve.js";
|
|
7
|
-
import c from "../../node_modules/@unovis/vue/components/axis/index.js";
|
|
8
|
-
import x from "../../node_modules/@unovis/vue/components/crosshair/index.js";
|
|
9
|
-
import B from "../../node_modules/@unovis/vue/html-components/bullet-legend/index.js";
|
|
10
|
-
const j = { class: "flex flex-col space-y-4" }, w = { class: "flex items center justify-end" }, M = /* @__PURE__ */ d({
|
|
1
|
+
import { defineComponent as d, computed as f, createApp as h, createElementBlock as y, openBlock as a, createVNode as o, createElementVNode as g, unref as t, withCtx as v, createBlock as _, createCommentVNode as V } from "vue";
|
|
2
|
+
import { VisXYContainer as k, VisArea as C, VisAxis as c, VisCrosshair as T, VisBulletLegend as b } from "@unovis/vue";
|
|
3
|
+
import { CurveType as x } from "@unovis/ts";
|
|
4
|
+
import B from "../Tooltip.js";
|
|
5
|
+
const N = { class: "flex flex-col space-y-4" }, A = { class: "flex items center justify-end" }, O = /* @__PURE__ */ d({
|
|
11
6
|
__name: "AreaStackedChart",
|
|
12
7
|
props: {
|
|
13
8
|
data: {},
|
|
@@ -15,33 +10,33 @@ const j = { class: "flex flex-col space-y-4" }, w = { class: "flex items center
|
|
|
15
10
|
categories: {},
|
|
16
11
|
hideTooltip: { type: Boolean }
|
|
17
12
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const i =
|
|
13
|
+
setup(s) {
|
|
14
|
+
const i = s, l = f(() => (e) => {
|
|
20
15
|
if (typeof window > "u" || typeof document > "u")
|
|
21
16
|
return "";
|
|
22
17
|
try {
|
|
23
|
-
const r = h(
|
|
18
|
+
const r = h(B, {
|
|
24
19
|
data: e,
|
|
25
20
|
categories: i.categories
|
|
26
21
|
}), n = document.createElement("div");
|
|
27
22
|
r.mount(n);
|
|
28
|
-
const
|
|
29
|
-
return r.unmount(),
|
|
23
|
+
const p = n.innerHTML;
|
|
24
|
+
return r.unmount(), p;
|
|
30
25
|
} catch {
|
|
31
26
|
return "";
|
|
32
27
|
}
|
|
33
|
-
}),
|
|
34
|
-
return (e, r) => (a(), y("div",
|
|
35
|
-
o(t(
|
|
28
|
+
}), m = (e) => Number.parseInt(e.time), u = [(e) => e.firstTime, (e) => e.returning];
|
|
29
|
+
return (e, r) => (a(), y("div", N, [
|
|
30
|
+
o(t(k), {
|
|
36
31
|
data: e.data,
|
|
37
32
|
height: e.height
|
|
38
33
|
}, {
|
|
39
34
|
default: v(() => [
|
|
40
35
|
o(t(C), {
|
|
41
|
-
x:
|
|
42
|
-
y:
|
|
36
|
+
x: m,
|
|
37
|
+
y: u,
|
|
43
38
|
color: Object.values(i.categories).map((n) => n.color),
|
|
44
|
-
"curve-type": t(
|
|
39
|
+
"curve-type": t(x).Linear
|
|
45
40
|
}, null, 8, ["color", "curve-type"]),
|
|
46
41
|
o(t(c), {
|
|
47
42
|
type: "x",
|
|
@@ -53,16 +48,16 @@ const j = { class: "flex flex-col space-y-4" }, w = { class: "flex items center
|
|
|
53
48
|
label: "Number of visitors",
|
|
54
49
|
"num-ticks": 3
|
|
55
50
|
}),
|
|
56
|
-
e.hideTooltip ?
|
|
51
|
+
e.hideTooltip ? V("", !0) : (a(), _(t(T), {
|
|
57
52
|
key: 0,
|
|
58
53
|
color: "#666",
|
|
59
|
-
template:
|
|
54
|
+
template: l.value
|
|
60
55
|
}, null, 8, ["template"]))
|
|
61
56
|
]),
|
|
62
57
|
_: 1
|
|
63
58
|
}, 8, ["data", "height"]),
|
|
64
|
-
g("div",
|
|
65
|
-
o(t(
|
|
59
|
+
g("div", A, [
|
|
60
|
+
o(t(b), {
|
|
66
61
|
items: Object.values(e.categories)
|
|
67
62
|
}, null, 8, ["items"])
|
|
68
63
|
])
|
|
@@ -70,5 +65,5 @@ const j = { class: "flex flex-col space-y-4" }, w = { class: "flex items center
|
|
|
70
65
|
}
|
|
71
66
|
});
|
|
72
67
|
export {
|
|
73
|
-
|
|
68
|
+
O as default
|
|
74
69
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BulletLegendItemInterface } from '@unovis/ts';
|
|
2
|
+
export interface AreaStackedChartProps<T> {
|
|
3
|
+
/**
|
|
4
|
+
* The data to be displayed in the stacked area chart.
|
|
5
|
+
* Each element of the array represents a data point.
|
|
6
|
+
* The structure of 'T' should be compatible with the chart's rendering logic.
|
|
7
|
+
*/
|
|
8
|
+
data: T[];
|
|
9
|
+
/**
|
|
10
|
+
* The height of the chart in pixels.
|
|
11
|
+
*/
|
|
12
|
+
height: number;
|
|
13
|
+
/**
|
|
14
|
+
* A record mapping category keys to `BulletLegendItemInterface` objects.
|
|
15
|
+
* This defines the visual representation and labels for each category in the chart's legend.
|
|
16
|
+
*/
|
|
17
|
+
categories: Record<string, BulletLegendItemInterface>;
|
|
18
|
+
/**
|
|
19
|
+
* If `true`, hides the chart tooltip.
|
|
20
|
+
*/
|
|
21
|
+
hideTooltip?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Optional label for the x-axis.
|
|
24
|
+
*/
|
|
25
|
+
xLabel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional label for the y-axis.
|
|
28
|
+
*/
|
|
29
|
+
yLabel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* If `true`, hides the chart legend.
|
|
32
|
+
*/
|
|
33
|
+
hideLegend?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* If `true`, displays grid lines along the x-axis.
|
|
36
|
+
*/
|
|
37
|
+
xGridLine?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* If `true`, displays a domain line (axis line) along the x-axis.
|
|
40
|
+
*/
|
|
41
|
+
xDomainLine?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* If `true`, displays grid lines along the y-axis.
|
|
44
|
+
*/
|
|
45
|
+
yGridLine?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* If `true`, displays a domain line (axis line) along the y-axis.
|
|
48
|
+
*/
|
|
49
|
+
yDomainLine?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* If `true`, displays tick lines on the x-axis.
|
|
52
|
+
*/
|
|
53
|
+
xTickLine?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* If `true`, displays tick lines on the y-axis.
|
|
56
|
+
*/
|
|
57
|
+
yTickLine?: boolean;
|
|
58
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { defineComponent as v, computed as d, createApp as B, createElementBlock as k, openBlock as c, normalizeClass as h, createVNode as l, createCommentVNode as T, unref as i, withCtx as V, createBlock as L } from "vue";
|
|
2
|
+
import { Orientation as s, StackedBar as P, GroupedBar as C } from "@unovis/ts";
|
|
3
|
+
import { VisXYContainer as D, VisTooltip as G, VisGroupedBar as N, VisStackedBar as A, VisAxis as b, VisBulletLegend as F } from "@unovis/vue";
|
|
4
|
+
import x from "../Tooltip.js";
|
|
5
|
+
import { LegendPosition as j } from "../../types.js";
|
|
6
|
+
import { getDistributedIndices as w } from "../../utils.js";
|
|
7
|
+
const M = /* @__PURE__ */ v({
|
|
8
|
+
__name: "BarChart",
|
|
9
|
+
props: {
|
|
10
|
+
data: {},
|
|
11
|
+
stacked: { type: Boolean },
|
|
12
|
+
height: {},
|
|
13
|
+
xLabel: {},
|
|
14
|
+
yLabel: {},
|
|
15
|
+
categories: {},
|
|
16
|
+
xFormatter: {},
|
|
17
|
+
yFormatter: {},
|
|
18
|
+
yNumTicks: { default: (t) => t.data.length > 24 ? 24 / 4 : t.data.length - 1 },
|
|
19
|
+
xNumTicks: { default: (t) => t.data.length > 24 ? 24 / 4 : t.data.length - 1 },
|
|
20
|
+
yAxis: {},
|
|
21
|
+
groupPadding: {},
|
|
22
|
+
barPadding: {},
|
|
23
|
+
radius: {},
|
|
24
|
+
hideLegend: { type: Boolean },
|
|
25
|
+
orientation: { default: s.Vertical },
|
|
26
|
+
legendPosition: {},
|
|
27
|
+
xDomainLine: { type: Boolean },
|
|
28
|
+
yDomainLine: { type: Boolean },
|
|
29
|
+
xTickLine: { type: Boolean },
|
|
30
|
+
yTickLine: { type: Boolean },
|
|
31
|
+
xGridLine: { type: Boolean },
|
|
32
|
+
yGridLine: { type: Boolean, default: !0 }
|
|
33
|
+
},
|
|
34
|
+
setup(t) {
|
|
35
|
+
const a = t, g = d(() => a.yAxis.map((e) => (n) => n[e])), p = (e, n) => Object.values(a.categories)[n].color, y = d(
|
|
36
|
+
() => a.legendPosition === j.Top
|
|
37
|
+
), m = d(
|
|
38
|
+
() => w(a.data.length, a.xNumTicks)
|
|
39
|
+
), u = d(() => {
|
|
40
|
+
var e;
|
|
41
|
+
return !((e = a.data) != null && e.length) || !m || m.value.length === 0 ? [] : m.value.map((n) => a.data[n]);
|
|
42
|
+
}), f = d(() => (e) => {
|
|
43
|
+
if (typeof window > "u" || typeof document > "u")
|
|
44
|
+
return "";
|
|
45
|
+
try {
|
|
46
|
+
const n = B(x, {
|
|
47
|
+
data: e,
|
|
48
|
+
categories: a.categories
|
|
49
|
+
}), r = document.createElement("div");
|
|
50
|
+
n.mount(r);
|
|
51
|
+
const o = r.innerHTML;
|
|
52
|
+
return n.unmount(), o;
|
|
53
|
+
} catch {
|
|
54
|
+
return "";
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return (e, n) => (c(), k("div", {
|
|
58
|
+
class: h(["flex flex-col space-y-4", { "flex-col-reverse": y.value }])
|
|
59
|
+
}, [
|
|
60
|
+
l(i(D), { height: e.height }, {
|
|
61
|
+
default: V(() => [
|
|
62
|
+
l(i(G), {
|
|
63
|
+
triggers: {
|
|
64
|
+
[i(C).selectors.bar]: f.value,
|
|
65
|
+
[i(P).selectors.bar]: f.value
|
|
66
|
+
}
|
|
67
|
+
}, null, 8, ["triggers"]),
|
|
68
|
+
e.stacked ? (c(), L(i(A), {
|
|
69
|
+
key: 1,
|
|
70
|
+
data: u.value,
|
|
71
|
+
x: (r, o) => o,
|
|
72
|
+
y: g.value,
|
|
73
|
+
color: p,
|
|
74
|
+
"rounded-corners": e.radius ?? 0,
|
|
75
|
+
"group-padding": e.groupPadding ?? 0,
|
|
76
|
+
"bar-padding": e.barPadding ?? 0.2,
|
|
77
|
+
orientation: e.orientation ?? i(s).Vertical
|
|
78
|
+
}, null, 8, ["data", "x", "y", "rounded-corners", "group-padding", "bar-padding", "orientation"])) : (c(), L(i(N), {
|
|
79
|
+
key: 0,
|
|
80
|
+
data: u.value,
|
|
81
|
+
x: (r, o) => o,
|
|
82
|
+
y: g.value,
|
|
83
|
+
color: p,
|
|
84
|
+
"rounded-corners": e.radius ?? 0,
|
|
85
|
+
"group-padding": e.groupPadding ?? 0,
|
|
86
|
+
"bar-padding": e.barPadding ?? 0.2,
|
|
87
|
+
orientation: e.orientation ?? i(s).Vertical
|
|
88
|
+
}, null, 8, ["data", "x", "y", "rounded-corners", "group-padding", "bar-padding", "orientation"])),
|
|
89
|
+
l(i(b), {
|
|
90
|
+
type: "x",
|
|
91
|
+
"num-ticks": u.value.length,
|
|
92
|
+
"tick-format": a.orientation === i(s).Horizontal ? e.xFormatter : (r, o) => e.xFormatter(u.value[r], o),
|
|
93
|
+
label: e.xLabel,
|
|
94
|
+
"grid-line": e.xGridLine,
|
|
95
|
+
"domain-line": e.xDomainLine,
|
|
96
|
+
"tick-line": e.xTickLine
|
|
97
|
+
}, null, 8, ["num-ticks", "tick-format", "label", "grid-line", "domain-line", "tick-line"]),
|
|
98
|
+
l(i(b), {
|
|
99
|
+
type: "y",
|
|
100
|
+
label: e.yLabel,
|
|
101
|
+
"grid-line": e.orientation !== i(s).Horizontal && e.yGridLine,
|
|
102
|
+
"domain-line": e.yDomainLine,
|
|
103
|
+
"tick-format": e.yFormatter,
|
|
104
|
+
"num-ticks": e.yNumTicks,
|
|
105
|
+
"tick-line": e.yTickLine
|
|
106
|
+
}, null, 8, ["label", "grid-line", "domain-line", "tick-format", "num-ticks", "tick-line"])
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}, 8, ["height"]),
|
|
110
|
+
e.hideLegend ? T("", !0) : (c(), k("div", {
|
|
111
|
+
key: 0,
|
|
112
|
+
class: h(["flex items center justify-end", { "pb-4": y.value }])
|
|
113
|
+
}, [
|
|
114
|
+
l(i(F), {
|
|
115
|
+
items: Object.values(e.categories)
|
|
116
|
+
}, null, 8, ["items"])
|
|
117
|
+
], 2))
|
|
118
|
+
], 2));
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
export {
|
|
122
|
+
M as default
|
|
123
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BarChartProps } from './types';
|
|
2
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & BarChartProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
4
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
5
|
+
attrs: any;
|
|
6
|
+
slots: {};
|
|
7
|
+
emit: {};
|
|
8
|
+
}>) => import('vue').VNode & {
|
|
9
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_PrettifyLocal<T> = {
|
|
13
|
+
[K in keyof T]: T[K];
|
|
14
|
+
} & {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { BulletLegendItemInterface, Orientation, LegendPosition } from '../../types';
|
|
2
|
+
export interface BarChartProps<T> {
|
|
3
|
+
/**
|
|
4
|
+
* The data to be displayed in the bar chart.
|
|
5
|
+
* Each element of the array represents a data point.
|
|
6
|
+
* The structure of 'T' should be compatible with the chart's rendering logic.
|
|
7
|
+
*/
|
|
8
|
+
data: T[];
|
|
9
|
+
/**
|
|
10
|
+
* If `true`, creates a stacked bar chart instead of grouped bars.
|
|
11
|
+
*/
|
|
12
|
+
stacked?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The height of the chart in pixels.
|
|
15
|
+
*/
|
|
16
|
+
height: number;
|
|
17
|
+
/**
|
|
18
|
+
* Optional label for the x-axis.
|
|
19
|
+
*/
|
|
20
|
+
xLabel?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional label for the y-axis.
|
|
23
|
+
*/
|
|
24
|
+
yLabel?: string;
|
|
25
|
+
/**
|
|
26
|
+
* A record mapping category keys to `BulletLegendItemInterface` objects.
|
|
27
|
+
* This defines the visual representation and labels for each category in the chart's legend.
|
|
28
|
+
*/
|
|
29
|
+
categories: Record<string, BulletLegendItemInterface>;
|
|
30
|
+
/**
|
|
31
|
+
* A function that formats the x-axis tick labels.
|
|
32
|
+
* @param item The x-axis value to be formatted.
|
|
33
|
+
* @param idx The index of the data point.
|
|
34
|
+
* @returns The formatted x-axis label.
|
|
35
|
+
*/
|
|
36
|
+
xFormatter: (item: T, idx: number) => string | number;
|
|
37
|
+
/**
|
|
38
|
+
* An optional function that formats the y-axis tick labels.
|
|
39
|
+
* @param i The value to be formatted.
|
|
40
|
+
* @param idx The index of the data point (optional).
|
|
41
|
+
* @returns The formatted y-axis label or value.
|
|
42
|
+
*/
|
|
43
|
+
yFormatter?: (i: number, idx?: number) => string | number;
|
|
44
|
+
/**
|
|
45
|
+
* The desired number of ticks on the y-axis.
|
|
46
|
+
*/
|
|
47
|
+
yNumTicks?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The desired number of ticks on the x-axis.
|
|
50
|
+
*/
|
|
51
|
+
xNumTicks?: number;
|
|
52
|
+
/**
|
|
53
|
+
* An array of property keys from the data object type 'T' to be used for the y-axis values.
|
|
54
|
+
*/
|
|
55
|
+
yAxis: (keyof T)[];
|
|
56
|
+
/**
|
|
57
|
+
* The padding between groups of bars in pixels.
|
|
58
|
+
*/
|
|
59
|
+
groupPadding?: number;
|
|
60
|
+
/**
|
|
61
|
+
* The padding between bars within the same group in pixels.
|
|
62
|
+
*/
|
|
63
|
+
barPadding?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The corner radius of the bars in pixels.
|
|
66
|
+
*/
|
|
67
|
+
radius?: number;
|
|
68
|
+
/**
|
|
69
|
+
* If `true`, hides the chart legend.
|
|
70
|
+
*/
|
|
71
|
+
hideLegend?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The orientation of the bars (vertical or horizontal).
|
|
74
|
+
* See `Orientation` for available options.
|
|
75
|
+
*/
|
|
76
|
+
orientation?: Orientation;
|
|
77
|
+
/**
|
|
78
|
+
* Optional position for the legend, if applicable.
|
|
79
|
+
* See `LegendPosition` for available options.
|
|
80
|
+
*/
|
|
81
|
+
legendPosition?: LegendPosition;
|
|
82
|
+
/**
|
|
83
|
+
* If `true`, displays a domain line (axis line) along the x-axis.
|
|
84
|
+
*/
|
|
85
|
+
xDomainLine?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* If `true`, displays a domain line (axis line) along the y-axis.
|
|
88
|
+
*/
|
|
89
|
+
yDomainLine?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* If `true`, displays tick lines on the x-axis.
|
|
92
|
+
*/
|
|
93
|
+
xTickLine?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* If `true`, displays tick lines on the y-axis.
|
|
96
|
+
*/
|
|
97
|
+
yTickLine?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* If `true`, displays grid lines along the x-axis.
|
|
100
|
+
*/
|
|
101
|
+
xGridLine?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* If `true`, displays grid lines along the y-axis.
|
|
104
|
+
*/
|
|
105
|
+
yGridLine?: boolean;
|
|
106
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent as u, createElementBlock as n, openBlock as i, Fragment as m, createElementVNode as f, createCommentVNode as p, createVNode as t, renderSlot as g, unref as o, withCtx as h } from "vue";
|
|
2
|
+
import { Donut as v } from "@unovis/ts";
|
|
3
|
+
import { VisSingleContainer as y, VisTooltip as V, VisDonut as b, VisBulletLegend as C } from "@unovis/vue";
|
|
4
|
+
import { DonutType as _ } from "./types.js";
|
|
5
|
+
const k = { class: "flex items-center justify-center" }, B = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "flex items-center justify-center mt-4"
|
|
8
|
+
}, w = /* @__PURE__ */ u({
|
|
9
|
+
__name: "DonutChart",
|
|
10
|
+
props: {
|
|
11
|
+
type: {},
|
|
12
|
+
data: {},
|
|
13
|
+
height: {},
|
|
14
|
+
radius: {},
|
|
15
|
+
hideLegend: { type: Boolean },
|
|
16
|
+
labels: {}
|
|
17
|
+
},
|
|
18
|
+
setup(l) {
|
|
19
|
+
const r = l, s = (e) => e, a = r.type === _.Half, d = {
|
|
20
|
+
[v.selectors.segment]: (e) => `<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${r.labels[e.index].color} ;'></div>
|
|
21
|
+
<div>${e.data}</div>
|
|
22
|
+
</vistooltip>
|
|
23
|
+
</vissinglecontainer>
|
|
24
|
+
</div>`
|
|
25
|
+
};
|
|
26
|
+
return (e, D) => (i(), n(m, null, [
|
|
27
|
+
f("div", k, [
|
|
28
|
+
t(o(y), {
|
|
29
|
+
data: e.data,
|
|
30
|
+
height: e.height,
|
|
31
|
+
margin: {}
|
|
32
|
+
}, {
|
|
33
|
+
default: h(() => [
|
|
34
|
+
t(o(V), {
|
|
35
|
+
"horizontal-shift": 20,
|
|
36
|
+
"vertical-shift": 20,
|
|
37
|
+
triggers: d
|
|
38
|
+
}),
|
|
39
|
+
t(o(b), {
|
|
40
|
+
value: s,
|
|
41
|
+
"corner-radius": e.radius,
|
|
42
|
+
color: r.labels.map((c) => c.color),
|
|
43
|
+
"angle-range": a ? [-1.5707963267948966, 1.5707963267948966] : []
|
|
44
|
+
}, null, 8, ["corner-radius", "color", "angle-range"])
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
}, 8, ["data", "height"]),
|
|
48
|
+
g(e.$slots, "default")
|
|
49
|
+
]),
|
|
50
|
+
e.hideLegend ? p("", !0) : (i(), n("div", B, [
|
|
51
|
+
t(o(C), { items: e.labels }, null, 8, ["items"])
|
|
52
|
+
]))
|
|
53
|
+
], 64));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export {
|
|
57
|
+
w as default
|
|
58
|
+
};
|