sort chart data and added percent