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() { created() {
this.option=chartConfig.getOption(this.chartType); this.option=chartConfig.getOption(this.chartType);
if(this.chartType==='ruleBar'){ if(this.chartType==='ruleBar'){
this.option.yAxis.position='right';
this.option.yAxis.axisLabel.formatter=function(value) { this.option.yAxis.axisLabel.formatter=function(value) {
if (value.length > 12) { if (value.length > 15) {
return value.substring(0, 12) + "..."; return value.substring(0, 15) + "...";
}else{ }else{
return value return value
} }

View File

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

View File

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

View File

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