toolbox : {
show : true,
orient : 'vertical',
x:'left',
top : '20%',
feature : {
myTool : {
show : true,
title : '自定义扩展方法',
icon : 'image://http://localhost:8080/test/skins/test.png',
onclick : function (){
alert(1);
}
},
dataView : {
show : true,
readOnly : false
}
}
},
需要在图片路径前加上 image://
注:具体原因我也不清楚,不知道是echarts特有的图片路径格式,还是一种特殊的路径。
如果哪位大神知道,望指点一二,感谢。