Mercurial > dive4elements > river
changeset 2621:f0cc556eda29
FixingsKMChartService.java: Small fixes.
flys-artifacts/trunk@4206 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 05 Apr 2012 18:25:48 +0000 |
parents | cc0fa1798a3c |
children | 8bc1e1cb7f7b |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java |
diffstat | 2 files changed, 13 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Thu Apr 05 18:07:47 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Apr 05 18:25:48 2012 +0000 @@ -1,3 +1,9 @@ +2012-04-05 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java: + Small fixes: The service works as expected but there seems + to be a caching issue. + 2012-04-05 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java Thu Apr 05 18:07:47 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/FixingsKMChartService.java Thu Apr 05 18:25:48 2012 +0000 @@ -213,21 +213,21 @@ dataset.addSeries( "Fixierungen", // TODO: i18n - new double [][] { ws.toNativeArray(), qs.toNativeArray() }); + new double [][] { qs.toNativeArray(), ws.toNativeArray() }); - JFreeChart chart = ChartFactory.createXYLineChart( + JFreeChart chart = ChartFactory.createScatterPlot( "Fixierungen " + river + ": km " + km, // TODO: i18n "Q", // TODO: i18n "W", // TODO: i18n - null, + dataset, PlotOrientation.VERTICAL, true, - true, + false, false); - XYPlot plot = chart.getXYPlot(); + //XYPlot plot = chart.getXYPlot(); - plot.setDataset(dataset); + //plot.setDataset(dataset); ChartUtilities.applyCurrentTheme(chart); @@ -243,7 +243,7 @@ String river = ((Element)rivers.item(0)).getAttribute("name"); - return river.length() == 0 ? river : null; + return river.length() > 0 ? river : null; } protected static Double getKM(Document input) {