Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java @ 848:47280aff0eb7
Added an y-axis label in histograms (issue243).
gnv-artifacts/trunk@964 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 21 Apr 2010 09:43:46 +0000 |
parents | ac5988f27714 |
children | 4bcf7bf4bfb7 |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java Wed Apr 21 09:19:07 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java Wed Apr 21 09:43:46 2010 +0000 @@ -419,7 +419,7 @@ for (int i = 0; i < size; i++) { ChartLabels labels = createHistogramLabels( - uuid, callContext, data[i]); + uuid, callContext, locale, data[i]); ChartTheme theme = createStyle(callContext); @@ -1111,9 +1111,15 @@ * @return A ChartLabels object with the 1st string in <i>data</i> as title. */ protected ChartLabels createHistogramLabels( - String uuid, CallContext context, Object[] data) + String uuid, CallContext context, Locale locale, Object[] data) { - return new ChartLabels((String) data[0], "", ""); + RessourceFactory fac = RessourceFactory.getInstance(); + + return new ChartLabels( + (String) data[0], + "", + "", + fac.getRessource(locale, "histogram.axis.range.title", "")); }