dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11748
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3428: small fix (moved some code...)
------------------------------------------------------------
revno: 3428
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-04-19 09:56:55 +0200
message:
small fix (moved some code...)
modified:
dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/chart/impl/DefaultChartService.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/chart/impl/DefaultChartService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/chart/impl/DefaultChartService.java 2011-04-18 13:03:42 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/chart/impl/DefaultChartService.java 2011-04-19 07:56:55 +0000
@@ -479,6 +479,14 @@
{
plot = new CategoryPlot( dataSets[0], new CategoryAxis(), new NumberAxis(), line3dRenderer );
}
+ else if ( chart.isType( TYPE_BAR3D ) )
+ {
+ plot = new CategoryPlot( dataSets[0], new CategoryAxis(), new NumberAxis(), bar3dRenderer );
+ }
+ else if ( chart.isType( TYPE_BAR ) )
+ {
+ plot = new CategoryPlot( dataSets[0], new CategoryAxis(), new NumberAxis(), barRenderer );
+ }
else if ( chart.isType( TYPE_PIE ) || chart.isType( TYPE_PIE3D ) )
{
JFreeChart multiplePieChart = null;
@@ -524,14 +532,6 @@
return multiplePieChart;
}
- else if ( chart.isType( TYPE_BAR3D ) )
- {
- plot = new CategoryPlot( dataSets[0], new CategoryAxis(), new NumberAxis(), bar3dRenderer );
- }
- else if ( chart.isType( TYPE_BAR ) )
- {
- plot = new CategoryPlot( dataSets[0], new CategoryAxis(), new NumberAxis(), barRenderer );
- }
if ( chart.isRegression() )
{