code: function() {
      var maxValue = 0, stacked = this.config.type.split(':')[0] == 'stacked';
      this.st.graph.eachNode(function(n) {
        var valArray = n.getData('valueArray'),
            acum = 0;
        if(!valArray) return;
        if(stacked) {
          $.each(valArray, function(v) { 
            acum += +v;
          });
        } else {
          acum = Math.max.apply(null, valArray);
        }
        maxValue = maxValue>acum? maxValue:acum;
      });
      return maxValue;
    }
docs: /*
  Method: getMaxValue
  
  Returns the maximum accumulated value for the stacks. This method is used for normalizing the graph heights according to the canvas height.
  
  Example:
  
  (start code js)
  var ans = barChart.getMaxValue();
  (end code)
  
  In some cases it could be useful to override this method to normalize heights for a group of BarCharts, like when doing small multiples.
  
  Example:
  
  (start code js)
  will return 100 for all BarChart instances,
  displaying all of them with the same scale
  $jit.BarChart.implement({
  'getMaxValue': function() {
  return 100;
  }
  });
  (end code)