Split and optimize ChartController::IndexAction