Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator2.java @ 8317:c04c66839288
Do not die if values <= 0 are tried to be plotted on log axis.
author | "Tom Gottfried <tom@intevation.de>" |
---|---|
date | Wed, 24 Sep 2014 16:24:32 +0200 |
parents | e4606eae8ea5 |
children | 130160b8d245 |
comparison
equal
deleted
inserted
replaced
8316:c086b06b81e5 | 8317:c04c66839288 |
---|---|
1229 | 1229 |
1230 setYBounds(axisIndex, expandPointRange(axisDataset.getRange())); | 1230 setYBounds(axisIndex, expandPointRange(axisDataset.getRange())); |
1231 | 1231 |
1232 // Add contained datasets, mapping to axis. | 1232 // Add contained datasets, mapping to axis. |
1233 for (XYDataset dataset: axisDataset.getDatasets()) { | 1233 for (XYDataset dataset: axisDataset.getDatasets()) { |
1234 plot.setDataset(datasetIndex, dataset); | 1234 try { |
1235 plot.mapDatasetToRangeAxis(datasetIndex, axisIndex); | 1235 plot.setDataset(datasetIndex, dataset); |
1236 | 1236 plot.mapDatasetToRangeAxis(datasetIndex, axisIndex); |
1237 applyThemes(plot, dataset, | 1237 |
1238 datasetIndex, | 1238 applyThemes(plot, dataset, |
1239 axisDataset.isArea(dataset)); | 1239 datasetIndex, |
1240 | 1240 axisDataset.isArea(dataset)); |
1241 datasetIndex++; | 1241 |
1242 datasetIndex++; | |
1243 } | |
1244 catch (RuntimeException re) { | |
1245 log.error(re); | |
1246 } | |
1242 } | 1247 } |
1243 | 1248 |
1244 axisDataset.setPlotAxisIndex(axisIndex); | 1249 axisDataset.setPlotAxisIndex(axisIndex); |
1245 axisIndex++; | 1250 axisIndex++; |
1246 } | 1251 } |