initial new implementation of pie chart