@primeui/vue-chart 1.0.0-beta.1 → 1.0.0-rc.2
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/ChartCanvas.mjs +10 -10
- package/dist/ChartSvg.mjs +10 -10
- package/dist/RadarReference.spec.d.ts +1 -0
- package/dist/chunks/{chunk-QONZ3SCZ.mjs → chunk-2FGCWBQK.mjs} +1 -1
- package/dist/chunks/{chunk-4SLSYRNY.mjs → chunk-2VCCASMY.mjs} +5 -17
- package/dist/chunks/{chunk-IRGQNA5W.mjs → chunk-3ZXBNXFA.mjs} +10 -5
- package/dist/chunks/chunk-44BMQ7N2.mjs +86 -0
- package/dist/chunks/{chunk-CMJXLIEY.mjs → chunk-4B5OD4TC.mjs} +4 -13
- package/dist/chunks/{chunk-F7EK5D6J.mjs → chunk-4UH6LJNN.mjs} +4 -4
- package/dist/chunks/{chunk-YI3GLQYF.mjs → chunk-5CL32KCS.mjs} +6 -7
- package/dist/chunks/{chunk-GE2Y2FHS.mjs → chunk-6MD43V6R.mjs} +4 -4
- package/dist/chunks/{chunk-EKGCPOZJ.mjs → chunk-7OLUXDMR.mjs} +33 -18
- package/dist/chunks/{chunk-5ZLVNQ2L.mjs → chunk-7SY52FXI.mjs} +10 -6
- package/dist/chunks/{chunk-R4AZOPXC.mjs → chunk-AQK6S4DO.mjs} +1 -1
- package/dist/chunks/{chunk-UOMQNZMT.mjs → chunk-B7XC2DVN.mjs} +1 -1
- package/dist/chunks/{chunk-CRIB3I3L.mjs → chunk-BC6G3ODW.mjs} +1 -1
- package/dist/chunks/{chunk-YZQS2YBK.mjs → chunk-BVB7G6Y5.mjs} +12 -11
- package/dist/chunks/{chunk-GIDIMIWE.mjs → chunk-D2SPDSXY.mjs} +4 -4
- package/dist/chunks/{chunk-JVH4MDKX.mjs → chunk-D65PFBA5.mjs} +1 -1
- package/dist/chunks/{chunk-MGUGO3RV.mjs → chunk-DKLWPPME.mjs} +10 -0
- package/dist/chunks/{chunk-CGFPDWB4.mjs → chunk-DLRPM3GK.mjs} +1 -1
- package/dist/chunks/{chunk-3DINEX6C.mjs → chunk-DZIZEFTD.mjs} +1 -1
- package/dist/chunks/{chunk-LJZCE7LQ.mjs → chunk-EAHLFHB7.mjs} +58 -19
- package/dist/chunks/{chunk-IFZSHQDZ.mjs → chunk-EDDORION.mjs} +1 -1
- package/dist/chunks/{chunk-QOWKMWNO.mjs → chunk-F72RBTHC.mjs} +27 -5
- package/dist/chunks/{chunk-4Q3QUNX6.mjs → chunk-FGBZ3VPE.mjs} +2 -1
- package/dist/chunks/{chunk-L74BEYTD.mjs → chunk-FZ4TKLHE.mjs} +5 -5
- package/dist/chunks/{chunk-3XOLEGDL.mjs → chunk-G4V4FUNK.mjs} +5 -5
- package/dist/chunks/{chunk-DXKAPWMO.mjs → chunk-G5YSM76C.mjs} +1 -1
- package/dist/chunks/{chunk-3JA5JAHF.mjs → chunk-GRPL343U.mjs} +1 -1
- package/dist/chunks/{chunk-36DHPBYP.mjs → chunk-GV4YAVUN.mjs} +34 -9
- package/dist/chunks/{chunk-GV3CY6CQ.mjs → chunk-HXMG2ZBK.mjs} +1 -1
- package/dist/chunks/{chunk-3PJULFR5.mjs → chunk-IASQF4GU.mjs} +1 -3
- package/dist/chunks/{chunk-IUGMS7ND.mjs → chunk-IPEI6IAE.mjs} +1 -1
- package/dist/chunks/{chunk-WVNDZNMV.mjs → chunk-ISDQNEMO.mjs} +1 -1
- package/dist/chunks/{chunk-TRGN3ZMM.mjs → chunk-JEC4JJ5P.mjs} +4 -30
- package/dist/chunks/{chunk-BSROML7P.mjs → chunk-KCLMHDWJ.mjs} +2 -2
- package/dist/chunks/{chunk-I2BWSDNR.mjs → chunk-KX5GTFS3.mjs} +19 -6
- package/dist/chunks/{chunk-3X27K5XC.mjs → chunk-L7XUBIMC.mjs} +24 -51
- package/dist/chunks/{chunk-2NZ3PUWW.mjs → chunk-LLYJBFOE.mjs} +2 -2
- package/dist/chunks/{chunk-DDRSIMLE.mjs → chunk-LNS6I3ZJ.mjs} +4 -4
- package/dist/chunks/{chunk-CW2KYVYO.mjs → chunk-MCIY5P7K.mjs} +4 -4
- package/dist/chunks/{chunk-GLFXRR7N.mjs → chunk-MGNVYHQF.mjs} +53 -8
- package/dist/chunks/{chunk-2TOEQNJ6.mjs → chunk-MX74LV4I.mjs} +1 -1
- package/dist/chunks/{chunk-L73MEG22.mjs → chunk-NFVH44YP.mjs} +1 -3
- package/dist/chunks/{chunk-JPKNWLLP.mjs → chunk-NTTI64AJ.mjs} +8 -4
- package/dist/chunks/{chunk-5HLEKAY2.mjs → chunk-OHHN7X72.mjs} +1 -1
- package/dist/chunks/{chunk-LP2YESP6.mjs → chunk-OROBUJMJ.mjs} +1 -1
- package/dist/chunks/{chunk-6Z4MZIJI.mjs → chunk-P43UWADF.mjs} +6 -4
- package/dist/chunks/chunk-Q3I4EL3N.mjs +23 -0
- package/dist/chunks/{chunk-HVLFOABV.mjs → chunk-QDCXS7WS.mjs} +3 -8
- package/dist/chunks/{chunk-ZLD5VNMP.mjs → chunk-QQGC223F.mjs} +2 -2
- package/dist/chunks/{chunk-ADAGGXFG.mjs → chunk-QWUGZTCV.mjs} +5 -6
- package/dist/chunks/{chunk-OJHEN5FG.mjs → chunk-TAFKOHFX.mjs} +5 -6
- package/dist/chunks/{chunk-HH5FUUXX.mjs → chunk-TLB6ZOL3.mjs} +3 -1
- package/dist/chunks/{chunk-SGLTVJUA.mjs → chunk-UA2J3TWE.mjs} +4 -4
- package/dist/chunks/{chunk-AKMQHU5T.mjs → chunk-V4KRWSEE.mjs} +2 -2
- package/dist/chunks/{chunk-U6X3GVJ3.mjs → chunk-VADMTZLH.mjs} +1 -1
- package/dist/chunks/{chunk-PCBF6FSQ.mjs → chunk-WCUZUBQ5.mjs} +21 -20
- package/dist/chunks/{chunk-ON2FAZTD.mjs → chunk-WHAJ2YDA.mjs} +1 -1
- package/dist/chunks/{chunk-X4NWFK7L.mjs → chunk-WNIMDHP5.mjs} +2 -2
- package/dist/chunks/{chunk-TZ23VBFU.mjs → chunk-XSKNTD24.mjs} +1 -1
- package/dist/chunks/{chunk-HHZFGQN2.mjs → chunk-YPRGZNY6.mjs} +1 -1
- package/dist/chunks/{chunk-UOZFNTVQ.mjs → chunk-YUQRDFQI.mjs} +2 -2
- package/dist/components/charts/ChartBar.mjs +10 -9
- package/dist/components/charts/ChartCandlestick.mjs +8 -7
- package/dist/components/charts/ChartHeatmap.mjs +8 -7
- package/dist/components/charts/ChartLine.mjs +8 -7
- package/dist/components/charts/ChartPie.mjs +8 -7
- package/dist/components/charts/ChartPolar.mjs +8 -8
- package/dist/components/charts/ChartRadar.mjs +8 -8
- package/dist/components/charts/ChartScatter.mjs +8 -7
- package/dist/components/charts/ChartTreemap.mjs +7 -6
- package/dist/components/containers/ChartDecimation.mjs +3 -3
- package/dist/components/containers/ChartGroup.mjs +2 -2
- package/dist/components/containers/ChartOverlap.mjs +3 -3
- package/dist/components/containers/ChartRange.mjs +3 -3
- package/dist/components/containers/ChartStacked.mjs +3 -3
- package/dist/components/containers/ChartWaterfall.mjs +3 -3
- package/dist/components/customizations/ChartAccessibility.mjs +5 -5
- package/dist/components/customizations/ChartAccessibility.vue.d.ts +3 -0
- package/dist/components/customizations/ChartAnnotation.mjs +3 -3
- package/dist/components/customizations/ChartAxisGroup.mjs +1 -1
- package/dist/components/customizations/ChartBreadcrumb.mjs +4 -4
- package/dist/components/customizations/ChartCaption.mjs +5 -5
- package/dist/components/customizations/ChartColorLegend.mjs +5 -5
- package/dist/components/customizations/ChartColorLegend.vue.d.ts +2 -2
- package/dist/components/customizations/ChartDataLabels.mjs +5 -5
- package/dist/components/customizations/ChartDataLabels.vue.d.ts +2 -0
- package/dist/components/customizations/ChartExportMenu.mjs +5 -5
- package/dist/components/customizations/ChartHover.mjs +5 -5
- package/dist/components/customizations/ChartLegend.mjs +5 -5
- package/dist/components/customizations/ChartNavigator.mjs +6 -6
- package/dist/components/customizations/ChartReferenceBand.mjs +3 -3
- package/dist/components/customizations/ChartReferenceLine.mjs +3 -3
- package/dist/components/customizations/ChartResponsive.mjs +5 -5
- package/dist/components/customizations/ChartTitle.mjs +5 -5
- package/dist/components/customizations/ChartTooltip.mjs +5 -5
- package/dist/components/customizations/ChartXAxis.mjs +5 -5
- package/dist/components/customizations/ChartYAxis.mjs +5 -5
- package/dist/components/customizations/ChartZoom.mjs +5 -5
- package/dist/components/items/ChartItem.mjs +2 -2
- package/dist/components/items/ChartTreemapGroup.mjs +3 -3
- package/dist/components/renderers/CartesianRenderer.mjs +6 -5
- package/dist/components/renderers/LegendRenderer.mjs +2 -2
- package/dist/components/renderers/NavigatorRenderer.mjs +3 -3
- package/dist/components/renderers/RadialRenderer.mjs +5 -5
- package/dist/components/renderers/RectRenderer.mjs +6 -5
- package/dist/components/renderers/TooltipRenderer.mjs +3 -3
- package/dist/components/renderers/layers/BarLayerCanvas.mjs +6 -6
- package/dist/components/renderers/layers/BarLayerSvg.mjs +6 -6
- package/dist/components/renderers/layers/CandlestickLayer.mjs +6 -5
- package/dist/components/renderers/layers/HeatmapLayer.mjs +6 -5
- package/dist/components/renderers/layers/LineLayer.mjs +5 -5
- package/dist/components/renderers/layers/PieLayer.mjs +4 -3
- package/dist/components/renderers/layers/PolarLayer.mjs +4 -4
- package/dist/components/renderers/layers/RadarLayer.mjs +4 -4
- package/dist/components/renderers/layers/ScatterLayer.mjs +5 -5
- package/dist/composables/useCartesianFrame.d.ts +3 -0
- package/dist/composables/useResponsiveConfig.d.ts +1 -0
- package/dist/composables/useResponsiveConfig.spec.d.ts +1 -0
- package/dist/context/ChartContext.d.ts +2 -0
- package/dist/context/index.d.ts +2 -2
- package/dist/context/keys.d.ts +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +61 -61
- package/dist/namespace.mjs +61 -61
- package/dist/release-date.d.ts +1 -1
- package/dist/types/axes.types.d.ts +1 -1
- package/dist/types/heatmap.types.d.ts +3 -8
- package/dist/types/index.d.ts +1 -1
- package/dist/types/line.types.d.ts +2 -2
- package/dist/types/scatter.types.d.ts +2 -0
- package/dist/types/treemap.types.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/ruleOverrides.d.ts +13 -0
- package/dist/utils/ruleOverrides.spec.d.ts +1 -0
- package/package.json +7 -11
- package/LICENSE +0 -23
- package/dist/chunks/chunk-4VWFG6HM.mjs +0 -86
- package/dist/chunks/chunk-ZH4A4L6W.mjs +0 -10
package/LICENSE.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# PrimeUI Pro License
|
|
2
|
+
|
|
3
|
+
This package is a **PrimeUI Pro** component by PrimeTek Informatics — an advanced, framework-independent UI component.
|
|
4
|
+
|
|
5
|
+
PrimeUI Pro components are commercial software. They are not available under the MIT license or a free Community license. A valid commercial license is required.
|
|
6
|
+
|
|
7
|
+
## How PrimeUI Pro May Be Used
|
|
8
|
+
|
|
9
|
+
This component may be used under either of the following:
|
|
10
|
+
|
|
11
|
+
### Standalone Commercial License
|
|
12
|
+
|
|
13
|
+
Purchased individually, licensed per developer, perpetual, with one year of updates. The component is framework-independent and may be used with any UI library, including PrimeNG, PrimeReact, PrimeVue, or others.
|
|
14
|
+
|
|
15
|
+
### Included with PrimeUI Commercial Suite
|
|
16
|
+
|
|
17
|
+
PrimeUI Commercial Suite license holders receive access to all PrimeUI Pro components released within their update period at no additional cost.
|
|
18
|
+
|
|
19
|
+
## License Key
|
|
20
|
+
|
|
21
|
+
A valid license key is required to use this software. License verification is performed offline, with no telemetry and no remote connection. A missing, invalid, or expired key may cause the software to display a license notice.
|
|
22
|
+
|
|
23
|
+
## Full Terms
|
|
24
|
+
|
|
25
|
+
The complete license terms, pricing, and renewal information are available at:
|
|
26
|
+
|
|
27
|
+
**https://primeui.dev/licenses/commercial**
|
|
28
|
+
|
|
29
|
+
## Restrictions
|
|
30
|
+
|
|
31
|
+
This software is distributed as a compiled package. You may not reverse-engineer, decompile, or extract its source code, redistribute it as a component library or development tool, or remove its license mechanisms. Redistributing the component so that third parties can develop with it requires a separate OEM License. See the full terms for details.
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
© 2026 PrimeTek Informatics. All rights reserved.
|
package/README.md
CHANGED
|
@@ -1 +1,65 @@
|
|
|
1
1
|
# PrimeUI Vue Chart
|
|
2
|
+
|
|
3
|
+
`@primeui/vue-chart` is the Vue 3 chart component for PrimeUI. It supports bar, line, pie, doughnut, radar, polar area, and scatter chart types.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @primeui/vue-chart
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Basic Usage
|
|
12
|
+
|
|
13
|
+
```vue
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
import { Chart } from '@primeui/vue-chart';
|
|
16
|
+
|
|
17
|
+
const data = {
|
|
18
|
+
labels: ['January', 'February', 'March', 'April', 'May'],
|
|
19
|
+
datasets: [
|
|
20
|
+
{
|
|
21
|
+
label: 'Sales',
|
|
22
|
+
data: [40, 59, 80, 61, 56],
|
|
23
|
+
backgroundColor: ['#FF6384', '#36A2EB', '#FFCE56', '#4BC0C0', '#9966FF']
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const options = {
|
|
29
|
+
responsive: true,
|
|
30
|
+
plugins: {
|
|
31
|
+
legend: { position: 'top' }
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<Chart type="bar" :data="data" :options="options" />
|
|
38
|
+
</template>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Chart Types
|
|
42
|
+
|
|
43
|
+
| Type | Value |
|
|
44
|
+
| ---------- | ------------- |
|
|
45
|
+
| Bar | `"bar"` |
|
|
46
|
+
| Line | `"line"` |
|
|
47
|
+
| Pie | `"pie"` |
|
|
48
|
+
| Doughnut | `"doughnut"` |
|
|
49
|
+
| Radar | `"radar"` |
|
|
50
|
+
| Polar Area | `"polarArea"` |
|
|
51
|
+
| Scatter | `"scatter"` |
|
|
52
|
+
|
|
53
|
+
## Responsive Charts
|
|
54
|
+
|
|
55
|
+
Charts are responsive by default. Set `width` and `height` props to fix the canvas dimensions, or control the container size via CSS.
|
|
56
|
+
|
|
57
|
+
```vue
|
|
58
|
+
<template>
|
|
59
|
+
<Chart type="line" :data="data" width="400" height="300" />
|
|
60
|
+
</template>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
Licensed under the [PrimeUI Pro License](https://primeui.dev/licenses/commercial) - Copyright (c) [PrimeTek Informatics](https://www.primetek.com.tr)
|
package/dist/ChartCanvas.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { ChartCanvas_default as default } from './chunks/chunk-
|
|
2
|
-
import './chunks/chunk-
|
|
3
|
-
import './chunks/chunk-
|
|
1
|
+
export { ChartCanvas_default as default } from './chunks/chunk-IPEI6IAE.mjs';
|
|
2
|
+
import './chunks/chunk-7OLUXDMR.mjs';
|
|
3
|
+
import './chunks/chunk-JEC4JJ5P.mjs';
|
|
4
4
|
import './chunks/chunk-S4YR4YK7.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
6
|
-
import './chunks/chunk-
|
|
7
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-GV4YAVUN.mjs';
|
|
6
|
+
import './chunks/chunk-Q3I4EL3N.mjs';
|
|
7
|
+
import './chunks/chunk-KX5GTFS3.mjs';
|
|
8
8
|
import './chunks/chunk-L6N5IYAJ.mjs';
|
|
9
|
-
import './chunks/chunk-
|
|
9
|
+
import './chunks/chunk-QQGC223F.mjs';
|
|
10
10
|
import './chunks/chunk-7EZEZMGG.mjs';
|
|
11
|
-
import './chunks/chunk-
|
|
12
|
-
import './chunks/chunk-
|
|
11
|
+
import './chunks/chunk-MGNVYHQF.mjs';
|
|
12
|
+
import './chunks/chunk-F72RBTHC.mjs';
|
|
13
13
|
import './chunks/chunk-H4HLHGUW.mjs';
|
|
14
|
-
import './chunks/chunk-
|
|
14
|
+
import './chunks/chunk-FGBZ3VPE.mjs';
|
|
15
15
|
import './chunks/chunk-VIHIR2BE.mjs';
|
package/dist/ChartSvg.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { ChartSvg_default as default } from './chunks/chunk-
|
|
2
|
-
import './chunks/chunk-
|
|
3
|
-
import './chunks/chunk-
|
|
1
|
+
export { ChartSvg_default as default } from './chunks/chunk-OHHN7X72.mjs';
|
|
2
|
+
import './chunks/chunk-7OLUXDMR.mjs';
|
|
3
|
+
import './chunks/chunk-JEC4JJ5P.mjs';
|
|
4
4
|
import './chunks/chunk-S4YR4YK7.mjs';
|
|
5
|
-
import './chunks/chunk-
|
|
6
|
-
import './chunks/chunk-
|
|
7
|
-
import './chunks/chunk-
|
|
5
|
+
import './chunks/chunk-GV4YAVUN.mjs';
|
|
6
|
+
import './chunks/chunk-Q3I4EL3N.mjs';
|
|
7
|
+
import './chunks/chunk-KX5GTFS3.mjs';
|
|
8
8
|
import './chunks/chunk-L6N5IYAJ.mjs';
|
|
9
|
-
import './chunks/chunk-
|
|
9
|
+
import './chunks/chunk-QQGC223F.mjs';
|
|
10
10
|
import './chunks/chunk-7EZEZMGG.mjs';
|
|
11
|
-
import './chunks/chunk-
|
|
12
|
-
import './chunks/chunk-
|
|
11
|
+
import './chunks/chunk-MGNVYHQF.mjs';
|
|
12
|
+
import './chunks/chunk-F72RBTHC.mjs';
|
|
13
13
|
import './chunks/chunk-H4HLHGUW.mjs';
|
|
14
|
-
import './chunks/chunk-
|
|
14
|
+
import './chunks/chunk-FGBZ3VPE.mjs';
|
|
15
15
|
import './chunks/chunk-VIHIR2BE.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useCustomizationRegistration } from './chunk-
|
|
1
|
+
import { useCustomizationRegistration } from './chunk-QQGC223F.mjs';
|
|
2
2
|
import { SYNC_BUS_KEY } from './chunk-H4HLHGUW.mjs';
|
|
3
|
-
import { CHART_METHODS_KEY } from './chunk-
|
|
3
|
+
import { CHART_METHODS_KEY } from './chunk-FGBZ3VPE.mjs';
|
|
4
4
|
import { defineComponent, inject, computed, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, unref, normalizeStyle, normalizeClass, renderList, createBlock, resolveDynamicComponent, createElementVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
5
|
-
import { safeRenderProp,
|
|
5
|
+
import { safeRenderProp, legendSwatchStyle, buildSharedLegendItems } from '@primeui/chart-core';
|
|
6
6
|
|
|
7
7
|
var _hoisted_1 = ["onClick", "onMouseenter"];
|
|
8
8
|
var _hoisted_2 = ["data-chart-gradient"];
|
|
@@ -152,12 +152,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
152
|
style: normalizeStyle([containerStyle.value, props.style])
|
|
153
153
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(sharedItems.value, (item) => {
|
|
154
154
|
return openBlock(), createElementBlock(Fragment, { key: getItemKey(item) }, [__props.render ? (openBlock(), createBlock(resolveDynamicComponent(() => unref(safeRenderProp)(() => __props.render({
|
|
155
|
-
|
|
156
|
-
datasetId: item.datasetId,
|
|
157
|
-
label: item.label,
|
|
158
|
-
color: item.color,
|
|
159
|
-
colorGradient: item.colorGradient,
|
|
160
|
-
visible: item.visible,
|
|
155
|
+
...item,
|
|
161
156
|
isHovered: hoveredId.value === getItemKey(item),
|
|
162
157
|
onClick: () => handleSharedClick(item),
|
|
163
158
|
onMouseEnter: () => {
|
|
@@ -192,14 +187,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
192
187
|
onMouseleave: _cache[0] || (_cache[0] = ($event) => hoveredId.value = null)
|
|
193
188
|
}, [createElementVNode("span", {
|
|
194
189
|
"data-chart-gradient": item.colorGradient ? JSON.stringify(item.colorGradient) : void 0,
|
|
195
|
-
style: normalizeStyle(
|
|
196
|
-
width: `${__props.iconSize ?? 12}px`,
|
|
197
|
-
height: __props.iconShape === "line" ? "2px" : `${__props.iconSize ?? 12}px`,
|
|
198
|
-
borderRadius: __props.iconShape === "circle" ? "50%" : __props.iconShape === "line" ? "1px" : "2px",
|
|
199
|
-
backgroundColor: item.color,
|
|
200
|
-
...item.colorGradient ? { backgroundImage: unref(gradientToCssBackground)(item.colorGradient) } : {},
|
|
201
|
-
flexShrink: 0
|
|
202
|
-
})
|
|
190
|
+
style: normalizeStyle(unref(legendSwatchStyle)(item, __props.iconSize ?? 12, __props.iconShape))
|
|
203
191
|
}, null, 12, _hoisted_2), createElementVNode("span", null, toDisplayString(item.label), 1)], 44, _hoisted_1))], 64);
|
|
204
192
|
}), 128))], 6)) : createCommentVNode("", true);
|
|
205
193
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { applyDataLabelRuleOverrides } from './chunk-Q3I4EL3N.mjs';
|
|
2
|
+
import { usePropertyAnimations } from './chunk-KX5GTFS3.mjs';
|
|
3
|
+
import { useChartMethods, useChartState, useChartHover, useRuleOverrides } from './chunk-F72RBTHC.mjs';
|
|
3
4
|
import { defineComponent, computed, toRef, shallowRef, onUnmounted, unref, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, createCommentVNode, ref, watch, createVNode } from 'vue';
|
|
4
5
|
import { AnimatedPropertyStore, AnimationRegistry, renderTreemapGroupHoverOverlay } from '@primeui/chart-core';
|
|
5
6
|
import { createTreemapRendererCanvas } from '@primeui/chart-core/series/treemap/controller-canvas';
|
|
6
7
|
import { createTreemapRendererSvg } from '@primeui/chart-core/series/treemap/controller-svg';
|
|
7
8
|
|
|
8
9
|
function useTreemapRenderer(options) {
|
|
9
|
-
const { chartArea, renderer, canvasEl, datasets, features, datasetVisibility, width, height, chartId, drilldownState, globalFont, hover, theme } = options;
|
|
10
|
+
const { chartArea, renderer, canvasEl, datasets, features, datasetVisibility, hiddenItems, width, height, chartId, drilldownState, globalFont, hover, theme } = options;
|
|
10
11
|
const wrapperRef = ref(null);
|
|
11
12
|
const groupRef = ref(null);
|
|
12
13
|
const overlayRef = ref(null);
|
|
@@ -20,6 +21,7 @@ function useTreemapRenderer(options) {
|
|
|
20
21
|
controller.update({
|
|
21
22
|
datasets: datasets.value,
|
|
22
23
|
datasetVisibility: datasetVisibility.value,
|
|
24
|
+
hiddenItems: hiddenItems.value,
|
|
23
25
|
chartArea: chartArea.value,
|
|
24
26
|
renderer,
|
|
25
27
|
width: width.value,
|
|
@@ -37,11 +39,12 @@ function useTreemapRenderer(options) {
|
|
|
37
39
|
});
|
|
38
40
|
};
|
|
39
41
|
watch(
|
|
40
|
-
[datasets, datasetVisibility, chartArea, features, width, height, groupRef, () => drilldownState.currentParentId.value, () => drilldownState.enabled.value, theme],
|
|
42
|
+
[datasets, datasetVisibility, hiddenItems, chartArea, features, width, height, groupRef, () => drilldownState.currentParentId.value, () => drilldownState.enabled.value, theme],
|
|
41
43
|
() => {
|
|
42
44
|
controller.update({
|
|
43
45
|
datasets: datasets.value,
|
|
44
46
|
datasetVisibility: datasetVisibility.value,
|
|
47
|
+
hiddenItems: hiddenItems.value,
|
|
45
48
|
chartArea: chartArea.value,
|
|
46
49
|
renderer,
|
|
47
50
|
width: width.value,
|
|
@@ -172,13 +175,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
172
175
|
const methods = useChartMethods();
|
|
173
176
|
const state = useChartState();
|
|
174
177
|
const hoverCtx = useChartHover();
|
|
178
|
+
const ruleOverrides = useRuleOverrides();
|
|
175
179
|
const treemap = useTreemapRenderer({
|
|
176
180
|
chartArea: computed(() => props.chartArea),
|
|
177
181
|
renderer: methods.renderer,
|
|
178
182
|
canvasEl: toRef(props, "canvasEl"),
|
|
179
183
|
datasets: computed(() => state.value.datasets),
|
|
180
|
-
features: computed(() => state.value.features),
|
|
184
|
+
features: computed(() => applyDataLabelRuleOverrides(state.value.features, ruleOverrides.value)),
|
|
181
185
|
datasetVisibility: computed(() => state.value.datasetVisibility),
|
|
186
|
+
hiddenItems: computed(() => state.value.hiddenItems),
|
|
182
187
|
hover: computed(() => hoverCtx.value.hover),
|
|
183
188
|
width: computed(() => props.width),
|
|
184
189
|
height: computed(() => props.height),
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ChartBar_default } from './chunk-FZ4TKLHE.mjs';
|
|
2
|
+
import { ChartTreemap_default } from './chunk-QDCXS7WS.mjs';
|
|
3
|
+
import { ChartScatter_default } from './chunk-UA2J3TWE.mjs';
|
|
4
|
+
import { ChartRadar_default } from './chunk-4UH6LJNN.mjs';
|
|
5
|
+
import { ChartPolar_default } from './chunk-D2SPDSXY.mjs';
|
|
6
|
+
import { ChartPie_default } from './chunk-6MD43V6R.mjs';
|
|
7
|
+
import { ChartLine_default } from './chunk-LNS6I3ZJ.mjs';
|
|
8
|
+
import { ChartHeatmap_default } from './chunk-WCUZUBQ5.mjs';
|
|
9
|
+
import { ChartCandlestick_default } from './chunk-MCIY5P7K.mjs';
|
|
10
|
+
import { ChartAnnotation_default } from './chunk-WHAJ2YDA.mjs';
|
|
11
|
+
import { ChartAccessibility_default } from './chunk-P43UWADF.mjs';
|
|
12
|
+
import { ChartWaterfall_default } from './chunk-HXMG2ZBK.mjs';
|
|
13
|
+
import { ChartStacked_default } from './chunk-ISDQNEMO.mjs';
|
|
14
|
+
import { ChartRange_default } from './chunk-YPRGZNY6.mjs';
|
|
15
|
+
import { ChartOverlap_default } from './chunk-AQK6S4DO.mjs';
|
|
16
|
+
import { ChartGroup_default } from './chunk-GRPL343U.mjs';
|
|
17
|
+
import { ChartDecimation_default } from './chunk-XSKNTD24.mjs';
|
|
18
|
+
import { ChartHover_default } from './chunk-DZIZEFTD.mjs';
|
|
19
|
+
import { ChartExportMenu_default } from './chunk-WNIMDHP5.mjs';
|
|
20
|
+
import { ChartDataLabels_default } from './chunk-TLB6ZOL3.mjs';
|
|
21
|
+
import { ChartColorLegend_default } from './chunk-DLRPM3GK.mjs';
|
|
22
|
+
import { ChartCaption_default } from './chunk-YUQRDFQI.mjs';
|
|
23
|
+
import { ChartBreadcrumb_default } from './chunk-2FGCWBQK.mjs';
|
|
24
|
+
import { ChartAxisGroup_default } from './chunk-DKLWPPME.mjs';
|
|
25
|
+
import { ChartAxisCategory_default } from './chunk-QJCMFAHB.mjs';
|
|
26
|
+
import { ChartXAxis_default } from './chunk-G5YSM76C.mjs';
|
|
27
|
+
import { ChartTooltip_default } from './chunk-OROBUJMJ.mjs';
|
|
28
|
+
import { ChartTitle_default } from './chunk-LLYJBFOE.mjs';
|
|
29
|
+
import { ChartResponsive_default } from './chunk-B7XC2DVN.mjs';
|
|
30
|
+
import { ChartReferenceLine_default } from './chunk-BC6G3ODW.mjs';
|
|
31
|
+
import { ChartReferenceBand_default } from './chunk-VADMTZLH.mjs';
|
|
32
|
+
import { ChartNavigator_default } from './chunk-NTTI64AJ.mjs';
|
|
33
|
+
import { ChartLegend_default } from './chunk-2VCCASMY.mjs';
|
|
34
|
+
import { ChartTreemapGroup_default } from './chunk-NFVH44YP.mjs';
|
|
35
|
+
import { ChartItem_default } from './chunk-IASQF4GU.mjs';
|
|
36
|
+
import { ChartZoom_default } from './chunk-KCLMHDWJ.mjs';
|
|
37
|
+
import { ChartYAxis_default } from './chunk-D65PFBA5.mjs';
|
|
38
|
+
import { ChartSvg_default } from './chunk-OHHN7X72.mjs';
|
|
39
|
+
import { ChartCanvas_default } from './chunk-IPEI6IAE.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
1
|
import { useControllerLifecycle } from './chunk-KNNYJD4D.mjs';
|
|
2
|
-
import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-
|
|
3
|
-
import { useChartMethods, useChartState, useChartHover } from './chunk-
|
|
2
|
+
import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-KX5GTFS3.mjs';
|
|
3
|
+
import { useChartMethods, useChartState, useChartHover } from './chunk-F72RBTHC.mjs';
|
|
4
4
|
import { defineComponent, computed, h, unref, openBlock, createElementBlock, createCommentVNode, ref, shallowRef, watch } from 'vue';
|
|
5
5
|
import { resolvePointLabels, safeRenderProp } from '@primeui/chart-core';
|
|
6
6
|
import { createLineRendererCanvas } from '@primeui/chart-core/series/line/controller-canvas';
|
|
@@ -201,20 +201,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
return {
|
|
204
|
-
|
|
205
|
-
index: lnHit.index,
|
|
206
|
-
label: lnHit.label,
|
|
207
|
-
value: lnHit.value,
|
|
208
|
-
color: lnHit.color,
|
|
204
|
+
...lnHit,
|
|
209
205
|
snapX: lnHit.x,
|
|
210
206
|
snapY: lnHit.y,
|
|
211
207
|
formattedValue: fmtVal,
|
|
212
|
-
cursorFormattedValue: ""
|
|
213
|
-
independentIsCategory: lnHit.independentIsCategory,
|
|
214
|
-
xValue: lnHit.xValue,
|
|
215
|
-
yValue: lnHit.yValue,
|
|
216
|
-
xAxisTitle: lnHit.xAxisTitle,
|
|
217
|
-
yAxisTitle: lnHit.yAxisTitle
|
|
208
|
+
cursorFormattedValue: ""
|
|
218
209
|
};
|
|
219
210
|
},
|
|
220
211
|
findAllNearest: (x, y) => line.findAllNearest(x, y),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RadarLayer_default } from './chunk-
|
|
2
|
-
import { RadialRenderer_default } from './chunk-
|
|
3
|
-
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-
|
|
1
|
+
import { RadarLayer_default } from './chunk-TAFKOHFX.mjs';
|
|
2
|
+
import { RadialRenderer_default } from './chunk-7SY52FXI.mjs';
|
|
3
|
+
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-KX5GTFS3.mjs';
|
|
4
4
|
import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
|
|
5
|
-
import { useRendererHint, useChartMethods } from './chunk-
|
|
5
|
+
import { useRendererHint, useChartMethods } from './chunk-F72RBTHC.mjs';
|
|
6
6
|
import { defineComponent, useSlots, computed, inject, onMounted, watch, onUnmounted, renderSlot, createCommentVNode } from 'vue';
|
|
7
7
|
|
|
8
8
|
var radarIdCounter = 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { applyDataLabelRuleOverrides } from './chunk-Q3I4EL3N.mjs';
|
|
2
|
+
import { useCartesianFrame, useCartesianFrameRegistration } from './chunk-KX5GTFS3.mjs';
|
|
3
|
+
import { useChartMethods, useChartState, useChartHover, useRuleOverrides } from './chunk-F72RBTHC.mjs';
|
|
3
4
|
import { defineComponent, computed, unref, openBlock, createElementBlock, createCommentVNode, ref, watch, onUnmounted } from 'vue';
|
|
4
5
|
import { createCandlestickRendererCanvas } from '@primeui/chart-core/series/candlestick/controller-canvas';
|
|
5
6
|
import { createCandlestickRendererSvg } from '@primeui/chart-core/series/candlestick/controller-svg';
|
|
@@ -73,7 +74,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
const methods = useChartMethods();
|
|
74
75
|
const state = useChartState();
|
|
75
76
|
const hoverCtx = useChartHover();
|
|
76
|
-
const
|
|
77
|
+
const ruleOverrides = useRuleOverrides();
|
|
78
|
+
const features = computed(() => applyDataLabelRuleOverrides(state.value.features, ruleOverrides.value));
|
|
77
79
|
const candlestick = useCandlestickRenderer({
|
|
78
80
|
chartArea: frame.cartesianArea,
|
|
79
81
|
renderer: methods.renderer,
|
|
@@ -102,11 +104,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
104
|
const csHit = candlestick.hitTest(x, y);
|
|
103
105
|
if (!csHit) return null;
|
|
104
106
|
return {
|
|
105
|
-
|
|
106
|
-
index: csHit.index,
|
|
107
|
-
label: csHit.label,
|
|
107
|
+
...csHit,
|
|
108
108
|
value: csHit.close,
|
|
109
|
-
color: csHit.color,
|
|
110
109
|
snapX: csHit.x,
|
|
111
110
|
snapY: csHit.y,
|
|
112
111
|
formattedValue: `O:${csHit.open} H:${csHit.high} L:${csHit.low} C:${csHit.close}`,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PieLayer_default } from './chunk-
|
|
2
|
-
import { RadialRenderer_default } from './chunk-
|
|
3
|
-
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-
|
|
1
|
+
import { PieLayer_default } from './chunk-G4V4FUNK.mjs';
|
|
2
|
+
import { RadialRenderer_default } from './chunk-7SY52FXI.mjs';
|
|
3
|
+
import { registerFamilyRenderer, registerChartLayer, useDatasetAnimationRegistration, useDatasetRegistration, useItemCollector } from './chunk-KX5GTFS3.mjs';
|
|
4
4
|
import { STACKED_CONTEXT_KEY } from './chunk-L6N5IYAJ.mjs';
|
|
5
|
-
import { useRendererHint, useChartMethods } from './chunk-
|
|
5
|
+
import { useRendererHint, useChartMethods } from './chunk-F72RBTHC.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
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { LegendRenderer_default } from './chunk-
|
|
1
|
+
import { LegendRenderer_default } from './chunk-JEC4JJ5P.mjs';
|
|
2
2
|
import { ColorLegendRenderer_default } from './chunk-S4YR4YK7.mjs';
|
|
3
|
-
import { TooltipRenderer_default } from './chunk-
|
|
4
|
-
import { useResponsiveDimensions, useAnimationProps, useDrilldownState, useResponsiveConfig, provideFamilyRenderers, provideChartLayers, useZoomPan, useKeyboardNavigation, useChartSync, useChartContext, useChartSyncCoordinator } from './chunk-
|
|
5
|
-
import { NavigatorRenderer_default } from './chunk-
|
|
6
|
-
import { provideChartContext } from './chunk-
|
|
3
|
+
import { TooltipRenderer_default } from './chunk-GV4YAVUN.mjs';
|
|
4
|
+
import { useResponsiveDimensions, useAnimationProps, useDrilldownState, useResponsiveConfig, provideFamilyRenderers, provideChartLayers, useZoomPan, useKeyboardNavigation, useChartSync, useChartContext, useChartSyncCoordinator } from './chunk-KX5GTFS3.mjs';
|
|
5
|
+
import { NavigatorRenderer_default } from './chunk-MGNVYHQF.mjs';
|
|
6
|
+
import { provideChartContext } from './chunk-F72RBTHC.mjs';
|
|
7
7
|
import { CHART_SYNC_INFO_KEY } from './chunk-H4HLHGUW.mjs';
|
|
8
|
-
import { TOOLTIP_CONTEXT_KEY } from './chunk-
|
|
9
|
-
import { defineComponent, computed, ref, onMounted, watch, onBeforeUnmount, toRef,
|
|
8
|
+
import { CHART_RULE_OVERRIDES_KEY, TOOLTIP_CONTEXT_KEY } from './chunk-FGBZ3VPE.mjs';
|
|
9
|
+
import { defineComponent, computed, ref, onMounted, watch, onBeforeUnmount, toRef, provide, shallowRef, 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';
|
|
12
12
|
|
|
13
13
|
// src/release-date.ts
|
|
14
|
-
var RELEASE_DATE = "2026-06-
|
|
14
|
+
var RELEASE_DATE = "2026-06-28";
|
|
15
15
|
|
|
16
16
|
// src/Chart.vue
|
|
17
17
|
var _hoisted_1 = {
|
|
@@ -337,7 +337,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
337
337
|
const measuredCaptionHeight = ref(0);
|
|
338
338
|
const drilldownState = useDrilldownState(computed(() => state.value.datasets));
|
|
339
339
|
const responsiveFeature = computed(() => state.value.features.get("responsive")?.props);
|
|
340
|
-
const { defaults: adaptive, ruleOverrides } = useResponsiveConfig(width, height, responsiveFeature, { size: props.fontSize });
|
|
340
|
+
const { tier, defaults: adaptive, ruleOverrides } = useResponsiveConfig(width, height, responsiveFeature, { size: props.fontSize });
|
|
341
|
+
provide(CHART_RULE_OVERRIDES_KEY, ruleOverrides);
|
|
341
342
|
const chartStateController = new ChartStateController();
|
|
342
343
|
onBeforeUnmount(() => chartStateController.destroy());
|
|
343
344
|
const coreState = computed(() => chartStateController.compute({
|
|
@@ -446,12 +447,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
446
447
|
});
|
|
447
448
|
});
|
|
448
449
|
const autoColorScale = shallowRef(null);
|
|
449
|
-
|
|
450
|
-
() => state.value.datasets,
|
|
451
|
-
() => state.value.datasetVisibility,
|
|
452
|
-
() => coreState.value.chartArea,
|
|
453
|
-
rendererDelegate
|
|
454
|
-
], () => {
|
|
450
|
+
function syncAutoColorScale() {
|
|
455
451
|
const info = rendererDelegate.value?.getColorScaleInfo?.() ?? null;
|
|
456
452
|
const prev = autoColorScale.value;
|
|
457
453
|
if (prev === null && info === null) return;
|
|
@@ -459,6 +455,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
459
455
|
return;
|
|
460
456
|
}
|
|
461
457
|
autoColorScale.value = info;
|
|
458
|
+
}
|
|
459
|
+
watch([
|
|
460
|
+
() => state.value.datasets,
|
|
461
|
+
() => state.value.datasetVisibility,
|
|
462
|
+
() => coreState.value.chartArea,
|
|
463
|
+
rendererDelegate
|
|
464
|
+
], () => {
|
|
465
|
+
syncAutoColorScale();
|
|
466
|
+
if (autoColorScale.value === null) {
|
|
467
|
+
const hasColorScaleSeries = [...state.value.datasets.values()].some((d) => d.type === "heatmap" || d.type === "treemap");
|
|
468
|
+
if (hasColorScaleSeries) nextTick(syncAutoColorScale);
|
|
469
|
+
}
|
|
462
470
|
}, {
|
|
463
471
|
immediate: true,
|
|
464
472
|
flush: "post"
|
|
@@ -689,12 +697,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
689
697
|
cursorValueText: tooltip.value.cursorFormattedValue ?? "",
|
|
690
698
|
barValueText: tooltip.value.formattedValue ?? String(tooltip.value.value),
|
|
691
699
|
barColor: tooltip.value.color,
|
|
692
|
-
allSeriesHits: isSharedMode.value ? tooltip.value.allSeriesHits : void 0
|
|
700
|
+
allSeriesHits: isSharedMode.value ? tooltip.value.allSeriesHits : void 0,
|
|
701
|
+
// Value→value domain (bar/line/scatter): the independent-axis badge follows the
|
|
702
|
+
// cursor instead of snapping to the datum, matching the value-axis badge.
|
|
703
|
+
independentAxisIsValue: tooltip.value.independentIsCategory === false
|
|
693
704
|
});
|
|
694
705
|
});
|
|
695
706
|
const annotations = computed(() => state.value.annotations);
|
|
696
707
|
const annotationContext = computed(() => {
|
|
697
708
|
if (!annotations.value?.size || !chartArea.value) return null;
|
|
709
|
+
if (ruleOverrides.value.annotations?.enabled === false) return null;
|
|
698
710
|
const outerArea = chartArea.value;
|
|
699
711
|
let xScale = null;
|
|
700
712
|
let yScale = null;
|
|
@@ -738,7 +750,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
738
750
|
datasetId: hover.datasetId,
|
|
739
751
|
index: hover.index
|
|
740
752
|
} : null,
|
|
741
|
-
theme: methods.theme
|
|
753
|
+
theme: methods.theme,
|
|
754
|
+
tier: tier.value,
|
|
755
|
+
defaults: adaptive.value,
|
|
756
|
+
ruleOverrides: ruleOverrides.value
|
|
742
757
|
});
|
|
743
758
|
});
|
|
744
759
|
const annotationClipRect = computed(() => {
|
|
@@ -1385,7 +1400,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1385
1400
|
}, toDisplayString(label.text), 9, _hoisted_31)]);
|
|
1386
1401
|
}), 128))
|
|
1387
1402
|
], 8, _hoisted_18)) : createCommentVNode("", true),
|
|
1388
|
-
tooltipConfig.value && !
|
|
1403
|
+
tooltipConfig.value && !crosshairData.value && !unref(zoomIsDragging) && unref(ruleOverrides).tooltip?.enabled !== false ? (openBlock(), createBlock(TooltipRenderer_default, {
|
|
1389
1404
|
key: 12,
|
|
1390
1405
|
"tooltip-config": tooltipConfig.value,
|
|
1391
1406
|
rtl: resolvedDir.value === "rtl",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useChartLayers, usePropertyAnimations } from './chunk-
|
|
1
|
+
import { useChartLayers, usePropertyAnimations } from './chunk-KX5GTFS3.mjs';
|
|
2
2
|
import { provideRadialFrame } from './chunk-7EZEZMGG.mjs';
|
|
3
|
-
import { useChartMethods, useChartState } from './chunk-
|
|
3
|
+
import { useChartMethods, useChartState, useRuleOverrides } from './chunk-F72RBTHC.mjs';
|
|
4
4
|
import { defineComponent, computed, ref, watch, shallowRef, onUnmounted, openBlock, createElementBlock, Fragment, unref, createCommentVNode, renderList, createBlock, resolveDynamicComponent } from 'vue';
|
|
5
|
-
import { collectItems, computeRadialComboContext, materializeSvgGroup, renderRadialGridSvg, AnimatedPropertyStore, AnimationRegistry, buildRadialGridLayout, withReferenceFeatures, redrawRadialCanvas } from '@primeui/chart-core';
|
|
5
|
+
import { collectItems, computeRadialComboContext, materializeSvgGroup, renderRadialGridSvg, AnimatedPropertyStore, AnimationRegistry, applyAxisOverrides, buildRadialGridLayout, withReferenceFeatures, redrawRadialCanvas } from '@primeui/chart-core';
|
|
6
6
|
|
|
7
7
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "RadialRenderer",
|
|
@@ -18,6 +18,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
const props = __props;
|
|
19
19
|
const methods = useChartMethods();
|
|
20
20
|
const state = useChartState();
|
|
21
|
+
const ruleOverrides = useRuleOverrides();
|
|
21
22
|
const frame = provideRadialFrame();
|
|
22
23
|
const chartLayers = useChartLayers();
|
|
23
24
|
const gridLayers = computed(() => collectRadialLayers("grid"));
|
|
@@ -57,10 +58,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
58
|
innerRadius: polarRaw.innerRadiusRatio * polarRaw.maxRadius
|
|
58
59
|
} : null;
|
|
59
60
|
if (!src) return _stickyGridLayout ? withReferenceFeatures(_stickyGridLayout, state.value.features) : null;
|
|
60
|
-
const
|
|
61
|
+
const xAxes = applyAxisOverrides(state.value.axes.x, ruleOverrides.value.xAxis);
|
|
62
|
+
const yAxes = applyAxisOverrides(state.value.axes.y, ruleOverrides.value.yAxis);
|
|
63
|
+
const xAxisProps = [...xAxes.values()][0]?.props;
|
|
61
64
|
let defaultYAxisProps;
|
|
62
65
|
const yAxesByCategory = /* @__PURE__ */ new Map();
|
|
63
|
-
for (const axis of
|
|
66
|
+
for (const axis of yAxes.values()) {
|
|
64
67
|
const yProps = axis.props;
|
|
65
68
|
const cat = yProps.category;
|
|
66
69
|
if (cat) yAxesByCategory.set(cat, yProps);
|
|
@@ -88,7 +91,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
91
|
gridLayerLayouts,
|
|
89
92
|
sharedGridGroupRef,
|
|
90
93
|
() => state.value.features,
|
|
91
|
-
radialAxes
|
|
94
|
+
radialAxes,
|
|
95
|
+
() => ruleOverrides.value
|
|
92
96
|
], () => {
|
|
93
97
|
const group = sharedGridGroupRef.value;
|
|
94
98
|
if (!group) return;
|