owid-grapher-svgs

Reference data and generated images for comparison.

This repo contains a reference set of static grapher configs and data that can be used alongside the svgTester tools in the owid-grapher repo.

How to use

Use this manually when you have changed grapher, and want to know if your change has changed any chart layouts.

  1. Clone the repo locally, in a sibling folder to owid-grapher.

  2. Regenerate any SVGs that have changed

    node ./itsJustJavascript/devTools/svgTester/export-graphs.js \
        -i ../owid-grapher-svgs/configs \
        -o ../owid-grapher-svgs/svg
    
  3. Use git to see any changes

  4. If there are changes, commit them to a branch and you can see a visual diff on Github