implemented the pie chart using flotr2 plugin