Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java @ 8723:686d8876edf9
(issue1754) Fix Radius calculation for filtered (smoothed) facets
To know the acutal extend of the Domain axis shown we need
to know all data in the diagram as the acutal extend is
the data point needed to calculate a Radius confusingly configured
in zoom-scales we have to add all data first and
then add the real filtered facets in a postprocessing step.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 29 Apr 2015 11:56:04 +0200 |
parents | 0d3d018fc632 |
children | bbf6cf555e89 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Tue Apr 28 14:22:47 2015 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Wed Apr 29 11:56:04 2015 +0200 @@ -166,6 +166,10 @@ } } + protected void postProcess() { + return; + } + /** * Generate the chart anew (including localized axis and all). */ @@ -173,6 +177,8 @@ public JFreeChart generateChart() { log.debug("DiagramGenerator.generateChart"); + postProcess(); + JFreeChart chart = ChartFactory.createXYLineChart( getChartTitle(), "",