feat:修改overview的type为ruleBar的显示
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -395,6 +395,9 @@
|
||||
font-weight: 600;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
.yAxis-text-style{
|
||||
white-space: nowrap;
|
||||
}
|
||||
.overview {
|
||||
.tooltip--row {
|
||||
display: flex;
|
||||
|
||||
@@ -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;">
|
||||
|
||||
Reference in New Issue
Block a user