added responsive functionality for pie chart
added tests and fixed error on "element" property