@vuu-ui/vuu-chart 3.5.14 → 3.5.16

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.5.14",
2
+ "version": "3.5.16",
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.14",
13
- "@vuu-ui/vuu-protocol-types": "3.5.14",
14
- "@vuu-ui/vuu-data-local": "3.5.14"
12
+ "@vuu-ui/vuu-data-types": "3.5.16",
13
+ "@vuu-ui/vuu-protocol-types": "3.5.16",
14
+ "@vuu-ui/vuu-data-local": "3.5.16"
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.14",
20
- "@vuu-ui/vuu-ui-controls": "3.5.14",
21
- "@vuu-ui/vuu-utils": "3.5.14",
19
+ "@vuu-ui/vuu-context-menu": "3.5.16",
20
+ "@vuu-ui/vuu-ui-controls": "3.5.16",
21
+ "@vuu-ui/vuu-utils": "3.5.16",
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,
@@ -120,7 +120,8 @@ class ChartSeries extends EventEmitter {
120
120
  name: seriesColumn,
121
121
  symbol,
122
122
  symbolSize: 20,
123
- type: "scatter"
123
+ type: "scatter",
124
+ z: 3
124
125
  };
125
126
  }
126
127
  if (scatterSeries) seriesMap.set(seriesColumn, [
@@ -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";