fix tooltip in history allprintstatus chart

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej committed 2021-03-24 22:28:04 +01:00
1 parent f70a1813f4
commit 721964cf2c
3 files changed
+16 -8

No files matched your search

+7 -7
View File
@@ -11,7 +11,7 @@
"axios": "^0.21.1",
"core-js": "^3.8.2",
"echarts": "^5.0.2",
"echarts-gl": "^2.0.1",
"echarts-gl": "^2.0.2",
"object-assign-deep": "^0.4.0",
"plotly.js": "^1.58.4",
"prismjs": "^1.23.0",
@@ -6471,9 +6471,9 @@
}
},
"node_modules/echarts-gl": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/echarts-gl/-/echarts-gl-2.0.1.tgz",
"integrity": "sha512-sJyKUcSaalwzr+d0kskO7VjIKDXwnudnRiMS/Na6gvqx8yE7hAdLy9nna66ECEBipSUei2Y4D4PkofKbAxV+lw==",
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/echarts-gl/-/echarts-gl-2.0.2.tgz",
"integrity": "sha512-zTz5+ky4uXtHqI0YLbOiEDRifTRF8GXWA3OEy8v8luu6vloXB94AeDGspt9QKlzmXe5B/E3G41DPeWe1zArpWQ==",
"dependencies": {
"claygl": "^1.2.1",
"zrender": "^5.0.3"
@@ -24694,9 +24694,9 @@
}
},
"echarts-gl": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/echarts-gl/-/echarts-gl-2.0.1.tgz",
"integrity": "sha512-sJyKUcSaalwzr+d0kskO7VjIKDXwnudnRiMS/Na6gvqx8yE7hAdLy9nna66ECEBipSUei2Y4D4PkofKbAxV+lw==",
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/echarts-gl/-/echarts-gl-2.0.2.tgz",
"integrity": "sha512-zTz5+ky4uXtHqI0YLbOiEDRifTRF8GXWA3OEy8v8luu6vloXB94AeDGspt9QKlzmXe5B/E3G41DPeWe1zArpWQ==",
"requires": {
"claygl": "^1.2.1",
"zrender": "^5.0.3"
+1 -1
View File
@@ -12,7 +12,7 @@
"axios": "^0.21.1",
"core-js": "^3.8.2",
"echarts": "^5.0.2",
"echarts-gl": "^2.0.1",
"echarts-gl": "^2.0.2",
"object-assign-deep": "^0.4.0",
"plotly.js": "^1.58.4",
"prismjs": "^1.23.0",
@@ -29,6 +29,13 @@ export default {
type: 'pie',
data: [],
radius: '50%',
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}]
},
@@ -51,6 +58,7 @@ export default {
createChart() {
if (document.getElementById("historyAllPrintStatus") && this.chart === null) {
this.chart = echarts.init(document.getElementById("historyAllPrintStatus"), null, { renderer: 'svg' })
this.chart.setOption(this.chartOptions)
this.updateChart()
} else
setTimeout(() => {