fixed pdf export; fix is in graph.html