Piechart toggle working