generate graphs before svg templating