mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 17:16:01 +00:00
save PNG chart preview
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const getChartExport = (title, config) => {
|
||||
const getChartExport = (title, config, imageFile) => {
|
||||
return `<html>
|
||||
<meta charset='utf-8'>
|
||||
|
||||
@@ -25,7 +25,7 @@ const getChartExport = (title, config) => {
|
||||
</html>
|
||||
|
||||
<body onload="showChart()">
|
||||
<img src="img1.png" id="myImage" />
|
||||
<img src="${imageFile}" id="myImage" />
|
||||
|
||||
<div>
|
||||
<canvas id="myChart"></canvas>
|
||||
|
||||
Reference in New Issue
Block a user