Sort values for pie charts, increase data for line chart