Add average on repartition charts.

It needs some verification on the value used to calculate the averages.
Merge pull request #600 from aledeg/average

Add average on repartition charts.