feat:修改overview的type为ruleBar的显示

This commit is contained in:
zhangyu
2020-11-18 16:10:30 +08:00
parent 2d9a27b0de
commit 07ccb9bc20
4 changed files with 11 additions and 6 deletions

View File

@@ -58,9 +58,10 @@
created() {
this.option=chartConfig.getOption(this.chartType);
if(this.chartType==='ruleBar'){
this.option.yAxis.position='right';
this.option.yAxis.axisLabel.formatter=function(value) {
if (value.length > 12) {
return value.substring(0, 12) + "...";
if (value.length > 15) {
return value.substring(0, 15) + "...";
}else{
return value
}

View File

@@ -203,8 +203,8 @@
},
grid: {
top: 60,
left: 100,
right: 30,
left: 30,
right: 120,
bottom: 60,
},
series: [],
@@ -224,7 +224,8 @@
axisLabel: {
show:true,
fontSize: 14
}
},
inverse:true
},
yAxis: {
type: 'category',

View File

@@ -395,6 +395,9 @@
font-weight: 600;
padding-bottom: 10px;
}
.yAxis-text-style{
white-space: nowrap;
}
.overview {
.tooltip--row {
display: flex;

View File

@@ -196,7 +196,7 @@
</div>
</div>
</div>
<div class="axis-tooltip el-popover"></div>
<div class="axis-tooltip el-popover yAxis-text-style"></div>
<!--用于assetType饼图label-->
<img src='../../../../assets/img/up.png' id="upPic" style="display: none;">
<img src='../../../../assets/img/down.png' id="downPic" style="display: none;">