node-chartist
node-chartist copied to clipboard
code is not working for print
code :
const createChart = async (datas) => {
const options = {width: 400, height: 200};
const data = {
labels: ['a','b','c','d','e'],
series: [
[1, 2, 3, 4, 5],
[3, 4, 5, 6, 7]
]
};
const bar = await generate('bar', options, data);
return bar;
}
this 'createChart' function will return html content, and same content will i'm using for print but not able print,
can you please look into this asap, Thanks