feat: 图表增加保存图片功能(toolbox saveAsImage)

This commit is contained in:
wangfq
2026-06-05 12:02:37 +08:00
parent 877770aeab
commit 0ea3511b90

View File

@@ -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',