|
@@ -73,9 +73,9 @@ function drawGraph(data,resultShowId) {
|
|
|
icon: 'circle',
|
|
|
width: 766,
|
|
|
verticalAlign:'top',
|
|
|
- // borderColor:'#E6E6E6',
|
|
|
- // borderWidth:'1px',
|
|
|
- padding:[20, 40, 0, 20],
|
|
|
+ borderColor:'#E6E6E6',
|
|
|
+ borderWidth:'1px',
|
|
|
+ padding:[20, 1000, 0, 1000],
|
|
|
backgroundColor: "#FFFFFF",
|
|
|
// orient: 'vertical',
|
|
|
data: legends.slice(0,showLegendNum).map(function (a) {
|
|
@@ -163,6 +163,9 @@ function drawGraph(data,resultShowId) {
|
|
|
myChart.resize();
|
|
|
})
|
|
|
myChart.on('click',dataClick);
|
|
|
+ myChart.on('legendselectedchanged',function(obj){
|
|
|
+ console.log('aaaaaaa')
|
|
|
+ })
|
|
|
myChart.setOption(option,true);
|
|
|
const legendsSlice = legends.slice(0,showLegendNum)
|
|
|
if(legends.length > showLegendNum){
|