Refactored chart generator--cleaned up passing of c_data