@primeui/vue-chart 0.0.1-alpha.1 → 1.0.0-beta.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.
Files changed (176) hide show
  1. package/dist/CartesianRenderer.rich.spec.d.ts +1 -0
  2. package/dist/Chart.features.spec.d.ts +1 -0
  3. package/dist/Chart.interactions.spec.d.ts +1 -0
  4. package/dist/Chart.pointEvents.spec.d.ts +1 -0
  5. package/dist/Chart.vue.d.ts +5 -1
  6. package/dist/ChartCanvas.mjs +15 -14
  7. package/dist/ChartCanvas.pipeline.spec.d.ts +1 -0
  8. package/dist/ChartCanvas.vue.d.ts +8 -4
  9. package/dist/ChartGroup.sync.spec.d.ts +1 -0
  10. package/dist/ChartLegend.spec.d.ts +1 -0
  11. package/dist/ChartSvg.containers.spec.d.ts +1 -0
  12. package/dist/ChartSvg.declarative.spec.d.ts +1 -0
  13. package/dist/ChartSvg.export-menu.spec.d.ts +1 -0
  14. package/dist/ChartSvg.hover.spec.d.ts +1 -0
  15. package/dist/ChartSvg.mjs +15 -14
  16. package/dist/ChartSvg.renderers.spec.d.ts +1 -0
  17. package/dist/ChartSvg.vue.d.ts +8 -4
  18. package/dist/ColorLegendRenderer.branches.spec.d.ts +1 -0
  19. package/dist/ColorLegendRenderer.spec.d.ts +1 -0
  20. package/dist/LegendRenderer.spec.d.ts +1 -0
  21. package/dist/NavigatorRenderer.spec.d.ts +1 -0
  22. package/dist/RadialHeatmap.rich.spec.d.ts +1 -0
  23. package/dist/TooltipRenderer.spec.d.ts +1 -0
  24. package/dist/{chunk-6S4JMPKC.mjs → chunks/chunk-2NZ3PUWW.mjs} +2 -2
  25. package/dist/{chunk-RRHYGSK6.mjs → chunks/chunk-2TOEQNJ6.mjs} +2 -2
  26. package/dist/{chunk-GX2MK6VT.mjs → chunks/chunk-36DHPBYP.mjs} +25 -23
  27. package/dist/{chunk-RSTIA3KM.mjs → chunks/chunk-3DINEX6C.mjs} +2 -1
  28. package/dist/{chunk-PJVOZSPF.mjs → chunks/chunk-3JA5JAHF.mjs} +2 -2
  29. package/dist/{chunk-KOWFD2AE.mjs → chunks/chunk-3PJULFR5.mjs} +22 -21
  30. package/dist/chunks/chunk-3X27K5XC.mjs +236 -0
  31. package/dist/chunks/chunk-3XOLEGDL.mjs +182 -0
  32. package/dist/{chunk-PSSXPTLQ.mjs → chunks/chunk-4SLSYRNY.mjs} +6 -6
  33. package/dist/chunks/chunk-4VWFG6HM.mjs +86 -0
  34. package/dist/{chunk-44BAFHPK.mjs → chunks/chunk-5HLEKAY2.mjs} +10 -5
  35. package/dist/{chunk-4NJ2PSHV.mjs → chunks/chunk-5ZLVNQ2L.mjs} +7 -4
  36. package/dist/{chunk-O6L3PNFC.mjs → chunks/chunk-6Z4MZIJI.mjs} +2 -2
  37. package/dist/chunks/chunk-7EZEZMGG.mjs +22 -0
  38. package/dist/chunks/chunk-ADAGGXFG.mjs +166 -0
  39. package/dist/{chunk-YRKAI2R2.mjs → chunks/chunk-AKMQHU5T.mjs} +15 -14
  40. package/dist/{chunk-ZRCOVQQM.mjs → chunks/chunk-BSROML7P.mjs} +2 -2
  41. package/dist/{chunk-WYV2MHP6.mjs → chunks/chunk-CGFPDWB4.mjs} +1 -1
  42. package/dist/{chunk-4CRHCZV3.mjs → chunks/chunk-CMJXLIEY.mjs} +125 -9
  43. package/dist/{chunk-42J32DPD.mjs → chunks/chunk-CRIB3I3L.mjs} +1 -1
  44. package/dist/{chunk-WKSQR6L5.mjs → chunks/chunk-CW2KYVYO.mjs} +31 -8
  45. package/dist/{chunk-644ROAHU.mjs → chunks/chunk-DDRSIMLE.mjs} +33 -12
  46. package/dist/{chunk-32XIRBZ7.mjs → chunks/chunk-DXKAPWMO.mjs} +2 -2
  47. package/dist/{chunk-372K2BMN.mjs → chunks/chunk-EKGCPOZJ.mjs} +56 -15
  48. package/dist/{chunk-E2U4W5FW.mjs → chunks/chunk-F7EK5D6J.mjs} +11 -11
  49. package/dist/{chunk-ZHFL3RYO.mjs → chunks/chunk-GE2Y2FHS.mjs} +6 -6
  50. package/dist/{chunk-AAX7FOW3.mjs → chunks/chunk-GIDIMIWE.mjs} +11 -11
  51. package/dist/{chunk-NLXOJSKK.mjs → chunks/chunk-GLFXRR7N.mjs} +29 -5
  52. package/dist/{chunk-W5M3BR6N.mjs → chunks/chunk-GV3CY6CQ.mjs} +1 -1
  53. package/dist/{chunk-CDXF6ZTL.mjs → chunks/chunk-HH5FUUXX.mjs} +1 -1
  54. package/dist/{chunk-RQURY2H3.mjs → chunks/chunk-HHZFGQN2.mjs} +2 -2
  55. package/dist/{chunk-2D3PWFR2.mjs → chunks/chunk-HVLFOABV.mjs} +4 -4
  56. package/dist/chunks/chunk-I2BWSDNR.mjs +832 -0
  57. package/dist/{chunk-MDA22SIZ.mjs → chunks/chunk-IFZSHQDZ.mjs} +2 -2
  58. package/dist/chunks/chunk-IRGQNA5W.mjs +289 -0
  59. package/dist/{chunk-72KINEJ6.mjs → chunks/chunk-IUGMS7ND.mjs} +10 -5
  60. package/dist/{chunk-56NMBNNX.mjs → chunks/chunk-JPKNWLLP.mjs} +3 -3
  61. package/dist/{chunk-XBDNMPF7.mjs → chunks/chunk-JVH4MDKX.mjs} +2 -2
  62. package/dist/chunks/chunk-KNNYJD4D.mjs +14 -0
  63. package/dist/{chunk-AUI5R4DA.mjs → chunks/chunk-L73MEG22.mjs} +2 -2
  64. package/dist/{chunk-K326BBF7.mjs → chunks/chunk-L74BEYTD.mjs} +38 -17
  65. package/dist/{chunk-DYVFVVTO.mjs → chunks/chunk-LJZCE7LQ.mjs} +102 -6
  66. package/dist/{chunk-YGHWUR7K.mjs → chunks/chunk-LP2YESP6.mjs} +1 -1
  67. package/dist/{chunk-WA735Y26.mjs → chunks/chunk-MGUGO3RV.mjs} +1 -1
  68. package/dist/{chunk-DOOXGOOB.mjs → chunks/chunk-OJHEN5FG.mjs} +96 -5
  69. package/dist/{chunk-ZNINPVG7.mjs → chunks/chunk-ON2FAZTD.mjs} +1 -1
  70. package/dist/{chunk-DLUFOM5K.mjs → chunks/chunk-PCBF6FSQ.mjs} +11 -11
  71. package/dist/{chunk-FQTWLAVA.mjs → chunks/chunk-QJCMFAHB.mjs} +1 -1
  72. package/dist/{chunk-62NGBLQ7.mjs → chunks/chunk-QONZ3SCZ.mjs} +1 -1
  73. package/dist/{chunk-HANSF33Z.mjs → chunks/chunk-QOWKMWNO.mjs} +1 -1
  74. package/dist/{chunk-GA4VV5V4.mjs → chunks/chunk-R4AZOPXC.mjs} +1 -1
  75. package/dist/{chunk-5DWO3G33.mjs → chunks/chunk-SGLTVJUA.mjs} +35 -21
  76. package/dist/{chunk-5FTUGKPC.mjs → chunks/chunk-TRGN3ZMM.mjs} +5 -5
  77. package/dist/{chunk-RSAZ7V5Z.mjs → chunks/chunk-TZ23VBFU.mjs} +2 -2
  78. package/dist/{chunk-4UVPCLJ7.mjs → chunks/chunk-U6X3GVJ3.mjs} +1 -1
  79. package/dist/{chunk-J2P5JBHC.mjs → chunks/chunk-UOMQNZMT.mjs} +1 -1
  80. package/dist/{chunk-4THCGGER.mjs → chunks/chunk-UOZFNTVQ.mjs} +2 -2
  81. package/dist/{chunk-TIV2FI4S.mjs → chunks/chunk-WVNDZNMV.mjs} +2 -2
  82. package/dist/{chunk-GFC24374.mjs → chunks/chunk-X4NWFK7L.mjs} +5 -5
  83. package/dist/{chunk-FFBK7Q3W.mjs → chunks/chunk-YI3GLQYF.mjs} +67 -4
  84. package/dist/{chunk-HTZVV6VV.mjs → chunks/chunk-YZQS2YBK.mjs} +8 -6
  85. package/dist/{chunk-PQV55JYI.mjs → chunks/chunk-ZLD5VNMP.mjs} +2 -2
  86. package/dist/components/charts/ChartBar.mjs +13 -13
  87. package/dist/components/charts/ChartCandlestick.mjs +11 -11
  88. package/dist/components/charts/ChartHeatmap.mjs +11 -11
  89. package/dist/components/charts/ChartLine.mjs +12 -11
  90. package/dist/components/charts/ChartPie.mjs +12 -11
  91. package/dist/components/charts/ChartPolar.mjs +13 -11
  92. package/dist/components/charts/ChartRadar.mjs +13 -11
  93. package/dist/components/charts/ChartScatter.mjs +12 -11
  94. package/dist/components/charts/ChartTreemap.mjs +10 -10
  95. package/dist/components/containers/ChartDecimation.mjs +6 -6
  96. package/dist/components/containers/ChartGroup.mjs +4 -4
  97. package/dist/components/containers/ChartOverlap.mjs +5 -5
  98. package/dist/components/containers/ChartRange.mjs +6 -6
  99. package/dist/components/containers/ChartStacked.mjs +6 -6
  100. package/dist/components/containers/ChartWaterfall.mjs +5 -5
  101. package/dist/components/customizations/ChartAccessibility.mjs +9 -9
  102. package/dist/components/customizations/ChartAnnotation.mjs +5 -5
  103. package/dist/components/customizations/ChartAxisCategory.mjs +3 -3
  104. package/dist/components/customizations/ChartAxisGroup.mjs +3 -3
  105. package/dist/components/customizations/ChartBreadcrumb.mjs +6 -6
  106. package/dist/components/customizations/ChartCaption.mjs +9 -9
  107. package/dist/components/customizations/ChartColorLegend.mjs +9 -9
  108. package/dist/components/customizations/ChartDataLabels.mjs +9 -9
  109. package/dist/components/customizations/ChartExportMenu.mjs +9 -9
  110. package/dist/components/customizations/ChartHover.mjs +9 -9
  111. package/dist/components/customizations/ChartLegend.mjs +9 -9
  112. package/dist/components/customizations/ChartNavigator.mjs +10 -10
  113. package/dist/components/customizations/ChartReferenceBand.mjs +5 -5
  114. package/dist/components/customizations/ChartReferenceLine.mjs +5 -5
  115. package/dist/components/customizations/ChartResponsive.mjs +9 -9
  116. package/dist/components/customizations/ChartTitle.mjs +9 -9
  117. package/dist/components/customizations/ChartTooltip.mjs +9 -9
  118. package/dist/components/customizations/ChartXAxis.mjs +10 -10
  119. package/dist/components/customizations/ChartYAxis.mjs +10 -10
  120. package/dist/components/customizations/ChartZoom.mjs +9 -9
  121. package/dist/components/items/ChartItem.mjs +3 -3
  122. package/dist/components/items/ChartTreemapGroup.mjs +5 -5
  123. package/dist/components/renderers/CartesianRenderer.mjs +9 -9
  124. package/dist/components/renderers/CartesianRenderer.vue.d.ts +2 -0
  125. package/dist/components/renderers/ColorLegendRenderer.mjs +2 -2
  126. package/dist/components/renderers/LegendRenderer.mjs +3 -3
  127. package/dist/components/renderers/NavigatorRenderer.mjs +5 -5
  128. package/dist/components/renderers/RadialRenderer.mjs +9 -9
  129. package/dist/components/renderers/RadialRenderer.vue.d.ts +1 -1
  130. package/dist/components/renderers/RectRenderer.mjs +9 -9
  131. package/dist/components/renderers/RectRenderer.vue.d.ts +1 -1
  132. package/dist/components/renderers/TooltipRenderer.mjs +4 -4
  133. package/dist/components/renderers/layers/BarLayerCanvas.mjs +10 -10
  134. package/dist/components/renderers/layers/BarLayerSvg.mjs +10 -10
  135. package/dist/components/renderers/layers/CandlestickLayer.mjs +9 -9
  136. package/dist/components/renderers/layers/HeatmapLayer.mjs +9 -9
  137. package/dist/components/renderers/layers/LineLayer.mjs +10 -9
  138. package/dist/components/renderers/layers/PieLayer.mjs +7 -9
  139. package/dist/components/renderers/layers/PolarLayer.mjs +8 -9
  140. package/dist/components/renderers/layers/RadarLayer.mjs +8 -9
  141. package/dist/components/renderers/layers/ScatterLayer.mjs +10 -9
  142. package/dist/composables/index.d.ts +0 -8
  143. package/dist/composables/useAnimationProps.d.ts +2 -5
  144. package/dist/composables/useChartSync.spec.d.ts +1 -0
  145. package/dist/composables/useChartSyncCoordinator.spec.d.ts +1 -0
  146. package/dist/composables/useHeatmapRenderer.spec.d.ts +1 -0
  147. package/dist/composables/usePolarRenderer.spec.d.ts +1 -0
  148. package/dist/composables/useResponsiveConfig.d.ts +1 -1
  149. package/dist/composables/useResponsiveDimensions.spec.d.ts +1 -0
  150. package/dist/composables/useTreemapRenderer.spec.d.ts +1 -0
  151. package/dist/context/ChartContext.d.ts +1 -1
  152. package/dist/index.d.ts +2 -1
  153. package/dist/index.mjs +69 -66
  154. package/dist/namespace.mjs +69 -112
  155. package/dist/types/animation.types.d.ts +2 -0
  156. package/dist/types/bar.types.d.ts +2 -1
  157. package/dist/types/candlestick.types.d.ts +0 -1
  158. package/dist/types/heatmap.types.d.ts +0 -1
  159. package/dist/types/index.d.ts +1 -1
  160. package/dist/types/item.types.d.ts +0 -1
  161. package/dist/types/line.types.d.ts +4 -1
  162. package/dist/types/scatter.types.d.ts +3 -2
  163. package/dist/useChartContext.spec.d.ts +1 -0
  164. package/package.json +7 -7
  165. package/dist/chunk-54DLUFIA.mjs +0 -96
  166. package/dist/chunk-CQHNYT2V.mjs +0 -1692
  167. package/dist/chunk-JKK3D33U.mjs +0 -64
  168. package/dist/chunk-UO27BCRL.mjs +0 -86
  169. package/dist/chunk-VWABO23U.mjs +0 -143
  170. /package/dist/{chunk-FZ3PZ66C.mjs → chunks/chunk-4Q3QUNX6.mjs} +0 -0
  171. /package/dist/{chunk-5SRBQVU5.mjs → chunks/chunk-EHSDNH7K.mjs} +0 -0
  172. /package/dist/{chunk-LD57I4SY.mjs → chunks/chunk-H4HLHGUW.mjs} +0 -0
  173. /package/dist/{chunk-TEOO4OLV.mjs → chunks/chunk-L6N5IYAJ.mjs} +0 -0
  174. /package/dist/{chunk-E4ROAOPT.mjs → chunks/chunk-S4YR4YK7.mjs} +0 -0
  175. /package/dist/{chunk-7P6ASYW6.mjs → chunks/chunk-VIHIR2BE.mjs} +0 -0
  176. /package/dist/{chunk-J43KLCZF.mjs → chunks/chunk-ZH4A4L6W.mjs} +0 -0
