Hello;
I'm using the Chart JS plugin.
How can I save the resulting chart imagine in JPEG or PNG format?
app.LoadPlugin('ChartJS')
function OnStart()
{
chart = app.LoadChartJS()
lay = app.CreateLayout('Linear', 'VCenter, FillXY')
data = {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May'],
datasets: [
{
label: 'Downloads',
backgroundColor: "#9C27B0",
borderColor: "#7B1FA2",
borderWidth: 1,
data: [5, 10, -4, 12, 15]
}
]
}
hbar = chart.CreateChart(data, 'horizontalBar', 0.9, 0.5)
lay.AddChild(hbar)
app.AddLayout(lay)
}