createVerticalBarChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mike Isaacs

createVerticalBarChart

Post by Mike Isaacs » Mon May 13, 2002 2:50 pm

I'm using the createVerticalBarChart() method of the ChartFactory (version 0.7.2 of JFreeChart).

It used to work fine, and I have not changed anything in the code. But now I have started getting a java.lang.NoClassDefFoundError on the call. This did not happen previously

I am in the process of upgrading to version 0.8.1, but also want to work out why the old graph has stopped working?

Any ideas?

David Gilbert

Re: createVerticalBarChart

Post by David Gilbert » Tue May 14, 2002 9:59 am

Hi Mike,

Post the full text of the exception, and the versions of the jfreechart and jcommon jar files that you are using.

Regards,

DG.

Mike Isaacs

Re: createVerticalBarChart

Post by Mike Isaacs » Mon May 20, 2002 1:21 pm

Uprgraded to latest Version 0.8.1 of JFreeChart and JCommon. Getting a different error message, from the same line of code ( JFreeChart chart = ChartFactory.createVerticalBarChart(title, categoryAxisLabel, valueAxisLabel,data,legend); )

java.lang.InternalError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.

I've got a feeling something has changed in the environment of the OS that has stopped the charts from working.

Mike Isaacs

Re: createVerticalBarChart

Post by Mike Isaacs » Mon May 20, 2002 1:23 pm

Searching the thread for previous messages has found info on:

http://www.object-refinery.com/phorum-3 ... =908&t=908

Locked