add PieChart

fix some Bugs