How to use with JavaFX?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
baegmon
Posts: 5
Joined: Fri Oct 07, 2016 3:55 pm
antibot: No, of course not.

How to use with JavaFX?

Post by baegmon » Fri Oct 07, 2016 4:05 pm

Hi everyone, I'm trying to implement JFreeChart with JavaFX but I seem to be stuck.

What I've done so far:
I've downloaded the JFreeChart 1.0.19.zip from the website.
I've extracted it and from the lib folder, I've imported the jcommon, jfreechart, jfreesvg, hamcrest and servlet jar files into my project.

Then I've found https://bitbucket.org/emxsys/javafx-cha ... hartViewer which tells me that I have to copy the "ChartViewer" source from the distribution but I'm not sure what that means. After a bit of research, I've found that by default the JFreeChart 1.0.19.jar has FXGraphics2D for JavaFX Support which confuses me more.

Basically, I'm confused on how to get a basic setup going.
Could I get any help on getting started?

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: How to use with JavaFX?

Post by John Matthews » Sat Oct 08, 2016 6:29 am

For reference, I built a JAR with JavaFX support from the 1.0.19 source like this.

baegmon
Posts: 5
Joined: Fri Oct 07, 2016 3:55 pm
antibot: No, of course not.

Re: How to use with JavaFX?

Post by baegmon » Sat Oct 08, 2016 9:59 am

John Matthews wrote:For reference, I built a JAR with JavaFX support from the 1.0.19 source like this.
Thanks!
Trying to compile with maven kept failing the errors (even with error checking turned off!).
Changing it as per your post has helped me compile and function on JavaFX, extremely appreciate the help!

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

Re: How to use with JavaFX?

Post by david.gilbert » Sun Oct 09, 2016 4:11 pm

I'll get a new release of FXGraphics2D out, then release a version of JFreeChart that has JavaFX support out-of-the-box. That will make it easier for everyone.
David Gilbert
JFreeChart Project Leader

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

plusik
Posts: 28
Joined: Tue May 16, 2006 3:36 am
Location: Boston, MA, USA

Re: How to use with JavaFX?

Post by plusik » Tue Nov 01, 2016 2:46 pm

+1 for releasing new version

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

Re: How to use with JavaFX?

Post by david.gilbert » Wed Nov 02, 2016 10:35 pm

Orson Charts just released, JFreeChart next on my list.
David Gilbert
JFreeChart Project Leader

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

Locked