panosoft / node-chartist

SVG Charts on the server.
The Unlicense
82 stars 20 forks source link

code is not working for print #26

Open hirenmistry17 opened 6 months ago

hirenmistry17 commented 6 months ago

image

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