[Chartjs]-Unable to add background color to the canvas using jspdf and chartjs

9๐Ÿ‘

โœ…

I think you can solve your issue by adding a rect to the image before exporting it to pdf:

  doc.setFillColor(204, 204,204,0);
  doc.rect(10, 10, 150, 160, "F");

see updated fiddle:

Leave a comment