CHANGED:applied the piechart with dynamic query result