make the colors of the pie charts statefull for a page