MCPcopy Create free account
hub / github.com/dataease/SQLBot / GenerateCharts

Function GenerateCharts

g2-ssr/app.js:52–59  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

50
51// 创建 Chart 和配置
52async 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

Callers 1

toPostFunction · 0.85

Calls 2

getOptionsFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected