@primeui/vue-chart 0.0.1-alpha.1 → 1.0.0-rc.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/LICENSE.md +35 -0
- package/README.md +64 -0
- package/dist/CartesianRenderer.rich.spec.d.ts +1 -0
- package/dist/Chart.features.spec.d.ts +1 -0
- package/dist/Chart.interactions.spec.d.ts +1 -0
- package/dist/Chart.pointEvents.spec.d.ts +1 -0
- package/dist/Chart.vue.d.ts +5 -1
- package/dist/ChartCanvas.mjs +15 -14
- package/dist/ChartCanvas.pipeline.spec.d.ts +1 -0
- package/dist/ChartCanvas.vue.d.ts +8 -4
- package/dist/ChartGroup.sync.spec.d.ts +1 -0
- package/dist/ChartLegend.spec.d.ts +1 -0
- package/dist/ChartSvg.containers.spec.d.ts +1 -0
- package/dist/ChartSvg.declarative.spec.d.ts +1 -0
- package/dist/ChartSvg.export-menu.spec.d.ts +1 -0
- package/dist/ChartSvg.hover.spec.d.ts +1 -0
- package/dist/ChartSvg.mjs +15 -14
- package/dist/ChartSvg.renderers.spec.d.ts +1 -0
- package/dist/ChartSvg.vue.d.ts +8 -4
- package/dist/ColorLegendRenderer.branches.spec.d.ts +1 -0
- package/dist/ColorLegendRenderer.spec.d.ts +1 -0
- package/dist/LegendRenderer.spec.d.ts +1 -0
- package/dist/NavigatorRenderer.spec.d.ts +1 -0
- package/dist/RadialHeatmap.rich.spec.d.ts +1 -0
- package/dist/TooltipRenderer.spec.d.ts +1 -0
- package/dist/{chunk-6S4JMPKC.mjs → chunks/chunk-2NZ3PUWW.mjs} +2 -2
- package/dist/{chunk-RRHYGSK6.mjs → chunks/chunk-2TOEQNJ6.mjs} +2 -2
- package/dist/{chunk-GX2MK6VT.mjs → chunks/chunk-36DHPBYP.mjs} +25 -23
- package/dist/{chunk-RSTIA3KM.mjs → chunks/chunk-3DINEX6C.mjs} +2 -1
- package/dist/{chunk-PJVOZSPF.mjs → chunks/chunk-3JA5JAHF.mjs} +2 -2
- package/dist/{chunk-KOWFD2AE.mjs → chunks/chunk-3PJULFR5.mjs} +22 -21
- package/dist/chunks/chunk-3X27K5XC.mjs +236 -0
- package/dist/chunks/chunk-3XOLEGDL.mjs +182 -0
- package/dist/{chunk-372K2BMN.mjs → chunks/chunk-4EU72IBK.mjs} +71 -23
- package/dist/{chunk-PSSXPTLQ.mjs → chunks/chunk-4SLSYRNY.mjs} +6 -6
- package/dist/{chunk-4NJ2PSHV.mjs → chunks/chunk-5ZLVNQ2L.mjs} +7 -4
- package/dist/{chunk-O6L3PNFC.mjs → chunks/chunk-6Z4MZIJI.mjs} +2 -2
- package/dist/chunks/chunk-7EZEZMGG.mjs +22 -0
- package/dist/chunks/chunk-ADAGGXFG.mjs +166 -0
- package/dist/{chunk-YRKAI2R2.mjs → chunks/chunk-AKMQHU5T.mjs} +15 -14
- package/dist/{chunk-ZRCOVQQM.mjs → chunks/chunk-BSROML7P.mjs} +2 -2
- package/dist/{chunk-WYV2MHP6.mjs → chunks/chunk-CGFPDWB4.mjs} +1 -1
- package/dist/{chunk-4CRHCZV3.mjs → chunks/chunk-CMJXLIEY.mjs} +125 -9
- package/dist/{chunk-42J32DPD.mjs → chunks/chunk-CRIB3I3L.mjs} +1 -1
- package/dist/{chunk-WKSQR6L5.mjs → chunks/chunk-CW2KYVYO.mjs} +31 -8
- package/dist/{chunk-644ROAHU.mjs → chunks/chunk-DDRSIMLE.mjs} +33 -12
- package/dist/{chunk-32XIRBZ7.mjs → chunks/chunk-DXKAPWMO.mjs} +2 -2
- package/dist/{chunk-44BAFHPK.mjs → chunks/chunk-EWDMF46D.mjs} +10 -5
- package/dist/{chunk-E2U4W5FW.mjs → chunks/chunk-F7EK5D6J.mjs} +11 -11
- package/dist/{chunk-ZHFL3RYO.mjs → chunks/chunk-GE2Y2FHS.mjs} +6 -6
- package/dist/{chunk-AAX7FOW3.mjs → chunks/chunk-GIDIMIWE.mjs} +11 -11
- package/dist/{chunk-NLXOJSKK.mjs → chunks/chunk-GLFXRR7N.mjs} +29 -5
- package/dist/{chunk-W5M3BR6N.mjs → chunks/chunk-GV3CY6CQ.mjs} +1 -1
- package/dist/{chunk-CDXF6ZTL.mjs → chunks/chunk-HH5FUUXX.mjs} +1 -1
- package/dist/{chunk-RQURY2H3.mjs → chunks/chunk-HHZFGQN2.mjs} +2 -2
- package/dist/{chunk-2D3PWFR2.mjs → chunks/chunk-HVLFOABV.mjs} +4 -4
- package/dist/chunks/chunk-I2BWSDNR.mjs +832 -0
- package/dist/{chunk-MDA22SIZ.mjs → chunks/chunk-IFZSHQDZ.mjs} +2 -2
- package/dist/chunks/chunk-IRGQNA5W.mjs +289 -0
- package/dist/chunks/chunk-JBWL3G7O.mjs +86 -0
- package/dist/{chunk-56NMBNNX.mjs → chunks/chunk-JPKNWLLP.mjs} +3 -3
- package/dist/{chunk-XBDNMPF7.mjs → chunks/chunk-JVH4MDKX.mjs} +2 -2
- package/dist/chunks/chunk-KNNYJD4D.mjs +14 -0
- package/dist/{chunk-AUI5R4DA.mjs → chunks/chunk-L73MEG22.mjs} +2 -2
- package/dist/{chunk-K326BBF7.mjs → chunks/chunk-L74BEYTD.mjs} +38 -17
- package/dist/{chunk-DYVFVVTO.mjs → chunks/chunk-LJZCE7LQ.mjs} +102 -6
- package/dist/{chunk-YGHWUR7K.mjs → chunks/chunk-LP2YESP6.mjs} +1 -1
- package/dist/{chunk-WA735Y26.mjs → chunks/chunk-MGUGO3RV.mjs} +1 -1
- package/dist/{chunk-DOOXGOOB.mjs → chunks/chunk-OJHEN5FG.mjs} +96 -5
- package/dist/{chunk-ZNINPVG7.mjs → chunks/chunk-ON2FAZTD.mjs} +1 -1
- package/dist/{chunk-DLUFOM5K.mjs → chunks/chunk-PCBF6FSQ.mjs} +11 -11
- package/dist/{chunk-72KINEJ6.mjs → chunks/chunk-PR6MTWPJ.mjs} +10 -5
- package/dist/{chunk-FQTWLAVA.mjs → chunks/chunk-QJCMFAHB.mjs} +1 -1
- package/dist/{chunk-62NGBLQ7.mjs → chunks/chunk-QONZ3SCZ.mjs} +1 -1
- package/dist/{chunk-HANSF33Z.mjs → chunks/chunk-QOWKMWNO.mjs} +1 -1
- package/dist/{chunk-GA4VV5V4.mjs → chunks/chunk-R4AZOPXC.mjs} +1 -1
- package/dist/{chunk-5DWO3G33.mjs → chunks/chunk-SGLTVJUA.mjs} +35 -21
- package/dist/{chunk-5FTUGKPC.mjs → chunks/chunk-TRGN3ZMM.mjs} +5 -5
- package/dist/{chunk-RSAZ7V5Z.mjs → chunks/chunk-TZ23VBFU.mjs} +2 -2
- package/dist/{chunk-4UVPCLJ7.mjs → chunks/chunk-U6X3GVJ3.mjs} +1 -1
- package/dist/{chunk-J2P5JBHC.mjs → chunks/chunk-UOMQNZMT.mjs} +1 -1
- package/dist/{chunk-4THCGGER.mjs → chunks/chunk-UOZFNTVQ.mjs} +2 -2
- package/dist/{chunk-TIV2FI4S.mjs → chunks/chunk-WVNDZNMV.mjs} +2 -2
- package/dist/{chunk-GFC24374.mjs → chunks/chunk-X4NWFK7L.mjs} +5 -5
- package/dist/{chunk-FFBK7Q3W.mjs → chunks/chunk-YI3GLQYF.mjs} +67 -4
- package/dist/{chunk-HTZVV6VV.mjs → chunks/chunk-YZQS2YBK.mjs} +8 -6
- package/dist/{chunk-PQV55JYI.mjs → chunks/chunk-ZLD5VNMP.mjs} +2 -2
- package/dist/components/charts/ChartBar.mjs +13 -13
- package/dist/components/charts/ChartCandlestick.mjs +11 -11
- package/dist/components/charts/ChartHeatmap.mjs +11 -11
- package/dist/components/charts/ChartLine.mjs +12 -11
- package/dist/components/charts/ChartPie.mjs +12 -11
- package/dist/components/charts/ChartPolar.mjs +13 -11
- package/dist/components/charts/ChartRadar.mjs +13 -11
- package/dist/components/charts/ChartScatter.mjs +12 -11
- package/dist/components/charts/ChartTreemap.mjs +10 -10
- package/dist/components/containers/ChartDecimation.mjs +6 -6
- package/dist/components/containers/ChartGroup.mjs +4 -4
- package/dist/components/containers/ChartOverlap.mjs +5 -5
- package/dist/components/containers/ChartRange.mjs +6 -6
- package/dist/components/containers/ChartStacked.mjs +6 -6
- package/dist/components/containers/ChartWaterfall.mjs +5 -5
- package/dist/components/customizations/ChartAccessibility.mjs +9 -9
- package/dist/components/customizations/ChartAnnotation.mjs +5 -5
- package/dist/components/customizations/ChartAxisCategory.mjs +3 -3
- package/dist/components/customizations/ChartAxisGroup.mjs +3 -3
- package/dist/components/customizations/ChartBreadcrumb.mjs +6 -6
- package/dist/components/customizations/ChartCaption.mjs +9 -9
- package/dist/components/customizations/ChartColorLegend.mjs +9 -9
- package/dist/components/customizations/ChartDataLabels.mjs +9 -9
- package/dist/components/customizations/ChartExportMenu.mjs +9 -9
- package/dist/components/customizations/ChartHover.mjs +9 -9
- package/dist/components/customizations/ChartLegend.mjs +9 -9
- package/dist/components/customizations/ChartNavigator.mjs +10 -10
- package/dist/components/customizations/ChartReferenceBand.mjs +5 -5
- package/dist/components/customizations/ChartReferenceLine.mjs +5 -5
- package/dist/components/customizations/ChartResponsive.mjs +9 -9
- package/dist/components/customizations/ChartTitle.mjs +9 -9
- package/dist/components/customizations/ChartTooltip.mjs +9 -9
- package/dist/components/customizations/ChartXAxis.mjs +10 -10
- package/dist/components/customizations/ChartYAxis.mjs +10 -10
- package/dist/components/customizations/ChartZoom.mjs +9 -9
- package/dist/components/items/ChartItem.mjs +3 -3
- package/dist/components/items/ChartTreemapGroup.mjs +5 -5
- package/dist/components/renderers/CartesianRenderer.mjs +9 -9
- package/dist/components/renderers/CartesianRenderer.vue.d.ts +2 -0
- package/dist/components/renderers/ColorLegendRenderer.mjs +2 -2
- package/dist/components/renderers/LegendRenderer.mjs +3 -3
- package/dist/components/renderers/NavigatorRenderer.mjs +5 -5
- package/dist/components/renderers/RadialRenderer.mjs +9 -9
- package/dist/components/renderers/RadialRenderer.vue.d.ts +1 -1
- package/dist/components/renderers/RectRenderer.mjs +9 -9
- package/dist/components/renderers/RectRenderer.vue.d.ts +1 -1
- package/dist/components/renderers/TooltipRenderer.mjs +4 -4
- package/dist/components/renderers/layers/BarLayerCanvas.mjs +10 -10
- package/dist/components/renderers/layers/BarLayerSvg.mjs +10 -10
- package/dist/components/renderers/layers/CandlestickLayer.mjs +9 -9
- package/dist/components/renderers/layers/HeatmapLayer.mjs +9 -9
- package/dist/components/renderers/layers/LineLayer.mjs +10 -9
- package/dist/components/renderers/layers/PieLayer.mjs +7 -9
- package/dist/components/renderers/layers/PolarLayer.mjs +8 -9
- package/dist/components/renderers/layers/RadarLayer.mjs +8 -9
- package/dist/components/renderers/layers/ScatterLayer.mjs +10 -9
- package/dist/composables/index.d.ts +0 -8
- package/dist/composables/useAnimationProps.d.ts +2 -5
- package/dist/composables/useChartSync.spec.d.ts +1 -0
- package/dist/composables/useChartSyncCoordinator.spec.d.ts +1 -0
- package/dist/composables/useHeatmapRenderer.spec.d.ts +1 -0
- package/dist/composables/usePolarRenderer.spec.d.ts +1 -0
- package/dist/composables/useResponsiveConfig.d.ts +1 -1
- package/dist/composables/useResponsiveDimensions.spec.d.ts +1 -0
- package/dist/composables/useTreemapRenderer.spec.d.ts +1 -0
- package/dist/context/ChartContext.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +69 -66
- package/dist/namespace.mjs +69 -112
- package/dist/release-date.d.ts +1 -1
- package/dist/types/animation.types.d.ts +2 -0
- package/dist/types/bar.types.d.ts +2 -1
- package/dist/types/candlestick.types.d.ts +0 -1
- package/dist/types/heatmap.types.d.ts +0 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/item.types.d.ts +0 -1
- package/dist/types/line.types.d.ts +4 -1
- package/dist/types/scatter.types.d.ts +3 -2
- package/dist/useChartContext.spec.d.ts +1 -0
- package/package.json +9 -14
- package/LICENSE +0 -23
- package/dist/chunk-54DLUFIA.mjs +0 -96
- package/dist/chunk-CQHNYT2V.mjs +0 -1692
- package/dist/chunk-JKK3D33U.mjs +0 -64
- package/dist/chunk-UO27BCRL.mjs +0 -86
- package/dist/chunk-VWABO23U.mjs +0 -143
- /package/dist/{chunk-FZ3PZ66C.mjs → chunks/chunk-4Q3QUNX6.mjs} +0 -0
- /package/dist/{chunk-5SRBQVU5.mjs → chunks/chunk-EHSDNH7K.mjs} +0 -0
- /package/dist/{chunk-LD57I4SY.mjs → chunks/chunk-H4HLHGUW.mjs} +0 -0
- /package/dist/{chunk-TEOO4OLV.mjs → chunks/chunk-L6N5IYAJ.mjs} +0 -0
- /package/dist/{chunk-E4ROAOPT.mjs → chunks/chunk-S4YR4YK7.mjs} +0 -0
- /package/dist/{chunk-7P6ASYW6.mjs → chunks/chunk-VIHIR2BE.mjs} +0 -0
- /package/dist/{chunk-J43KLCZF.mjs → chunks/chunk-ZH4A4L6W.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useBarLayer, useBarRendererBase } from './chunk-
|
|
1
|
+
import { useBarLayer, useBarRendererBase } from './chunk-AKMQHU5T.mjs';
|
|
2
2
|
import { defineComponent, unref, openBlock, createElementBlock, createCommentVNode } from 'vue';
|
|
3
3
|
import { createBarRendererCanvas } from '@primeui/chart-core/series/bar/controller-canvas';
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
setup(__props) {
|
|
14
14
|
const { bar, methods, frame } = useBarLayer(useBarRenderer);
|
|
15
15
|
return (_ctx, _cache) => {
|
|
16
|
-
return unref(methods).renderer === "svg"
|
|
16
|
+
return unref(methods).renderer === "svg" ? (openBlock(), createElementBlock("g", {
|
|
17
17
|
key: 0,
|
|
18
18
|
ref: (el) => {
|
|
19
19
|
unref(bar).groupRef.value = el;
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { usePropertyAnimations } from './chunk-I2BWSDNR.mjs';
|
|
2
|
+
import { useChartMethods, useChartState, useChartHover } from './chunk-QOWKMWNO.mjs';
|
|
3
|
+
import { defineComponent, computed, toRef, shallowRef, onUnmounted, unref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, createCommentVNode, ref, watch, createVNode } from 'vue';
|
|
4
|
+
import { AnimatedPropertyStore, AnimationRegistry, renderTreemapGroupHoverOverlay } from '@primeui/chart-core';
|
|
5
|
+
import { createTreemapRendererCanvas } from '@primeui/chart-core/series/treemap/controller-canvas';
|
|
6
|
+
import { createTreemapRendererSvg } from '@primeui/chart-core/series/treemap/controller-svg';
|
|
7
|
+
|
|
8
|
+
function useTreemapRenderer(options) {
|
|
9
|
+
const { chartArea, renderer, canvasEl, datasets, features, datasetVisibility, width, height, chartId, drilldownState, globalFont, hover, theme } = options;
|
|
10
|
+
const wrapperRef = ref(null);
|
|
11
|
+
const groupRef = ref(null);
|
|
12
|
+
const overlayRef = ref(null);
|
|
13
|
+
const controller = renderer === "canvas" ? createTreemapRendererCanvas() : createTreemapRendererSvg();
|
|
14
|
+
const versionRef = ref(0);
|
|
15
|
+
controller.onFrame = () => {
|
|
16
|
+
versionRef.value++;
|
|
17
|
+
};
|
|
18
|
+
controller.onImageLoad = () => {
|
|
19
|
+
if (renderer !== "canvas") return;
|
|
20
|
+
controller.update({
|
|
21
|
+
datasets: datasets.value,
|
|
22
|
+
datasetVisibility: datasetVisibility.value,
|
|
23
|
+
chartArea: chartArea.value,
|
|
24
|
+
renderer,
|
|
25
|
+
width: width.value,
|
|
26
|
+
height: height.value,
|
|
27
|
+
chartId,
|
|
28
|
+
features: features.value,
|
|
29
|
+
hover: { datasetId: null, index: null },
|
|
30
|
+
canvasEl: canvasEl.value,
|
|
31
|
+
svgGroup: groupRef.value,
|
|
32
|
+
svgWrapper: wrapperRef.value,
|
|
33
|
+
globalFont,
|
|
34
|
+
drilldownParentId: drilldownState.currentParentId.value,
|
|
35
|
+
drilldownEnabled: drilldownState.enabled.value,
|
|
36
|
+
theme: theme.value
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
watch(
|
|
40
|
+
[datasets, datasetVisibility, chartArea, features, width, height, groupRef, () => drilldownState.currentParentId.value, () => drilldownState.enabled.value, theme],
|
|
41
|
+
() => {
|
|
42
|
+
controller.update({
|
|
43
|
+
datasets: datasets.value,
|
|
44
|
+
datasetVisibility: datasetVisibility.value,
|
|
45
|
+
chartArea: chartArea.value,
|
|
46
|
+
renderer,
|
|
47
|
+
width: width.value,
|
|
48
|
+
height: height.value,
|
|
49
|
+
chartId,
|
|
50
|
+
features: features.value,
|
|
51
|
+
hover: { datasetId: null, index: null },
|
|
52
|
+
canvasEl: canvasEl.value,
|
|
53
|
+
svgGroup: groupRef.value,
|
|
54
|
+
svgWrapper: wrapperRef.value,
|
|
55
|
+
globalFont,
|
|
56
|
+
drilldownParentId: drilldownState.currentParentId.value,
|
|
57
|
+
drilldownEnabled: drilldownState.enabled.value,
|
|
58
|
+
theme: theme.value
|
|
59
|
+
});
|
|
60
|
+
versionRef.value++;
|
|
61
|
+
},
|
|
62
|
+
{ immediate: true, flush: "post" }
|
|
63
|
+
);
|
|
64
|
+
watch(hover, () => {
|
|
65
|
+
controller.applyHover(hover.value);
|
|
66
|
+
});
|
|
67
|
+
onUnmounted(() => {
|
|
68
|
+
controller.destroy();
|
|
69
|
+
});
|
|
70
|
+
function handleDrilldownClick(hit) {
|
|
71
|
+
if (!drilldownState.enabled.value) return false;
|
|
72
|
+
const result = controller.buildDrillInto(hit, drilldownState.currentParentId.value);
|
|
73
|
+
if (!result) return false;
|
|
74
|
+
drilldownState.drillInto(result.nodeId, result.label, result.ancestors);
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
function prepareDrillOut() {
|
|
78
|
+
controller.prepareDrillOut(chartArea.value);
|
|
79
|
+
}
|
|
80
|
+
function hitTest(x, y) {
|
|
81
|
+
return controller.hitTest(x, y);
|
|
82
|
+
}
|
|
83
|
+
function getPointPosition(datasetId, index) {
|
|
84
|
+
const entry = controller.layouts.get(datasetId);
|
|
85
|
+
const cell = entry?.layout.cells.find((c) => c.index === index);
|
|
86
|
+
if (!cell) return null;
|
|
87
|
+
return { x: cell.x, y: cell.y, width: cell.width, height: cell.height, shape: "rect" };
|
|
88
|
+
}
|
|
89
|
+
function updateHoverOverlay(hit) {
|
|
90
|
+
if (renderer === "canvas") {
|
|
91
|
+
controller.updateHoverOverlayCanvas(hit);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const groupNodeId = hit?.isGroupHit ? hit.nodeId ?? null : null;
|
|
95
|
+
const overlay = overlayRef.value;
|
|
96
|
+
if (!overlay) return;
|
|
97
|
+
renderTreemapGroupHoverOverlay(overlay, controller.layouts, groupNodeId);
|
|
98
|
+
}
|
|
99
|
+
const svgContent = computed(() => {
|
|
100
|
+
if (renderer !== "svg") return [];
|
|
101
|
+
void versionRef.value;
|
|
102
|
+
const elements = [];
|
|
103
|
+
for (const [datasetId, { props, layout }] of controller.layouts) {
|
|
104
|
+
const renderFn = props.renderContent;
|
|
105
|
+
if (!renderFn || !props.data) continue;
|
|
106
|
+
for (const cell of layout.cells) {
|
|
107
|
+
const dataItem = props.data[cell.index];
|
|
108
|
+
if (!dataItem) continue;
|
|
109
|
+
const result = renderFn({
|
|
110
|
+
data: dataItem,
|
|
111
|
+
index: cell.index,
|
|
112
|
+
label: cell.label,
|
|
113
|
+
secondaryLabel: cell.secondaryLabel,
|
|
114
|
+
value: cell.value,
|
|
115
|
+
color: cell.color,
|
|
116
|
+
x: cell.x,
|
|
117
|
+
y: cell.y,
|
|
118
|
+
width: cell.width,
|
|
119
|
+
height: cell.height,
|
|
120
|
+
nodeId: cell.nodeId,
|
|
121
|
+
parentId: cell.parentId,
|
|
122
|
+
hasChildren: cell.hasChildren,
|
|
123
|
+
depth: cell.depth,
|
|
124
|
+
drilldownParentId: props.drilldownParentId ?? null
|
|
125
|
+
});
|
|
126
|
+
if (result != null) {
|
|
127
|
+
const clipId = `tm-clip-${datasetId}-${cell.index}`;
|
|
128
|
+
elements.push(
|
|
129
|
+
createVNode("g", { key: `${datasetId}-${cell.index}` }, [
|
|
130
|
+
createVNode("clipPath", { id: clipId }, [createVNode("rect", { x: cell.x, y: cell.y, width: cell.width, height: cell.height })]),
|
|
131
|
+
createVNode("g", { "clip-path": `url(#${clipId})` }, [result])
|
|
132
|
+
])
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return elements;
|
|
138
|
+
});
|
|
139
|
+
function getColorScaleInfo() {
|
|
140
|
+
return controller.getColorScaleInfo();
|
|
141
|
+
}
|
|
142
|
+
function applyPropertyAnimations(store) {
|
|
143
|
+
controller.applyPropertyAnimations(store);
|
|
144
|
+
}
|
|
145
|
+
function renderFrameCycle() {
|
|
146
|
+
controller.renderFrameCycle();
|
|
147
|
+
}
|
|
148
|
+
return { wrapperRef, groupRef, overlayRef, svgContent, hitTest, getPointPosition, handleDrilldownClick, prepareDrillOut, updateHoverOverlay, getColorScaleInfo, applyPropertyAnimations, renderFrameCycle };
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// src/components/renderers/RectRenderer.vue
|
|
152
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
153
|
+
__name: "RectRenderer",
|
|
154
|
+
props: {
|
|
155
|
+
chartArea: {},
|
|
156
|
+
width: {},
|
|
157
|
+
height: {},
|
|
158
|
+
canvasEl: {},
|
|
159
|
+
drilldownState: {}
|
|
160
|
+
},
|
|
161
|
+
setup(__props, { expose: __expose }) {
|
|
162
|
+
const VNodeRenderer = defineComponent({
|
|
163
|
+
props: { node: {
|
|
164
|
+
type: Object,
|
|
165
|
+
required: true
|
|
166
|
+
} },
|
|
167
|
+
render() {
|
|
168
|
+
return this.node;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
const props = __props;
|
|
172
|
+
const methods = useChartMethods();
|
|
173
|
+
const state = useChartState();
|
|
174
|
+
const hoverCtx = useChartHover();
|
|
175
|
+
const treemap = useTreemapRenderer({
|
|
176
|
+
chartArea: computed(() => props.chartArea),
|
|
177
|
+
renderer: methods.renderer,
|
|
178
|
+
canvasEl: toRef(props, "canvasEl"),
|
|
179
|
+
datasets: computed(() => state.value.datasets),
|
|
180
|
+
features: computed(() => state.value.features),
|
|
181
|
+
datasetVisibility: computed(() => state.value.datasetVisibility),
|
|
182
|
+
hover: computed(() => hoverCtx.value.hover),
|
|
183
|
+
width: computed(() => props.width),
|
|
184
|
+
height: computed(() => props.height),
|
|
185
|
+
chartId: methods.chartId,
|
|
186
|
+
drilldownState: props.drilldownState,
|
|
187
|
+
globalFont: methods.font,
|
|
188
|
+
theme: computed(() => methods.theme)
|
|
189
|
+
});
|
|
190
|
+
function hitTest(x, y) {
|
|
191
|
+
return treemap.hitTest(x, y);
|
|
192
|
+
}
|
|
193
|
+
function handleDrilldownClick(hit) {
|
|
194
|
+
return treemap.handleDrilldownClick(hit);
|
|
195
|
+
}
|
|
196
|
+
function prepareDrillOut() {
|
|
197
|
+
treemap.prepareDrillOut();
|
|
198
|
+
}
|
|
199
|
+
function updateHoverOverlay(hit) {
|
|
200
|
+
treemap.updateHoverOverlay(hit);
|
|
201
|
+
}
|
|
202
|
+
function getColorScaleInfo() {
|
|
203
|
+
return treemap.getColorScaleInfo();
|
|
204
|
+
}
|
|
205
|
+
const setWrapperRef = (el) => {
|
|
206
|
+
treemap.wrapperRef.value = el;
|
|
207
|
+
};
|
|
208
|
+
const setGroupRef = (el) => {
|
|
209
|
+
treemap.groupRef.value = el;
|
|
210
|
+
};
|
|
211
|
+
const setOverlayRef = (el) => {
|
|
212
|
+
treemap.overlayRef.value = el;
|
|
213
|
+
};
|
|
214
|
+
function getPlotArea() {
|
|
215
|
+
return props.chartArea ?? null;
|
|
216
|
+
}
|
|
217
|
+
function getPointPosition(datasetId, index) {
|
|
218
|
+
return treemap.getPointPosition(datasetId, index);
|
|
219
|
+
}
|
|
220
|
+
const mergedPropertyAnimations = computed(() => {
|
|
221
|
+
const f = state.value.features;
|
|
222
|
+
const animProps = f.get("animation")?.props;
|
|
223
|
+
if (animProps?.enabled === false) {
|
|
224
|
+
return void 0;
|
|
225
|
+
}
|
|
226
|
+
const merged = [];
|
|
227
|
+
if (animProps?.propertyAnimations) merged.push(...animProps.propertyAnimations);
|
|
228
|
+
f.forEach((entry, key) => {
|
|
229
|
+
if (typeof key !== "string" || !key.startsWith("animation:")) return;
|
|
230
|
+
const p = entry.props;
|
|
231
|
+
if (p.propertyAnimations) merged.push(...p.propertyAnimations);
|
|
232
|
+
});
|
|
233
|
+
if (!merged.length) {
|
|
234
|
+
return void 0;
|
|
235
|
+
}
|
|
236
|
+
return merged;
|
|
237
|
+
});
|
|
238
|
+
const animStoreRef = shallowRef(new AnimatedPropertyStore());
|
|
239
|
+
const animRegistry = new AnimationRegistry();
|
|
240
|
+
const propertyAnimatableControllers = [];
|
|
241
|
+
for (const candidate of [treemap]) {
|
|
242
|
+
const partial = candidate;
|
|
243
|
+
if (typeof partial.applyPropertyAnimations === "function" && typeof partial.renderFrameCycle === "function") {
|
|
244
|
+
propertyAnimatableControllers.push(partial);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
animRegistry.setRepaintCallback(() => {
|
|
248
|
+
const store = animStoreRef.value;
|
|
249
|
+
if (!store) return;
|
|
250
|
+
for (const c of propertyAnimatableControllers) c.applyPropertyAnimations(store);
|
|
251
|
+
});
|
|
252
|
+
function onPropertyComplete() {
|
|
253
|
+
for (const c of propertyAnimatableControllers) c.renderFrameCycle();
|
|
254
|
+
}
|
|
255
|
+
usePropertyAnimations(mergedPropertyAnimations, animRegistry, animStoreRef.value, onPropertyComplete);
|
|
256
|
+
onUnmounted(() => {
|
|
257
|
+
animRegistry.destroy();
|
|
258
|
+
animStoreRef.value?.destroy();
|
|
259
|
+
animStoreRef.value = null;
|
|
260
|
+
});
|
|
261
|
+
__expose({
|
|
262
|
+
hitTest,
|
|
263
|
+
handleDrilldownClick,
|
|
264
|
+
prepareDrillOut,
|
|
265
|
+
updateHoverOverlay,
|
|
266
|
+
getColorScaleInfo,
|
|
267
|
+
getPlotArea,
|
|
268
|
+
getPointPosition
|
|
269
|
+
});
|
|
270
|
+
return (_ctx, _cache) => {
|
|
271
|
+
return unref(methods).renderer === "svg" ? (openBlock(), createElementBlock("g", {
|
|
272
|
+
key: 0,
|
|
273
|
+
ref: setWrapperRef
|
|
274
|
+
}, [
|
|
275
|
+
createElementVNode("g", { ref: setGroupRef }),
|
|
276
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(treemap).svgContent.value, (el) => {
|
|
277
|
+
return openBlock(), createBlock(unref(VNodeRenderer), {
|
|
278
|
+
key: el.key ?? el.props?.key,
|
|
279
|
+
node: el
|
|
280
|
+
}, null, 8, ["node"]);
|
|
281
|
+
}), 128)),
|
|
282
|
+
createElementVNode("g", { ref: setOverlayRef })
|
|
283
|
+
])) : createCommentVNode("", true);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
var RectRenderer_default = _sfc_main;
|
|
288
|
+
|
|
289
|
+
export { RectRenderer_default };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ChartBar_default } from './chunk-L74BEYTD.mjs';
|
|
2
|
+
import { ChartTreemap_default } from './chunk-HVLFOABV.mjs';
|
|
3
|
+
import { ChartScatter_default } from './chunk-SGLTVJUA.mjs';
|
|
4
|
+
import { ChartRadar_default } from './chunk-F7EK5D6J.mjs';
|
|
5
|
+
import { ChartPolar_default } from './chunk-GIDIMIWE.mjs';
|
|
6
|
+
import { ChartPie_default } from './chunk-GE2Y2FHS.mjs';
|
|
7
|
+
import { ChartLine_default } from './chunk-DDRSIMLE.mjs';
|
|
8
|
+
import { ChartHeatmap_default } from './chunk-PCBF6FSQ.mjs';
|
|
9
|
+
import { ChartCandlestick_default } from './chunk-CW2KYVYO.mjs';
|
|
10
|
+
import { ChartAnnotation_default } from './chunk-ON2FAZTD.mjs';
|
|
11
|
+
import { ChartAccessibility_default } from './chunk-6Z4MZIJI.mjs';
|
|
12
|
+
import { ChartWaterfall_default } from './chunk-GV3CY6CQ.mjs';
|
|
13
|
+
import { ChartStacked_default } from './chunk-WVNDZNMV.mjs';
|
|
14
|
+
import { ChartRange_default } from './chunk-HHZFGQN2.mjs';
|
|
15
|
+
import { ChartOverlap_default } from './chunk-R4AZOPXC.mjs';
|
|
16
|
+
import { ChartGroup_default } from './chunk-3JA5JAHF.mjs';
|
|
17
|
+
import { ChartDecimation_default } from './chunk-TZ23VBFU.mjs';
|
|
18
|
+
import { ChartHover_default } from './chunk-3DINEX6C.mjs';
|
|
19
|
+
import { ChartExportMenu_default } from './chunk-X4NWFK7L.mjs';
|
|
20
|
+
import { ChartDataLabels_default } from './chunk-HH5FUUXX.mjs';
|
|
21
|
+
import { ChartColorLegend_default } from './chunk-CGFPDWB4.mjs';
|
|
22
|
+
import { ChartCaption_default } from './chunk-UOZFNTVQ.mjs';
|
|
23
|
+
import { ChartBreadcrumb_default } from './chunk-QONZ3SCZ.mjs';
|
|
24
|
+
import { ChartAxisGroup_default } from './chunk-MGUGO3RV.mjs';
|
|
25
|
+
import { ChartAxisCategory_default } from './chunk-QJCMFAHB.mjs';
|
|
26
|
+
import { ChartXAxis_default } from './chunk-DXKAPWMO.mjs';
|
|
27
|
+
import { ChartTooltip_default } from './chunk-LP2YESP6.mjs';
|
|
28
|
+
import { ChartTitle_default } from './chunk-2NZ3PUWW.mjs';
|
|
29
|
+
import { ChartResponsive_default } from './chunk-UOMQNZMT.mjs';
|
|
30
|
+
import { ChartReferenceLine_default } from './chunk-CRIB3I3L.mjs';
|
|
31
|
+
import { ChartReferenceBand_default } from './chunk-U6X3GVJ3.mjs';
|
|
32
|
+
import { ChartNavigator_default } from './chunk-JPKNWLLP.mjs';
|
|
33
|
+
import { ChartLegend_default } from './chunk-4SLSYRNY.mjs';
|
|
34
|
+
import { ChartTreemapGroup_default } from './chunk-L73MEG22.mjs';
|
|
35
|
+
import { ChartItem_default } from './chunk-3PJULFR5.mjs';
|
|
36
|
+
import { ChartZoom_default } from './chunk-BSROML7P.mjs';
|
|
37
|
+
import { ChartYAxis_default } from './chunk-JVH4MDKX.mjs';
|
|
38
|
+
import { ChartSvg_default } from './chunk-EWDMF46D.mjs';
|
|
39
|
+
import { ChartCanvas_default } from './chunk-PR6MTWPJ.mjs';
|
|
40
|
+
import { __export } from './chunk-VIHIR2BE.mjs';
|
|
41
|
+
|
|
42
|
+
// src/Chart.parts.ts
|
|
43
|
+
var Chart_parts_exports = {};
|
|
44
|
+
__export(Chart_parts_exports, {
|
|
45
|
+
Accessibility: () => ChartAccessibility_default,
|
|
46
|
+
Annotation: () => ChartAnnotation_default,
|
|
47
|
+
AxisCategory: () => ChartAxisCategory_default,
|
|
48
|
+
AxisGroup: () => ChartAxisGroup_default,
|
|
49
|
+
Bar: () => ChartBar_default,
|
|
50
|
+
Breadcrumb: () => ChartBreadcrumb_default,
|
|
51
|
+
Candlestick: () => ChartCandlestick_default,
|
|
52
|
+
Canvas: () => ChartCanvas_default,
|
|
53
|
+
Caption: () => ChartCaption_default,
|
|
54
|
+
ColorLegend: () => ChartColorLegend_default,
|
|
55
|
+
DataLabels: () => ChartDataLabels_default,
|
|
56
|
+
Decimation: () => ChartDecimation_default,
|
|
57
|
+
ExportMenu: () => ChartExportMenu_default,
|
|
58
|
+
Group: () => ChartGroup_default,
|
|
59
|
+
Heatmap: () => ChartHeatmap_default,
|
|
60
|
+
Hover: () => ChartHover_default,
|
|
61
|
+
Item: () => ChartItem_default,
|
|
62
|
+
Legend: () => ChartLegend_default,
|
|
63
|
+
Line: () => ChartLine_default,
|
|
64
|
+
Navigator: () => ChartNavigator_default,
|
|
65
|
+
Overlap: () => ChartOverlap_default,
|
|
66
|
+
Pie: () => ChartPie_default,
|
|
67
|
+
Polar: () => ChartPolar_default,
|
|
68
|
+
Radar: () => ChartRadar_default,
|
|
69
|
+
Range: () => ChartRange_default,
|
|
70
|
+
ReferenceBand: () => ChartReferenceBand_default,
|
|
71
|
+
ReferenceLine: () => ChartReferenceLine_default,
|
|
72
|
+
Responsive: () => ChartResponsive_default,
|
|
73
|
+
Scatter: () => ChartScatter_default,
|
|
74
|
+
Stacked: () => ChartStacked_default,
|
|
75
|
+
Svg: () => ChartSvg_default,
|
|
76
|
+
Title: () => ChartTitle_default,
|
|
77
|
+
Tooltip: () => ChartTooltip_default,
|
|
78
|
+
Treemap: () => ChartTreemap_default,
|
|
79
|
+
TreemapGroup: () => ChartTreemapGroup_default,
|
|
80
|
+
Waterfall: () => ChartWaterfall_default,
|
|
81
|
+
XAxis: () => ChartXAxis_default,
|
|
82
|
+
YAxis: () => ChartYAxis_default,
|
|
83
|
+
Zoom: () => ChartZoom_default
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
export { Chart_parts_exports };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { registerNavigatorRenderer } from './chunk-
|
|
2
|
-
import { useCustomizationRegistration } from './chunk-
|
|
3
|
-
import { NavigatorRenderer_default } from './chunk-
|
|
1
|
+
import { registerNavigatorRenderer } from './chunk-I2BWSDNR.mjs';
|
|
2
|
+
import { useCustomizationRegistration } from './chunk-ZLD5VNMP.mjs';
|
|
3
|
+
import { NavigatorRenderer_default } from './chunk-GLFXRR7N.mjs';
|
|
4
4
|
import { defineComponent, getCurrentInstance, computed } from 'vue';
|
|
5
5
|
|
|
6
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AXIS_GROUP_REGISTRY_KEY } from './chunk-
|
|
2
|
-
import { useAxisComponentBase } from './chunk-
|
|
1
|
+
import { AXIS_GROUP_REGISTRY_KEY } from './chunk-EHSDNH7K.mjs';
|
|
2
|
+
import { useAxisComponentBase } from './chunk-I2BWSDNR.mjs';
|
|
3
3
|
import { defineComponent, useSlots, computed, provide, renderSlot } from 'vue';
|
|
4
4
|
|
|
5
5
|
var __default__ = { inheritAttrs: false };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { onUnmounted } from 'vue';
|
|
2
|
+
|
|
3
|
+
// src/composables/useControllerLifecycle.ts
|
|
4
|
+
function useControllerLifecycle(controller) {
|
|
5
|
+
onUnmounted(() => {
|
|
6
|
+
controller.destroy();
|
|
7
|
+
});
|
|
8
|
+
return {
|
|
9
|
+
applyPropertyAnimations: (store) => controller.applyPropertyAnimations(store),
|
|
10
|
+
renderFrameCycle: () => controller.renderFrameCycle()
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { useControllerLifecycle };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITEM_COLLECTOR_KEY } from './chunk-
|
|
1
|
+
import { ITEM_COLLECTOR_KEY } from './chunk-4Q3QUNX6.mjs';
|
|
2
2
|
import { defineComponent, inject, ref, provide, onMounted, onUnmounted, renderSlot } from 'vue';
|
|
3
3
|
import { shallowEqual } from '@primeui/chart-core';
|
|
4
4
|
|
|
@@ -45,7 +45,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
registeredIndices.value = [];
|
|
46
46
|
const groupIndex = parentCollector.getNextIndex();
|
|
47
47
|
parentCollector.registerItem(groupIndex, {
|
|
48
|
-
|
|
48
|
+
category: props.label,
|
|
49
49
|
secondaryLabel: props.secondaryLabel,
|
|
50
50
|
value: 0,
|
|
51
51
|
color: props.color,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BarLayerSvg_default } from './chunk-
|
|
2
|
-
import { BarLayerCanvas_default } from './chunk-
|
|
3
|
-
import { CartesianRenderer_default } from './chunk-
|
|
4
|
-
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-
|
|
5
|
-
import { STACKED_CONTEXT_KEY } from './chunk-
|
|
6
|
-
import { useRendererHint, useChartMethods } from './chunk-
|
|
1
|
+
import { BarLayerSvg_default } from './chunk-2TOEQNJ6.mjs';
|
|
2
|
+
import { BarLayerCanvas_default } from './chunk-IFZSHQDZ.mjs';
|
|
3
|
+
import { CartesianRenderer_default } from './chunk-YZQS2YBK.mjs';
|
|
4
|
+
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
|
|
5
|
+
import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
|
|
6
|
+
import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
|
|
7
7
|
import { defineComponent, useSlots, computed, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
|
|
8
8
|
import { resolveAccessor } from '@primeui/chart-core';
|
|
9
9
|
import { getBarAxisHints } from '@primeui/chart-core/series/bar';
|
|
@@ -14,19 +14,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
props: {
|
|
15
15
|
id: {},
|
|
16
16
|
data: {},
|
|
17
|
-
|
|
17
|
+
name: {},
|
|
18
|
+
categoryXField: { type: [
|
|
18
19
|
String,
|
|
19
20
|
Function,
|
|
20
21
|
Array
|
|
21
22
|
] },
|
|
22
|
-
|
|
23
|
+
categoryYField: { type: [
|
|
24
|
+
String,
|
|
25
|
+
Function,
|
|
26
|
+
Array
|
|
27
|
+
] },
|
|
28
|
+
valueXField: { type: [
|
|
29
|
+
String,
|
|
30
|
+
Function,
|
|
31
|
+
Number,
|
|
32
|
+
null,
|
|
33
|
+
Array
|
|
34
|
+
] },
|
|
35
|
+
valueYField: { type: [
|
|
23
36
|
String,
|
|
24
37
|
Function,
|
|
25
38
|
Number,
|
|
26
39
|
null,
|
|
27
40
|
Array
|
|
28
41
|
] },
|
|
29
|
-
name: {},
|
|
30
42
|
color: { type: [
|
|
31
43
|
String,
|
|
32
44
|
Function,
|
|
@@ -54,7 +66,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
66
|
stackId: {},
|
|
55
67
|
barGap: {},
|
|
56
68
|
categoryGap: {},
|
|
57
|
-
orientation: {},
|
|
58
69
|
weightField: { type: [
|
|
59
70
|
String,
|
|
60
71
|
Function,
|
|
@@ -146,13 +157,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
146
157
|
const datasetProps = computed(() => ({
|
|
147
158
|
id: autoId,
|
|
148
159
|
data: props.data,
|
|
149
|
-
|
|
150
|
-
|
|
160
|
+
categoryXField: props.categoryXField,
|
|
161
|
+
categoryYField: props.categoryYField,
|
|
162
|
+
valueXField: props.valueXField,
|
|
163
|
+
valueYField: props.valueYField,
|
|
151
164
|
color: props.color,
|
|
152
165
|
name: props.name,
|
|
153
166
|
order: effectiveOrder,
|
|
154
167
|
stackId,
|
|
155
|
-
orientation: props.orientation,
|
|
156
168
|
xAxisId: props.xAxisId,
|
|
157
169
|
yAxisId: props.yAxisId,
|
|
158
170
|
barGap: props.barGap,
|
|
@@ -188,17 +200,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
188
200
|
if (hasChildren.value) {
|
|
189
201
|
let buildSynthesizedProps2 = function() {
|
|
190
202
|
const items = getItems();
|
|
203
|
+
const horizontal = items.some((it) => it.categoryY != null);
|
|
204
|
+
const axisBinding = horizontal ? {
|
|
205
|
+
categoryYField: (ctx) => ctx.datum.categoryY ?? "",
|
|
206
|
+
valueXField: (ctx) => ctx.datum.valueX
|
|
207
|
+
} : {
|
|
208
|
+
categoryXField: (ctx) => ctx.datum.categoryX ?? "",
|
|
209
|
+
valueYField: (ctx) => ctx.datum.valueY
|
|
210
|
+
};
|
|
191
211
|
const p = {
|
|
192
212
|
id: autoId,
|
|
193
213
|
data: items,
|
|
194
|
-
|
|
195
|
-
valueField: (ctx) => ctx.datum.value,
|
|
214
|
+
...axisBinding,
|
|
196
215
|
color: ((ctx) => ctx.datum.color ?? resolveAccessor(props.color, ctx)),
|
|
197
216
|
borderRadius: (ctx) => ctx.datum.borderRadius,
|
|
198
217
|
borderColor: (ctx) => ctx.datum.borderColor,
|
|
199
218
|
borderStrokeWidth: (ctx) => ctx.datum.borderStrokeWidth,
|
|
200
219
|
name: props.name,
|
|
201
|
-
orientation: props.orientation,
|
|
202
220
|
xAxisId: props.xAxisId,
|
|
203
221
|
yAxisId: props.yAxisId,
|
|
204
222
|
order: effectiveOrder,
|
|
@@ -233,7 +251,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
233
251
|
watch([
|
|
234
252
|
() => props.name,
|
|
235
253
|
() => props.color,
|
|
236
|
-
() => props.
|
|
254
|
+
() => props.categoryXField,
|
|
255
|
+
() => props.categoryYField,
|
|
256
|
+
() => props.valueXField,
|
|
257
|
+
() => props.valueYField,
|
|
237
258
|
() => props.order,
|
|
238
259
|
() => props.barGap,
|
|
239
260
|
() => props.categoryGap,
|