This commit is contained in:
‘937886381’
2024-05-08 16:38:05 +08:00
parent b3578cdd8a
commit 9c9dba5452
31 changed files with 483 additions and 291 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-05-07 13:22:43
* @LastEditTime: 2024-05-07 13:29:55
* @LastEditTime: 2024-05-08 15:52:09
* @LastEditors: zhp
* @Description:
-->
@@ -18,7 +18,7 @@
</div>
<div
ref="chart"
style="max-width: 50vw"
style="max-width: 40vw"
:style="{ height: vHeight + 'vh' }"
></div>
</chart-container>
@@ -198,7 +198,8 @@ export default {
this.initOptions(this.options);
return;
}
const actualOptions = JSON.parse(JSON.stringify(this.options));
console.log(val)
const actualOptions = JSON.parse(JSON.stringify(this.options))
actualOptions.series[0].data = val[0].data;
actualOptions.series[0].name = val[0].name;
actualOptions.series[1].data = val?.[1]?.data || [];