implement the pie chart in menu panel