@@ -1,8 +1,118 @@
1
- import { useCartesianFrame, useLineRenderer, useCartesianFrameRegistration } from './chunk-CQHNYT2V.mjs';
2
- import { useChartMethods, useChartState, useChartHover } from './chunk-HANSF33Z.mjs';
3
- import { defineComponent, computed, h, unref, openBlock, createElementBlock, createCommentVNode } from 'vue';
4
- import { resolvePointLabels } from '@primeui/chart-core';
1
+ import { useControllerLifecycle } from './chunk-KNNYJD4D.mjs';
2
+ import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-I2BWSDNR.mjs';
3
+ import { useChartMethods, useChartState, useChartHover } from './chunk-QOWKMWNO.mjs';
4
+ import { defineComponent, computed, h, unref, openBlock, createElementBlock, createCommentVNode, ref, shallowRef, watch } from 'vue';
5
+ import { resolvePointLabels, safeRenderProp } from '@primeui/chart-core';
6
+ import { createLineRendererCanvas } from '@primeui/chart-core/series/line/controller-canvas';
7
+ import { createLineRendererSvg } from '@primeui/chart-core/series/line/controller-svg';
5
8
 
9
+ function useLineRenderer(options) {
10
+ const {
11
+ chartArea,
12
+ renderer,
13
+ canvasEl,
14
+ datasets,
15
+ datasetVisibility,
16
+ hover,
17
+ hoverConfig,
18
+ chartId,
19
+ width,
20
+ height,
21
+ categoryScale,
22
+ valueScales,
23
+ firstValueAxisId,
24
+ axisIdProp,
25
+ orientation,
26
+ lineStackBasesMap,
27
+ lineTransformedValues,
28
+ rangeGroups,
29
+ features,
30
+ compositor,
31
+ layoutData,
32
+ dir,
33
+ theme
34
+ } = options;
35
+ const groupRef = ref(null);
36
+ const controller = renderer === "canvas" ? createLineRendererCanvas() : createLineRendererSvg();
37
+ const layoutCacheRef = shallowRef(/* @__PURE__ */ new Map());
38
+ const liveLayoutsRef = shallowRef(controller.renderedLayouts);
39
+ const renderPropsCacheRef = shallowRef(/* @__PURE__ */ new Map());
40
+ const markerOverlaysRef = ref([]);
41
+ controller.onFrame = () => {
42
+ markerOverlaysRef.value = controller.markerOverlays;
43
+ liveLayoutsRef.value = controller.renderedLayouts;
44
+ };
45
+ watch(
46
+ [datasets, datasetVisibility, chartArea, categoryScale, valueScales, firstValueAxisId, axisIdProp, lineStackBasesMap, lineTransformedValues, rangeGroups, features, groupRef, width, height, dir, theme],
47
+ () => {
48
+ if (renderer === "svg" && !groupRef.value) return;
49
+ controller.update({
50
+ datasets: datasets.value,
51
+ datasetVisibility: datasetVisibility.value,
52
+ chartArea: chartArea.value,
53
+ chartId,
54
+ width: width.value,
55
+ height: height.value,
56
+ renderer,
57
+ categoryScale: categoryScale.value,
58
+ valueXScales: layoutData?.value?.valueXScales,
59
+ valueScales: valueScales.value,
60
+ firstValueAxisId: firstValueAxisId.value,
61
+ axisIdProp: axisIdProp.value,
62
+ orientation: orientation?.value,
63
+ lineStackBasesMap: lineStackBasesMap.value,
64
+ lineTransformedValues: lineTransformedValues.value,
65
+ groupedDataOverride: layoutData?.value?.groupedDataOverride,
66
+ layoutData: layoutData?.value ?? null,
67
+ rangeGroups: rangeGroups.value,
68
+ features: features.value,
69
+ hover: hover.value,
70
+ hoverConfig: hoverConfig.value,
71
+ compositor,
72
+ canvasEl: canvasEl.value,
73
+ svgGroup: groupRef.value,
74
+ labelConfig: options.labelConfig?.value,
75
+ dir: dir.value,
76
+ theme: theme.value
77
+ });
78
+ layoutCacheRef.value = controller.layouts;
79
+ liveLayoutsRef.value = controller.renderedLayouts;
80
+ renderPropsCacheRef.value = controller.renderProps;
81
+ markerOverlaysRef.value = controller.markerOverlays;
82
+ },
83
+ { immediate: true, flush: "post" }
84
+ );
85
+ watch(hover, () => {
86
+ controller.applyHover(hover.value);
87
+ });
88
+ const { applyPropertyAnimations, renderFrameCycle } = useControllerLifecycle(controller);
89
+ function hitTest(x, y) {
90
+ return controller.hitTest(x, y);
91
+ }
92
+ function findAllNearest(x, y) {
93
+ return controller.findAllNearest(x, y);
94
+ }
95
+ function syncWithAnimatedScale(categoryScale2, valueScales2) {
96
+ controller.syncWithAnimatedScale(categoryScale2, valueScales2);
97
+ markerOverlaysRef.value = controller.markerOverlays;
98
+ liveLayoutsRef.value = controller.renderedLayouts;
99
+ }
100
+ return {
101
+ groupRef,
102
+ hitTest,
103
+ findAllNearest,
104
+ lineLayouts: layoutCacheRef,
105
+ liveLayouts: liveLayoutsRef,
106
+ lineRenderProps: renderPropsCacheRef,
107
+ subscribeTipPositions: (cb) => controller.subscribeTipPositions(cb),
108
+ markerOverlays: markerOverlaysRef,
109
+ syncWithAnimatedScale,
110
+ applyPropertyAnimations,
111
+ renderFrameCycle
112
+ };
113
+ }
114
+
115
+ // src/components/renderers/layers/LineLayer.vue
6
116
  var _hoisted_1 = ["clip-path"];
