提交 359a5807 authored 作者: lihuihui's avatar lihuihui

修改样式

上级 1b35a57d
<template> <template>
<div class="echarts-box"> <div class="echarts-box">
<v-chart :options="option"/> <v-chart :options="option" :autoresize="true"/>
</div> </div>
</template> </template>
......
<template> <template>
<div> <div>
<v-chart :options="option"/> <v-chart :options="option" :autoresize="true"/>
</div> </div>
</template> </template>
...@@ -25,9 +25,11 @@ export default { ...@@ -25,9 +25,11 @@ export default {
}, },
methods: { methods: {
initChart() { initChart() {
const max = Math.max(...this.data.data.map(item => item.value))
this.option = { this.option = {
angleAxis: { angleAxis: {
show: false show: false,
max: max + max / 3
}, },
grid: { grid: {
top: '0%', top: '0%',
......
<template> <template>
<div class="echarts-box"> <div class="echarts-box">
<v-chart :options="option"/> <v-chart :options="option" :autoresize="true"/>
</div> </div>
</template> </template>
......
...@@ -78,6 +78,9 @@ export default { ...@@ -78,6 +78,9 @@ export default {
setTimeout(() => { setTimeout(() => {
this.getData(Math.round(countH / 35)) this.getData(Math.round(countH / 35))
}, 1000) }, 1000)
setInterval(() => {
this.getData(Math.round(countH / 35))
}, 60 * 1000)
}) })
}, },
methods: { methods: {
......
<template> <template>
<div class="echarts-box"> <div class="echarts-box">
<v-chart :options="option"/> <v-chart :options="option" :autoresize="true"/>
</div> </div>
</template> </template>
......
<template> <template>
<div class="echarts"> <div class="echarts">
<v-chart :options="option"/> <v-chart :options="option" :autoresize="true"/>
</div> </div>
</template> </template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论