changeset 506:d41c155db337

Solved issue100. Improved axes range. Scale dataset to its own axis. gnv-artifacts/trunk@589 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 21 Jan 2010 10:09:01 +0000
parents 7ff916744f40
children 45be952a3215
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Wed Jan 20 17:54:48 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Thu Jan 21 10:09:01 2010 +0000
@@ -1,3 +1,13 @@
+2010-01-21  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue100
+
+	* src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java: If there
+	  are more than one axis, each dataset is mapped to its own dataset after
+	  adding it to the plot (one dataset for each parameter). In this way, we
+	  get a well scaled axis for each parameter which is independent from other
+	  axes (see range of salinity and air-pressure for example).
+
 2010-01-20  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 	
 	  Issue152
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java	Wed Jan 20 17:54:48 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java	Thu Jan 21 10:09:01 2010 +0000
@@ -133,6 +133,8 @@
             plot.setRangeAxisLocation(idx, AxisLocation.BOTTOM_OR_RIGHT);
         else
             plot.setRangeAxisLocation(idx, AxisLocation.BOTTOM_OR_LEFT);
+
+        plot.mapDatasetToRangeAxis(idx, idx);
     }
 
 

http://dive4elements.wald.intevation.org