feat: 图表增加保存图片功能(toolbox saveAsImage)
This commit is contained in:
@@ -320,6 +320,16 @@ async function loadChart() {
|
||||
type: 'scroll',
|
||||
bottom: 0,
|
||||
},
|
||||
toolbox: {
|
||||
right: 10,
|
||||
top: 10,
|
||||
feature: {
|
||||
saveAsImage: {
|
||||
title: '保存图片',
|
||||
pixelRatio: 2,
|
||||
},
|
||||
},
|
||||
},
|
||||
grid: { left: 60, right: 140, top: 60, bottom: 80 },
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
|
||||
Reference in New Issue
Block a user