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特有的图片路径格式,还是一种特殊的路径。
如果哪位大神知道,望指点一二,感谢。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)