fix donut metadata to work with chartData array