how use canvg for convert svg of bubble chart to png?

how i can use canvg library to convert bubble chart to png? i draw a bubble chart with highcharts library. when i use canvg and save to png i see a empty png.

var svg = new Highcharts().getSVG()
var canvas = document.createElement('canvas');
canvas.width = width;
canvas.height = height;
var ctx = canvas.getContext('2d');
canvg(canvas, svg);

empty Image



Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.