anchor.diff:              .Replace("Plotly.newPlot(", "Plotly.plot(")
               .Replace(
                   "data, layout);",
  -                "data, layout).then(ifsharpMakeImage);")
  +                "data, layout).then(ifsharpMakePng);")
  +
  +    member __.GetSvgHtml() =
  +        let html = __.GetInlineHtml()
  +        html
  +            .Replace("Plotly.newPlot(", "Plotly.plot(")
  +            .Replace(
  +                "data, layout);",
  +                "data, layout).then(ifsharpMakeSvg);")
   
   type XPlot.Plotly.Chart with
   
  -    static member Image (chart: PlotlyChart) =
  +    static member Png (chart: PlotlyChart) =
           { ContentType = "text/html"
             Data = chart.GetPngHtml()
           }
  +
  +    static member Svg (chart: PlotlyChart) =
  +        { ContentType = "text/html"
  +          Data = chart.GetSvgHtml()
  +        }
  
positive.code:             div.appendChild(img);
              gd.parentNode.replaceChild(div, gd);
          });
  }
  </script>
  """
  
negative.code: require = require_save;
  requirejs = requirejs_save;
  define = define_save;
  function ifsharpMakeImage(gd, fmt) {
      return Plotly.toImage(gd, {format: fmt})
          .then(function(url) {
              var img = document.createElement('img');
  