@vuu-ui/vuu-chart 3.5.14 → 3.5.15
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/package.json +7 -7
- package/src/Chart.js +2 -0
- package/src/ChartSeries.js +2 -1
- package/types/chart-types.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.5.
|
|
2
|
+
"version": "3.5.15",
|
|
3
3
|
"description": "support for apache echarts using vuu data",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"type-defs": "node ../../scripts/build-type-defs.mjs"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@vuu-ui/vuu-data-types": "3.5.
|
|
13
|
-
"@vuu-ui/vuu-protocol-types": "3.5.
|
|
14
|
-
"@vuu-ui/vuu-data-local": "3.5.
|
|
12
|
+
"@vuu-ui/vuu-data-types": "3.5.15",
|
|
13
|
+
"@vuu-ui/vuu-protocol-types": "3.5.15",
|
|
14
|
+
"@vuu-ui/vuu-data-local": "3.5.15"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@salt-ds/styles": "0.2.1",
|
|
18
18
|
"@salt-ds/window": "0.1.1",
|
|
19
|
-
"@vuu-ui/vuu-context-menu": "3.5.
|
|
20
|
-
"@vuu-ui/vuu-ui-controls": "3.5.
|
|
21
|
-
"@vuu-ui/vuu-utils": "3.5.
|
|
19
|
+
"@vuu-ui/vuu-context-menu": "3.5.15",
|
|
20
|
+
"@vuu-ui/vuu-ui-controls": "3.5.15",
|
|
21
|
+
"@vuu-ui/vuu-utils": "3.5.15",
|
|
22
22
|
"clsx": "^2.0.0",
|
|
23
23
|
"echarts": "6.1.0"
|
|
24
24
|
},
|
package/src/Chart.js
CHANGED
|
@@ -61,12 +61,14 @@ const Chart_Chart = ({ categoryColumnName, chartSettings = {
|
|
|
61
61
|
useEffect(()=>{
|
|
62
62
|
if (!chartElement) return;
|
|
63
63
|
const chart = init(chartElement, null, chartSettings);
|
|
64
|
+
chartElement.echartsInstance = chart;
|
|
64
65
|
chart.on("contextmenu", onContextMenu);
|
|
65
66
|
chart.on("click", onClick);
|
|
66
67
|
chart.on("mouseover", onMouseOver);
|
|
67
68
|
chart.on("mouseout", onMouseOut);
|
|
68
69
|
return ()=>{
|
|
69
70
|
chart?.dispose();
|
|
71
|
+
delete chartElement.echartsInstance;
|
|
70
72
|
};
|
|
71
73
|
}, [
|
|
72
74
|
chartElement,
|
package/src/ChartSeries.js
CHANGED
package/types/chart-types.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export interface LineSeries extends SeriesBase {
|
|
|
37
37
|
}
|
|
38
38
|
export interface ScatterSeries extends SeriesBase {
|
|
39
39
|
type: "scatter";
|
|
40
|
+
z?: number;
|
|
40
41
|
}
|
|
41
42
|
export type Series = LineSeries | ScatterSeries;
|
|
42
43
|
export type ChartSelectionModel = "none" | "single" | "single-no-deselect" | "extended";
|