improve speed by preventing unneeded redraws
Merge branch 'piechart'