Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java @ 1951:2c9bf9aede64
Fix first axis (do not include zero).
flys-artifacts/trunk@3347 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 05 Dec 2011 08:47:49 +0000 |
parents | 65f9d707caff |
children | 156304542edf |
comparison
equal
deleted
inserted
replaced
1950:37a7b3841565 | 1951:2c9bf9aede64 |
---|---|
92 // TODO i18n for this label | 92 // TODO i18n for this label |
93 label = "Q [m\u00b3/s]"; | 93 label = "Q [m\u00b3/s]"; |
94 //label = msg(get2YAxisLabelKey(), get2YAxisDefaultLabel()); | 94 //label = msg(get2YAxisLabelKey(), get2YAxisDefaultLabel()); |
95 } | 95 } |
96 NumberAxis axis = new NumberAxis(label); | 96 NumberAxis axis = new NumberAxis(label); |
97 if (index == YAXIS.W.idx) { | |
98 axis.setAutoRangeIncludesZero(false); | |
99 } | |
97 axis.setLabelFont(labelFont); | 100 axis.setLabelFont(labelFont); |
98 return axis; | 101 return axis; |
99 } | 102 } |
100 | 103 |
101 protected String getChartTitle() { | 104 protected String getChartTitle() { |