Migrating to 1.5.0

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
yaun
Posts: 4
Joined: Fri Jun 17, 2016 12:17 pm
antibot: No, of course not.

Migrating to 1.5.0

Post by yaun » Sat Nov 11, 2017 2:12 am

Thanks for the new version!

Making the switch to it was mostly straightforward, the only problem I was not able to figure out was the disappearance of BarRenderer3D, Effect3D. Is there now some other way to do this, or was this feature removed?

Below some notes for people who are still going to do the switch.

New maven coordinates:

Code: Select all

	// https://mvnrepository.com/artifact/org.jfree/jfreechart
	compile group: 'org.jfree', name: 'jfreechart', version: '1.5.0'
	// https://mvnrepository.com/artifact/org.jfree/jfreechart-fx
	compile group: 'org.jfree', name: 'jfreechart-fx', version: '1.0.0'
Latter obviously only necessary if you are using it with javafx.

Some class renaming:
ChartUtilities becomes ChartUtils
DatasetUtilities becomes DatasetUtils
...

Some path renaming:
org.jfree.ui.RectangleInsets becomes org.jfree.chart.ui.RectangleInsets
org.jfree.ui.RectangleEdge becomes org.jfree.chart.ui.RectangleEdge
...

Some method renaming:
renderer.setShapesVisible() becomes renderer.setDefaultShapesVisible()
renderer.setBaseItemLabelGenerator() become renderer.setDefaultItemLabelGenerator()
...

One behavioral change that I had to look into is that when using both a MouseHandlerFX and a ChartMouseListenerFX on the same chart, the ChartMouseListenerFX now gets fired last, while before it got fired first (at least for my app this is the case, not sure what factors influence the sequence here).

Hans Horn
Posts: 10
Joined: Mon Aug 04, 2008 10:39 pm

Re: Migrating to 1.5.0

Post by Hans Horn » Sun Nov 12, 2017 4:43 pm

There is a new JFreeChart version? How can I get it?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Migrating to 1.5.0

Post by david.gilbert » Sun Nov 12, 2017 11:44 pm

Hans Horn wrote:There is a new JFreeChart version? How can I get it?
https://github.com/jfree/jfreechart
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

dgarratt
Posts: 8
Joined: Mon Aug 19, 2019 7:29 pm
antibot: No, of course not.

Re: Migrating to 1.5.0

Post by dgarratt » Fri Sep 06, 2019 2:23 pm

What about changes in dependencies. I use version 1.0.19 which is included in JasperReports. Can I remove the old jar and add the new one to my classpath wihout doing anything else ?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Migrating to 1.5.0

Post by david.gilbert » Sun Sep 08, 2019 1:49 pm

No, there are breaking API changes. The README on the GitHub project page provides an overview of the main changes:

https://github.com/jfree/jfreechart
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked