请教:当横坐标添加dataZoom的时候,保存出来的图片只有部分;想要将完整的数据保存在一个图片中,如何实现?
配置项如下
option = {
title: {
text: 'Awesome Chart'
},
xAxis: {
data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat','Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Fri', 'Sat','Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
},
yAxis: {},
dataZoom : {
show : true,
realtime : true,
start : 0,
end : 30
},
toolbox: {
show: true,
feature: {
saveAsImage: { show: true,backgroundColor:"#0A2852"}
},
right: 20,
top: '5%',
iconStyle: {
normal: {
borderColor: '#00FEFD',
borderWidth: '1'
}
}
},
series: [{
type: 'line',
data:[220, 182, 191, 234, 290, 330, 310,220, 182, 191, 234, 290, 330, 310,220, 182, 191, 234, 290, 330, 310,220, 182, 191, 234, 290, 330, 310]
}]
};