Migrating to 1.5.0

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
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?

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

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?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited

Post Reply