chart data cleanup