async function renderToSVG(scaleFactor) {
    const r = await renderHeadless(this, RenderType.SVG, scaleFactor);
    return r.svg();
  }
Produce a rendered SVG string of the visualization.
This method is asynchronous, returning a Promise instance.
@return {Promise} - A promise that resolves to an SVG string.