首先是https://segmentfault.com/q/1010000013977846这边给我的启发,虽然没有完全解决问题,但是我有了思路,然后就解决了。哈哈
var keyGroupOption = {toolbox: { // 工具箱show: true,feature: {dataZoom: {show:false,yAxisIndex: 'none'},dataView: {show: true,iconStyle: {normal: {borderColor: '#ffffff'}}},magicType: {type: ['line', 'bar'],iconStyle: {borderColor: '#ffffff'},emphasis:{iconStyle: {borderColor: '#ffffff'},}},restore: {//配置项还原。show: true,iconStyle: {borderColor: '#ffffff'},emphasis:{iconStyle: {borderColor: '#ffffff'},}},saveAsImage: {//保存为图片。show: true,iconStyle: {borderColor: '#ffffff'},emphasis:{iconStyle: {borderColor: '#ffffff'},}}}}}