|
@@ -77,6 +77,7 @@ function drawGraph(data,resultShowId) {
|
|
|
// borderTopWidth:1,
|
|
|
padding:[20, 1000, 0, 1000],
|
|
|
backgroundColor: "#FFFFFF",
|
|
|
+ selected:{},
|
|
|
// orient: 'vertical',
|
|
|
data: legends.slice(0,showLegendNum).map(function (a) {
|
|
|
return a.name;
|
|
@@ -167,7 +168,7 @@ function drawGraph(data,resultShowId) {
|
|
|
myChart.on('legendselectchanged',function(obj){
|
|
|
selected = obj.selected
|
|
|
})
|
|
|
- myChart.setOption(option,false);
|
|
|
+ myChart.setOption(option,true);
|
|
|
if(legends.length > showLegendNum){
|
|
|
$('.legendSlideUp').toggleClass('legendSlideUp')
|
|
|
$('.legendIcon').css('display',"block")
|
|
@@ -188,7 +189,7 @@ function drawGraph(data,resultShowId) {
|
|
|
option.legend[0].selected = selected
|
|
|
}
|
|
|
|
|
|
- myChart.setOption(option,false);
|
|
|
+ myChart.setOption(option,true);
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -623,15 +624,15 @@ function setTabBottomHei(type){
|
|
|
$(".tabBottom").css({
|
|
|
'margin': '0px 0px 0px 0px'
|
|
|
})
|
|
|
- $(".tabBottom").css("height",contentHei-80-43-10+'px')
|
|
|
- $(".ztree").css("height",contentHei-80-43-60-20-24+'px')
|
|
|
+ $(".tabBottom").css("height",contentHei-80-43-10+19+'px')
|
|
|
+ $(".ztree").css("height",contentHei-80-43-60-20-24+19+'px')
|
|
|
|
|
|
}else if(type == 2){
|
|
|
- $(".tabBottom").css("height",contentHei-80-43-10-20+'px')
|
|
|
+ $(".tabBottom").css("height",contentHei-80-43-10-20+19+'px')
|
|
|
$(".tabBottom").css({
|
|
|
'margin': '20px 0px 0px 0px'
|
|
|
})
|
|
|
- $(".ztree").css("height",contentHei-80-43-20-20-20+'px')
|
|
|
+ $(".ztree").css("height",contentHei-80-43-20-20-20+19+'px')
|
|
|
}
|
|
|
}
|
|
|
|