toolbox: {
show: true,
orient: 'vertical',
left: 'right',
top: 'center',
feature: {
mark: { show: false },
dataView: { show: true, readOnly: false },
magicType: { show: true, type: ['line', 'bar', 'stack'] },
restore: { show: true},
saveAsImage: { show: true }
}
},
在option{ }里面加一个toolbox{ }
显示效果如图所示: