<div class="acountEchart">
<!-- 图例tab -->
<ul class="tabWrap">
<li v-for="(item, index) in legendList" :key="index" :class="!item.active ? 'noBgcolor' : ''" @click="tabCilck(item)">{
{ item.tab }}</li>
</ul>
<v-chart ref="myChart" :options="option" :autoresize="true" />
</div>
css代码:
.acountEchart {
margin-top: 28px;
width: 100%;
height: 252px;
position: relative;
.echarts {
width: 100%;
height: 100%;
}
}
.tabWrap{
display:flex;
justify-content</