7
117
  var _sfc_main = /* @__PURE__ */ defineComponent({
8
118
  __name: "LineLayer",
@@ -27,6 +137,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
27
137
  valueScales: computed(() => frame.layoutData.value?.valueScales),
28
138
  firstValueAxisId: computed(() => frame.layoutData.value?.valueScales?.keys().next().value ?? "default"),
29
139
  axisIdProp: computed(() => frame.layoutData.value?.orientation === "horizontal" ? "xAxisId" : "yAxisId"),
140
+ orientation: computed(() => frame.layoutData.value?.orientation ?? "vertical"),
30
141
  lineStackBasesMap: computed(() => frame.layoutData.value?.lineStackBasesMap),
31
142
  lineTransformedValues: computed(() => frame.layoutData.value?.lineTransformedValues),
32
143
  rangeGroups: computed(() => frame.layoutData.value?.rangeGroups),
@@ -42,14 +153,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
42
153
  if (methods.renderer !== "svg" || !frame.layoutData.value || !lc?.render) return [];
43
154
  const visibility = state.value.datasetVisibility;
44
155
  const nodes = [];
45
- for (const [dsId, lineLayout] of line.lineLayouts.value) {
156
+ for (const [dsId, lineLayout] of line.liveLayouts.value) {
46
157
  if (visibility?.get(dsId) === false) continue;
47
158
  const lineProps = line.lineRenderProps.value.get(dsId);
48
159
  const seriesColor = typeof lineProps?.color === "string" ? lineProps.color : typeof lineLayout.lineColor === "string" ? lineLayout.lineColor : lc.color ?? "";
49
160
  const dsTotal = lineLayout.visiblePoints.reduce((sum, pt) => sum + Math.abs(pt.value ?? 0), 0);
50
161
  const resolved = resolvePointLabels(lineLayout.visiblePoints, seriesColor, dsTotal, lc, lineProps?.name);
51
162
  for (const lbl of resolved) {
52
- const result = lc.render({
163
+ const result = safeRenderProp(() => lc.render({
53
164
  index: lbl.dataIndex,
54
165
  value: lbl.value,
55
166
  percentage: lbl.percentage,
@@ -58,7 +169,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
58
169
  color: lbl.color,
59
170
  x: lbl.x,
60
171
  y: lbl.y
61
- });
172
+ }), "data label");
62
173
  if (result != null) {
63
174
  nodes.push(h("g", {
64
175
  key: `line-${dsId}-${lbl.dataIndex}`,
@@ -98,7 +209,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
98
209
  snapX: lnHit.x,
99
210
  snapY: lnHit.y,
100
211
  formattedValue: fmtVal,
101
- cursorFormattedValue: ""
212
+ cursorFormattedValue: "",
213
+ independentIsCategory: lnHit.independentIsCategory,
214
+ xValue: lnHit.xValue,
215
+ yValue: lnHit.yValue,
216
+ xAxisTitle: lnHit.xAxisTitle,
217
+ yAxisTitle: lnHit.yAxisTitle
102
218
  };
103
219
  },
104
220
  findAllNearest: (x, y) => line.findAllNearest(x, y),
@@ -126,7 +242,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
126
242
  }
127
243
  });
128
244
  return (_ctx, _cache) => {
129
- return unref(methods).renderer === "svg" && unref(line).hasLineData.value ? (openBlock(), createElementBlock("g", {
245
+ return unref(methods).renderer === "svg" ? (openBlock(), createElementBlock("g", {
130
246
  key: 0,
131
247
  ref: (el) => {
132
248
  unref(line).groupRef.value = el;
@@ -1,4 +1,4 @@
1
- import { useChartMethods } from './chunk-HANSF33Z.mjs';
1
+ import { useChartMethods } from './chunk-QOWKMWNO.mjs';
2
2
  import { defineComponent, computed, onMounted, watch, onUnmounted } from 'vue';
3
3
 
4
4
  var referenceLineIdCounter = 0;
@@ -1,9 +1,9 @@
1
- import { CandlestickLayer_default } from './chunk-FFBK7Q3W.mjs';
2
- import { CartesianRenderer_default } from './chunk-HTZVV6VV.mjs';
3
- import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-CQHNYT2V.mjs';
4
- import { useRendererHint, useChartMethods } from './chunk-HANSF33Z.mjs';
1
+ import { CandlestickLayer_default } from './chunk-YI3GLQYF.mjs';
2
+ import { CartesianRenderer_default } from './chunk-YZQS2YBK.mjs';
3
+ import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
4
+ import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
5
5
  import { defineComponent, useSlots, computed, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
6
- import { candlestickRenderer } from '@primeui/chart-core';
6
+ import { candlestickRenderer } from '@primeui/chart-core/series/candlestick';
7
7
 
8
8
  var candlestickIdCounter = 0;
9
9
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -12,10 +12,28 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  id: {},
13
13
  name: {},
14
14
  data: {},
15
- timeField: { type: [
15
+ categoryXField: { type: [
16
+ String,
17
+ Function,
18
+ Array
19
+ ] },
20
+ categoryYField: { type: [
21
+ String,
22
+ Function,
23
+ Array
24
+ ] },
25
+ valueXField: { type: [
26
+ String,
27
+ Function,
28
+ Number,
29
+ null,
30
+ Array
31
+ ] },
32
+ valueYField: { type: [
16
33
  String,
17
34
  Function,
18
35
  Number,
36
+ null,
19
37
  Array
20
38
  ] },
21
39
  openField: { type: [
@@ -136,7 +154,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
136
154
  const datasetProps = computed(() => ({
137
155
  id: autoId,
138
156
  data: props.data,
139
- timeField: props.timeField,
157
+ categoryXField: props.categoryXField,
158
+ categoryYField: props.categoryYField,
159
+ valueXField: props.valueXField,
160
+ valueYField: props.valueYField,
140
161
  openField: props.openField,
141
162
  highField: props.highField,
142
163
  lowField: props.lowField,
@@ -172,10 +193,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
172
193
  if (hasChildren.value) {
173
194
  let buildSynthesizedProps2 = function() {
174
195
  const items = getItems();
196
+ const horizontal = items.some((it) => it.categoryY != null);
197
+ const axisBinding = horizontal ? { categoryYField: (ctx) => ctx.datum.categoryY ?? "" } : { categoryXField: (ctx) => ctx.datum.categoryX ?? "" };
175
198
  return {
176
199
  id: autoId,
177
200
  data: items,
178
- timeField: (ctx) => ctx.datum.time ?? ctx.datum.label ?? "",
201
+ ...axisBinding,
179
202
  openField: (ctx) => ctx.datum.open ?? 0,
180
203
  highField: (ctx) => ctx.datum.high ?? 0,
181
204
  lowField: (ctx) => ctx.datum.low ?? 0,
@@ -1,10 +1,10 @@
1
- import { CartesianRenderer_default } from './chunk-HTZVV6VV.mjs';
2
- import { LineLayer_default } from './chunk-4CRHCZV3.mjs';
3
- import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-CQHNYT2V.mjs';
4
- import { STACKED_CONTEXT_KEY, RANGE_CONTEXT_KEY } from './chunk-TEOO4OLV.mjs';
5
- import { useRendererHint, useChartMethods } from './chunk-HANSF33Z.mjs';
1
+ import { CartesianRenderer_default } from './chunk-YZQS2YBK.mjs';
2
+ import { LineLayer_default } from './chunk-CMJXLIEY.mjs';
3
+ import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
4
+ import { STACKED_CONTEXT_KEY, RANGE_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
5
+ import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
6
6
  import { defineComponent, useSlots, computed, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
7
- import { lineRenderer } from '@primeui/chart-core';
7
+ import { lineRenderer } from '@primeui/chart-core/series/line';
8
8
 
9
9
  var lineIdCounter = 0;
10
10
  var _sfc_main = /* @__PURE__ */ defineComponent({
@@ -13,12 +13,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  id: {},
14
14
  boost: { type: [Boolean, String] },
15
15
  data: {},
16
- categoryField: { type: [
16
+ categoryXField: { type: [
17
17
  String,
18
18
  Function,
19
19
  Array
20
20
  ] },
21
- valueField: { type: [
21
+ categoryYField: { type: [
22
+ String,
23
+ Function,
24
+ Array
25
+ ] },
26
+ valueXField: { type: [
27
+ String,
28
+ Function,
29
+ Number,
30
+ null,
31
+ Array
32
+ ] },
33
+ valueYField: { type: [
22
34
  String,
23
35
  Function,
24
36
  Number,
@@ -193,8 +205,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
193
205
  const p = {
194
206
  id: autoId,
195
207
  data: props.data,
196
- categoryField: props.categoryField,
197
- valueField: props.valueField,
208
+ categoryXField: props.categoryXField,
209
+ categoryYField: props.categoryYField,
210
+ valueXField: props.valueXField,
211
+ valueYField: props.valueYField,
198
212
  color: props.color,
199
213
  name: props.name,
200
214
  order: effectiveOrder,
@@ -254,11 +268,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
254
268
  if (hasChildren.value) {
255
269
  let buildSynthesizedProps2 = function() {
256
270
  const items = getItems();
271
+ const horizontal = items.some((it) => it.categoryY != null);
272
+ const axisBinding = horizontal ? {
273
+ categoryYField: (ctx) => ctx.datum.categoryY ?? "",
274
+ valueXField: (ctx) => ctx.datum.valueX
275
+ } : {
276
+ categoryXField: (ctx) => ctx.datum.categoryX ?? "",
277
+ valueYField: (ctx) => ctx.datum.valueY
278
+ };
257
279
  return {
258
280
  id: autoId,
259
281
  data: items,
260
- categoryField: (ctx) => ctx.datum.label ?? "",
261
- valueField: (ctx) => ctx.datum.value,
282
+ ...axisBinding,
262
283
  pointColors: items.some((i) => i.color != null) ? items.map((i) => i.color) : void 0,
263
284
  name: props.name,
264
285
  color: props.color,
@@ -1,5 +1,5 @@
1
- import { AXIS_GROUP_REGISTRY_KEY } from './chunk-5SRBQVU5.mjs';
2
- import { useAxisComponentBase } from './chunk-CQHNYT2V.mjs';
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 };
@@ -1,11 +1,11 @@
1
- import { LegendRenderer_default } from './chunk-5FTUGKPC.mjs';
2
- import { ColorLegendRenderer_default } from './chunk-E4ROAOPT.mjs';
3
- import { TooltipRenderer_default } from './chunk-GX2MK6VT.mjs';
4
- import { useResponsiveDimensions, useAnimationProps, useDrilldownState, useResponsiveConfig, provideFamilyRenderers, provideChartLayers, useZoomPan, useKeyboardNavigation, useChartSync, useChartContext, useChartSyncCoordinator } from './chunk-CQHNYT2V.mjs';
5
- import { NavigatorRenderer_default } from './chunk-NLXOJSKK.mjs';
6
- import { provideChartContext } from './chunk-HANSF33Z.mjs';
7
- import { CHART_SYNC_INFO_KEY } from './chunk-LD57I4SY.mjs';
8
- import { TOOLTIP_CONTEXT_KEY } from './chunk-FZ3PZ66C.mjs';
1
+ import { LegendRenderer_default } from './chunk-TRGN3ZMM.mjs';
2
+ import { ColorLegendRenderer_default } from './chunk-S4YR4YK7.mjs';
3
+ import { TooltipRenderer_default } from './chunk-36DHPBYP.mjs';
4
+ import { useResponsiveDimensions, useAnimationProps, useDrilldownState, useResponsiveConfig, provideFamilyRenderers, provideChartLayers, useZoomPan, useKeyboardNavigation, useChartSync, useChartContext, useChartSyncCoordinator } from './chunk-I2BWSDNR.mjs';
5
+ import { NavigatorRenderer_default } from './chunk-GLFXRR7N.mjs';
6
+ import { provideChartContext } from './chunk-QOWKMWNO.mjs';
7
+ import { CHART_SYNC_INFO_KEY } from './chunk-H4HLHGUW.mjs';
8
+ import { TOOLTIP_CONTEXT_KEY } from './chunk-4Q3QUNX6.mjs';
9
9
  import { defineComponent, computed, ref, onMounted, watch, onBeforeUnmount, toRef, shallowRef, provide, nextTick, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, renderSlot, unref, createBlock, resolveDynamicComponent, withCtx, createTextVNode, Fragment, renderList, withModifiers } from 'vue';
10
10
  import { resolveTheme, ChartStateController, buildChartDataTable, themeToCssVars, configureCanvasHiDPI, computeCrosshairLayout, buildAnnotationContext, DEFAULT_FONT_FAMILY, renderAnnotationsCanvas, resolveDirFromElement, observeDocumentDir } from '@primeui/chart-core';
11
11
  import { verifyLicense } from '@primeui/license-manager';
@@ -224,10 +224,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
224
224
  locale: {},
225
225
  animation: { type: [Object, Boolean] },
226
226
  animations: {},
227
- transitions: {},
228
227
  renderer: {}
229
228
  },
230
- emits: ["resize"],
229
+ emits: [
230
+ "resize",
231
+ "point-click",
232
+ "point-hover"
233
+ ],
231
234
  setup(__props, { expose: __expose, emit: __emit }) {
232
235
  const VNodeRenderer = defineComponent({
233
236
  props: { node: {
@@ -312,8 +315,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
312
315
  });
313
316
  useAnimationProps(() => ({
314
317
  animation: props.animation,
315
- animations: props.animations,
316
- transitions: props.transitions
318
+ animations: props.animations
317
319
  }), methods);
318
320
  const containerRef = ref(null);
319
321
  const mainCanvasRef = ref(null);
@@ -588,11 +590,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
588
590
  processMouseMove(evt);
589
591
  });
590
592
  }
593
+ function resolvePointEvent(hit) {
594
+ const index = hit.index ?? 0;
595
+ const data = state.value.datasets.get(hit.datasetId)?.props?.data;
596
+ return {
597
+ datasetId: hit.datasetId,
598
+ index,
599
+ label: hit.label ?? "",
600
+ value: hit.value ?? 0,
601
+ color: hit.color ?? "",
602
+ datum: data?.[index]
603
+ };
604
+ }
605
+ function hitForPointEvent(x, y) {
606
+ try {
607
+ return rendererDelegate.value?.hitTest(x, y) ?? null;
608
+ } catch {
609
+ return null;
610
+ }
611
+ }
612
+ let _lastHoverKey = null;
591
613
  function processMouseMove(e) {
592
614
  if (zoomIsDragging.value) return;
593
615
  const rect = containerRef.value?.getBoundingClientRect();
594
616
  if (!rect) return;
595
- coreMouseMove(e.clientX - rect.left, e.clientY - rect.top);
617
+ const x = e.clientX - rect.left;
618
+ const y = e.clientY - rect.top;
619
+ coreMouseMove(x, y);
620
+ const hit = hitForPointEvent(x, y);
621
+ const key = hit ? `${hit.datasetId}:${hit.index}` : null;
622
+ if (key === _lastHoverKey) return;
623
+ _lastHoverKey = key;
624
+ emit("point-hover", hit ? resolvePointEvent(hit) : null);
596
625
  }
597
626
  function handleMouseMoveWithKeyboard(e) {
598
627
  keyboardNav.onMouseMove();
@@ -614,12 +643,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
614
643
  }
615
644
  function handleMouseLeave() {
616
645
  coreMouseLeave();
646
+ if (_lastHoverKey !== null) {
647
+ _lastHoverKey = null;
648
+ emit("point-hover", null);
649
+ }
617
650
  }
618
651
  function handleClick(e) {
619
- if (!hoverConfig.value && !isRect.value && !drilldownState.enabled.value) return;
620
652
  const rect = containerRef.value?.getBoundingClientRect();
621
653
  if (!rect) return;
622
- coreClick(e.clientX - rect.left, e.clientY - rect.top);
654
+ const x = e.clientX - rect.left;
655
+ const y = e.clientY - rect.top;
656
+ const hit = hitForPointEvent(x, y);
657
+ if (hit) emit("point-click", resolvePointEvent(hit));
658
+ if (!hoverConfig.value && !isRect.value && !drilldownState.enabled.value) return;
659
+ coreClick(x, y);
623
660
  }
624
661
  function handleLegendClick(item) {
625
662
  coreLegendClick(item);
@@ -994,6 +1031,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
994
1031
  height: unref(height),
995
1032
  "canvas-el": mainCanvasRef.value,
996
1033
  "zoom-state": unref(zoomState),
1034
+ "is-dragging": unref(zoomIsDragging),
997
1035
  "adaptive-data-label-font-size": unref(adaptive).dataLabelFontSize,
998
1036
  "adaptive-data-label-rotation": unref(adaptive).dataLabelRotation,
999
1037
  "rule-overrides": unref(ruleOverrides)
@@ -1003,6 +1041,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1003
1041
  "height",
1004
1042
  "canvas-el",
1005
1043
  "zoom-state",
1044
+ "is-dragging",
1006
1045
  "adaptive-data-label-font-size",
1007
1046
  "adaptive-data-label-rotation",
1008
1047
  "rule-overrides"
@@ -1142,6 +1181,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1142
1181
  "canvas-el": mainCanvasRef.value,
1143
1182
  "overlay-canvas-el": overlayCanvasRef.value,
1144
1183
  "zoom-state": unref(zoomState),
1184
+ "is-dragging": unref(zoomIsDragging),
1145
1185
  "adaptive-data-label-font-size": unref(adaptive).dataLabelFontSize,
1146
1186
  "adaptive-data-label-rotation": unref(adaptive).dataLabelRotation,
1147
1187
  "rule-overrides": unref(ruleOverrides)
@@ -1152,6 +1192,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1152
1192
  "canvas-el",
1153
1193
  "overlay-canvas-el",
1154
1194
  "zoom-state",
1195
+ "is-dragging",
1155
1196
  "adaptive-data-label-font-size",
1156
1197
  "adaptive-data-label-rotation",
1157
1198
  "rule-overrides"
@@ -1,8 +1,8 @@
1
- import { RadarLayer_default } from './chunk-DOOXGOOB.mjs';
2
- import { RadialRenderer_default } from './chunk-4NJ2PSHV.mjs';
3
- import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-CQHNYT2V.mjs';
4
- import { STACKED_CONTEXT_KEY } from './chunk-TEOO4OLV.mjs';
5
- import { useRendererHint, useChartMethods } from './chunk-HANSF33Z.mjs';
1
+ import { RadarLayer_default } from './chunk-OJHEN5FG.mjs';
2
+ import { RadialRenderer_default } from './chunk-5ZLVNQ2L.mjs';
3
+ import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
4
+ import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
5
+ import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
6
6
  import { defineComponent, useSlots, computed, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
7
7
 
8
8
  var radarIdCounter = 0;
@@ -11,12 +11,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  props: {
12
12
  id: {},
13
13
  data: {},
14
- categoryField: { type: [
14
+ categoryXField: { type: [
15
15
  String,
16
16
  Function,
17
17
  Array
18
18
  ] },
19
- valueField: { type: [
19
+ valueYField: { type: [
20
20
  String,
21
21
  Function,
22
22
  Number,
@@ -158,8 +158,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
158
158
  const datasetProps = computed(() => ({
159
159
  id: autoId,
160
160
  data: props.data,
161
- categoryField: props.categoryField,
162
- valueField: props.valueField,
161
+ categoryXField: props.categoryXField,
162
+ valueYField: props.valueYField,
163
163
  color: props.color,
164
164
  name: props.name,
165
165
  fillOpacity: props.fillOpacity,
@@ -204,8 +204,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
204
204
  return {
205
205
  id: autoId,
206
206
  data: getItems(),
207
- categoryField: (ctx) => ctx.datum.label ?? "",
208
- valueField: (ctx) => ctx.datum.value,
207
+ categoryXField: (ctx) => ctx.datum.categoryX ?? "",
208
+ valueYField: (ctx) => ctx.datum.valueY,
209
209
  name: props.name,
210
210
  color: props.color,
211
211
  fillOpacity: props.fillOpacity,
@@ -1,8 +1,8 @@
1
- import { PieLayer_default } from './chunk-UO27BCRL.mjs';
2
- import { RadialRenderer_default } from './chunk-4NJ2PSHV.mjs';
3
- import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-CQHNYT2V.mjs';
4
- import { STACKED_CONTEXT_KEY } from './chunk-TEOO4OLV.mjs';
5
- import { useRendererHint, useChartMethods } from './chunk-HANSF33Z.mjs';
1
+ import { PieLayer_default } from './chunk-3XOLEGDL.mjs';
2
+ import { RadialRenderer_default } from './chunk-5ZLVNQ2L.mjs';
3
+ import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
4
+ import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
5
+ import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
6
6
  import { defineComponent, useSlots, computed, useId, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
7
7
  import { resolveAccessor } from '@primeui/chart-core';
8
8
 
@@ -146,7 +146,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
146
146
  id: autoId,
147
147
  data: items,
148
148
  valueField: (ctx) => ctx.datum.value,
149
- categoryField: (ctx) => ctx.datum.label ?? "",
149
+ categoryField: (ctx) => ctx.datum.category ?? "",
150
150
  color: ((ctx) => ctx.datum.color ?? resolveAccessor(props.color, ctx)),
151
151
  // Pie-level props pass through
152
152
  innerRadius: props.innerRadius,
@@ -1,8 +1,8 @@
1
- import { PolarLayer_default } from './chunk-JKK3D33U.mjs';
2
- import { RadialRenderer_default } from './chunk-4NJ2PSHV.mjs';
3
- import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-CQHNYT2V.mjs';
4
- import { STACKED_CONTEXT_KEY } from './chunk-TEOO4OLV.mjs';
5
- import { useRendererHint, useChartMethods } from './chunk-HANSF33Z.mjs';
1
+ import { PolarLayer_default } from './chunk-ADAGGXFG.mjs';
2
+ import { RadialRenderer_default } from './chunk-5ZLVNQ2L.mjs';
3
+ import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-I2BWSDNR.mjs';
4
+ import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
5
+ import { useRendererHint, useChartMethods } from './chunk-QOWKMWNO.mjs';
6
6
  import { defineComponent, useSlots, computed, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
7
7
  import { resolveAccessor } from '@primeui/chart-core';
8
8
 
@@ -12,12 +12,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  props: {
13
13
  id: {},
14
14
  data: {},
15
- categoryField: { type: [
15
+ categoryXField: { type: [
16
16
  String,
17
17
  Function,
18
18
  Array
19
19
  ] },
20
- valueField: { type: [
20
+ valueYField: { type: [
21
21
  String,
22
22
  Function,
23
23
  Number,
@@ -118,8 +118,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
118
118
  const datasetProps = computed(() => ({
119
119
  id: autoId,
120
120
  data: props.data,
121
- categoryField: props.categoryField,
122
- valueField: props.valueField,
121
+ categoryXField: props.categoryXField,
122
+ valueYField: props.valueYField,
123
123
  color: props.color,
124
124
  name: props.name,
125
125
  order: effectiveOrder,
@@ -150,8 +150,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
150
150
  return {
151
151
  id: autoId,
152
152
  data: getItems(),
153
- categoryField: (ctx) => ctx.datum.label ?? "",
154
- valueField: (ctx) => ctx.datum.value,
153
+ categoryXField: (ctx) => ctx.datum.categoryX ?? "",
154
+ valueYField: (ctx) => ctx.datum.valueY,
155
155
  color: ((ctx) => ctx.datum.color ?? resolveAccessor(props.color, ctx)),
156
156
  name: props.name,
157
157
  innerRadius: props.innerRadius,