# HG changeset patch # User Ingo Weinzierl # Date 1264068541 0 # Node ID d41c155db337d6521fe0ba66d9be36def2eb1c7a # Parent 7ff916744f406c58c3929d41b531bd8ac11c0771 Solved issue100. Improved axes range. Scale dataset to its own axis. gnv-artifacts/trunk@589 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 7ff916744f40 -r d41c155db337 gnv-artifacts/ChangeLog --- 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 + + 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 Issue152 diff -r 7ff916744f40 -r d41c155db337 gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java --- 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); }