feat:修改饼图到上方的位置 以及缩放后的居中
This commit is contained in:
@@ -838,6 +838,8 @@
|
|||||||
type: 'pie',
|
type: 'pie',
|
||||||
radius: ['20%', '100%'],
|
radius: ['20%', '100%'],
|
||||||
center: ['50%', '50%'],
|
center: ['50%', '50%'],
|
||||||
|
top:"20%",
|
||||||
|
bottom:"20%",
|
||||||
roseType: 'radius',
|
roseType: 'radius',
|
||||||
minAngle:10,
|
minAngle:10,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<div :id="'pie-chart-local-'+chartIndex" ref="pieChartLocal" ></div>
|
<div :id="'pie-chart-local-'+chartIndex" ref="pieChartLocal" style="display: flex;justify-content: center"></div>
|
||||||
<div class="chart-no-data" v-show="noData">No Data</div>
|
<div class="chart-no-data" v-show="noData">No Data</div>
|
||||||
<div class='legend-container' ref="legendArea" v-show="firstShow">
|
<div class='legend-container' ref="legendArea" v-show="firstShow">
|
||||||
<div v-for="(item, index) in legend" :title="item.alias?item.alias:item.name" @click="clickLegend(item.name,index)" class="legend-item" :class="{'ft-gr':isGrey[index]}" :key="'legend_' + item.name+'_'+index">
|
<div v-for="(item, index) in legend" :title="item.alias?item.alias:item.name" @click="clickLegend(item.name,index)" class="legend-item" :class="{'ft-gr':isGrey[index]}" :key="'legend_' + item.name+'_'+index">
|
||||||
@@ -374,7 +374,6 @@ export default {
|
|||||||
},
|
},
|
||||||
initChart:function(type){
|
initChart:function(type){
|
||||||
this.option.series = this.pieData;
|
this.option.series = this.pieData;
|
||||||
|
|
||||||
if(type == 'local'){
|
if(type == 'local'){
|
||||||
this.initLocal();
|
this.initLocal();
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -822,7 +822,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="project-content-title">{{$t('project.topology.name')}}</div>
|
<div class="project-content-title">
|
||||||
|
Appearance
|
||||||
|
<!--{{$t('project.topology.name')}}-->
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="project-content-box" style="width: 100%">
|
<div class="project-content-box" style="width: 100%">
|
||||||
<div class="project-content-item half">
|
<div class="project-content-item half">
|
||||||
|
|||||||
Reference in New Issue
Block a user