(obj)
| 50 | |
| 51 | // 创建 Chart 和配置 |
| 52 | async function GenerateCharts(obj) { |
| 53 | const options = getOptions(obj.type, JSON.parse(obj.axis), JSON.parse(obj.data)); |
| 54 | const chart = await createChart(options); |
| 55 | // 导出 |
| 56 | chart.exportToFile(obj.path || 'chart'); |
| 57 | // -> chart.png |
| 58 | chart.toBuffer(); |
| 59 | } |
| 60 | |
| 61 | // -> get buffer |
| 62 |
no test coverage detected