added setColor method to pie chart