Fixed method that calculated percentage to the charts.