JFreeChart 2?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rfuegen
Posts: 4
Joined: Mon Jul 21, 2014 12:20 am
antibot: No, of course not.

JFreeChart 2?

Post by rfuegen » Fri Aug 08, 2014 12:34 am

David,

I just learned from your post regarding timezones that JFreeChart 2 is in the making.

Maybe you could give us some thoughts, basic concepts, plans regarding this version?

I haven't gone through much of the code yet (just Axis & related), but noticed some things:

- eclipse issues about 3500++ warnings that generic types should be parameterized (which sometimes makes life easier)
- the axis label(s) could become separate objects (similar to JLabels), instead of being handled via Axis.setLabel...() methods
- insets resemble EmptyBorders

I've got the impression that some code was necessary in early days for the implementation of functionality that has later been integrated in Java.

but, in general: JFreeChart 1.x is an amazing piece of software, big thanks for it!

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

Re: JFreeChart 2?

Post by david.gilbert » Sat Aug 16, 2014 5:58 am

You can find the code for JFreeChart 2 here:

https://github.com/jfree/jfreechart-fse

The changes are not drastic, but include:

- removal of the JCommon dependency (some of the classes that are used from JCommon have been moved directly into the JFreeChart jar);
- removal of all deprecated methods, plus renamed a few existing methods;
- removed some code that existed only to support JDK 1.3 and 1.4 (we're now requiring 1.6);
- added generics in a lot of places;
- updated the default look of the charts;
- added code for selection of items in datasets;
- and probably a few other things that I've forgotten.

There are many more changes that could be made but it all takes time.
David Gilbert
JFreeChart Project Leader

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

Locked