Manipulates chart data