Added graph integration with query, Full working graphstatdata()