Mercurial > dive4elements > river
changeset 4176:0e5544c54be8
Fixed flys/issue929. Made zero baseline in historical discharge curve charts visible.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 18 Oct 2012 15:14:53 +0200 |
parents | f03774ed984e |
children | 98ea6429ddda |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveGenerator.java |
diffstat | 1 files changed, 17 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveGenerator.java Thu Oct 18 14:40:37 2012 +0200 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/HistoricalDischargeCurveGenerator.java Thu Oct 18 15:14:53 2012 +0200 @@ -1,5 +1,16 @@ package de.intevation.flys.exports; +import java.util.Date; + +import org.apache.log4j.Logger; +import org.jfree.chart.plot.XYPlot; +import org.jfree.data.general.SeriesException; +import org.jfree.data.time.Day; +import org.jfree.data.time.RegularTimePeriod; +import org.jfree.data.time.TimeSeries; +import org.jfree.data.time.TimeSeriesCollection; +import org.w3c.dom.Document; + import de.intevation.artifactdatabase.state.ArtifactAndFacet; import de.intevation.flys.artifacts.FLYSArtifact; import de.intevation.flys.artifacts.access.HistoricalDischargeAccess; @@ -10,16 +21,6 @@ import de.intevation.flys.jfree.StyledTimeSeries; import de.intevation.flys.utils.FLYSUtils; -import java.util.Date; - -import org.apache.log4j.Logger; -import org.jfree.data.general.SeriesException; -import org.jfree.data.time.Day; -import org.jfree.data.time.RegularTimePeriod; -import org.jfree.data.time.TimeSeries; -import org.jfree.data.time.TimeSeriesCollection; -import org.w3c.dom.Document; - /** * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> @@ -114,6 +115,12 @@ } } + @Override + protected void adjustPlot(XYPlot plot) { + super.adjustPlot(plot); + plot.setRangeZeroBaselineVisible(true); + } + @Override public void doOut(