1

I ma exporting my svg created in D3js using cannvg. Whenever there is transform value to svg, a gray line is coming in exported image. If we remove gray line is gone. (Line is displayed in green circle)

enter image description here

Here is my code for svg

              var svg = mapContainer.append("svg")
                  .attr("width", width)
                  .attr("fill","#fff")
                  .attr("transform","translate(100, 0)")
                  .attr("height", height);

I am using canvg to export this svg.

  var canvasBase = document.createElement('canvas');
    var html = d3.select("svg")
                  .node().parentNode.innerHTML;
    canvg(canvasBase, html)
Cœur
  • 37,241
  • 25
  • 195
  • 267
Don
  • 1,334
  • 1
  • 10
  • 18

0 Answers0