Scalable Scalable Vector Graphics: Automatic translation of interactive SVGs to a multithread VDOM for fast rendering

@Article{Schwab2021ScalableScalableVector,
  author   = {Schwab, Michail and Saffo, David and Bond, Nicholas and Sinha, Shash and Dunne, Cody and Huang, Jeff and Tompkin, James and Borkin, Michelle A.},
  journal  = {IEEE Transactions on Visualization and Computer Graphics},
  title    = {{Scalable Scalable Vector Graphics}: Automatic translation of interactive {SVGs} to a multithread {VDOM} for fast rendering},
  year     = {2021},
  issn     = {1941-0506},
  note     = {Preprint \& supplemental material: \url{https://osf.io/ypxz2}},
  pages    = {1--1},
  abstract = {The dominant markup language for Web visualizations---Scalable Vector Graphics (SVG)---is comparatively easy to learn, and is open, accessible, customizable via CSS, and searchable via the DOM, with easy interaction handling and debugging. Because these attributes allow visualization creators to focus on design on implementation details, tools built on top of SVG, such as D3.js, are essential to the visualization community. However, slow SVG rendering can limit designs by effectively capping the number of on-screen data points, and this can force visualization creators to switch to Canvas or WebGL. These are less flexible (e.g., no search or styling via CSS), and harder to learn. We introduce Scalable Scalable Vector Graphics (SSVG) to reduce these limitations and allow complex and smooth visualizations to be created with SVG. SSVG automatically translates interactive SVG visualizations into a dynamic virtual DOM (VDOM) to bypass the browser's slow ‘to specification’ rendering by intercepting JavaScript function calls. De-coupling the SVG visualization specification from SVG rendering, and obtaining a dynamic VDOM, creates flexibility and opportunity for visualization system research. SSVG uses this flexibility to free up the main thread for more interactivity and renders the visualization with Canvas or WebGL on a web worker. Together, these concepts create a drop-in JavaScript library which can improve rendering performance by 3-9X with only one line of code added. To demonstrate applicability, we describe the use of SSVG on many example visualizations including published visualization research. A free copy of this paper, collected data, and source code are available at https://osf.io/ge8wp.},
  doi      = {10.1109/TVCG.2021.3059294},
  series   = {TVCG},
}

Khoury Vis Lab — Northeastern University
West Village H, Room 302
440 Huntington Ave, Boston, MA 02115, USA