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.
Use this manually when you have changed grapher, and want to know if your change has changed any chart layouts.
-
Clone the repo locally, in a sibling folder to
owid-grapher
. -
Regenerate any SVGs that have changed
node ./itsJustJavascript/devTools/svgTester/export-graphs.js \ -i ../owid-grapher-svgs/configs \ -o ../owid-grapher-svgs/svg
-
Use git to see any changes
-
If there are changes, commit them to a branch and you can see a visual diff on Github