public double computeMaxClassValueUsingPercentFactorPerSeries(DefaultChartData chartData,String[] series,double[] percentFactorPerSeries){
  double maxValue=0;
  for (  String className : chartData.getClassNamesIncludingDisabled()) {
    double total=0;
    for (int i=0; i < series.length; i++) {
      String seriesName=series[i];
      if (transposedHeightsAdditive)       total+=percentFactorPerSeries[i] * chartData.getValueAsDouble(seriesName,className);
 else       total=Math.max(total,percentFactorPerSeries[i] * chartData.getValueAsDouble(seriesName,className));
    }
    if (total > maxValue) {
      maxValue=total;
    }
  }
  return 1.1 * maxValue;
}

public double computeMaxClassValueUsingPercentFactorPerSeries ( DefaultChartData chartData , String [ ] series , double [ ] percentFactorPerSeries ) { double maxValue = 0 ; for ( String className : chartData . getClassNamesIncludingDisabled ( ) ) { double total = 0 ; for ( int i = 0 ; i < series . length ; i ++ ) { String seriesName = series [ i ] ; if ( transposedHeightsAdditive ) total += percentFactorPerSeries [ i ] * chartData . getValueAsDouble ( seriesName , className ) ; else total = Math . max ( total , percentFactorPerSeries [ i ] * chartData . getValueAsDouble ( seriesName , className ) ) ; } if ( total > maxValue ) { maxValue = total ; } } return 1.1 * maxValue ; }
gets the max value for a given class in a transposed chart when using percentages
