reporting: simplify graph code