-
+
{{$t("dashboard.panel.moreTitle")}} {{$t("dashboard.panel.showAll")+legendAll.length}}
@@ -44,10 +44,13 @@
return {
chart:null,
option:null,
+ optionSeriesAll:null,
chartId: this.name + '-'+this.guid()+'-'+new Date().getTime(),
legend:[],
+ legendAll:[],
colors:chartConfig.getBgColorList(),
noData:false,
+ dataSize:20,
}
},
created() {
@@ -64,7 +67,8 @@
this.$set(this.option[target],name,obj)
},
setLegend:function(legend){
- this.legend=legend;
+ this.legendAll=legend;
+ this.legend=legend.filter((item,index)=>index
index-->