comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 717:be4709640aac

#90 Added a margin between chart data and chart axes to avoid displaying curves on the chart border. flys-artifacts/trunk@2190 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 21 Jun 2011 17:39:29 +0000
parents b22f21b173a7
children f3fd8c9b7f51
comparison
equal deleted inserted replaced
716:733d6db30722 717:be4709640aac
165 165
166 Range computed = new Range( 166 Range computed = new Range(
167 min + x.getLowerBound() * diff, 167 min + x.getLowerBound() * diff,
168 min + x.getUpperBound() * diff); 168 min + x.getUpperBound() * diff);
169 169
170 axis.setRange(computed); 170 axis.setRangeWithMargins(computed);
171 171
172 logger.debug("Zoom axis to: " + computed); 172 logger.debug("Zoom axis to: " + computed);
173 173
174 return true; 174 return true;
175 } 175 }
176 176
177 axis.setRange(range); 177 axis.setRangeWithMargins(range);
178 return false; 178 return false;
179 } 179 }
180 180
181 181
182 /** 182 /**

http://dive4elements.wald.intevation.org