reporting: fix bug when data option is passed to addGraph