Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of createBarChart3D in JFreeChart 1.5.0?

JFreeChart 1.0.19 contained the method ChartFactory.createBarChart3D. That method is not available in JFreeChart 1.5.0.

Is there another 1.5.0 method that replaces createBarChart3D? Or is there a workaround (maybe including ChartFactory.createBarChart) to build a "3D" chart in 1.5.0? Or do I have to settle for "2D" charts after the upgrade?

JFreeChart 1.5.0's createBarChart does have a "3D-ish" look. Maybe it was decided that the improved createBarChart made createBarChart3D unnecessary?

like image 801
Stefan Avatar asked Dec 19 '17 12:12

Stefan


1 Answers

Yes and no. A noted here in 1.5.0, createBarChart3D is gone but createBarChart has been improved. So you either stay on 1.0.19 and use createBarChart3D, or upgrade to 1.5.0 and use createBarChart (or use another framework for your graphs).

1.5.0's createBarChart has a Mario-Brothers-pipe-3D-effect that (in my opinion) make it look better than 1.0.19's 3D charts. So my recommendation is to go for 1.5.0's createBarChart.

like image 128
Stefan Avatar answered Nov 08 '22 13:11

Stefan