Added new Class for counting max value of charts.