working on query result chart