You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(5) |
Aug
(2) |
Sep
(3) |
Oct
(2) |
Nov
(8) |
Dec
(10) |
2003 |
Jan
(1) |
Feb
(5) |
Mar
(15) |
Apr
(29) |
May
(40) |
Jun
(44) |
Jul
(26) |
Aug
(63) |
Sep
(42) |
Oct
(33) |
Nov
(29) |
Dec
(51) |
2004 |
Jan
(34) |
Feb
(15) |
Mar
(32) |
Apr
(26) |
May
(40) |
Jun
(16) |
Jul
(6) |
Aug
(12) |
Sep
(55) |
Oct
(33) |
Nov
(54) |
Dec
(9) |
2005 |
Jan
(3) |
Feb
(7) |
Mar
(12) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
|
Aug
(4) |
Sep
(8) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2006 |
Jan
(1) |
Feb
(7) |
Mar
(4) |
Apr
(2) |
May
(3) |
Jun
(1) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(3) |
Dec
(2) |
2007 |
Jan
(7) |
Feb
(6) |
Mar
|
Apr
|
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2010 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jaap S. <co...@ja...> - 2003-08-24 23:11:58
|
Hello Nathaniel, A few hours trying: for example, I have installed ant and compiled jCharts on the server, and finally I found the solution. I have set the environment value: CATALINA_OPTS="-Djava.awt.headless=true". This solved the problem. Anyway, the test server somehow does not need this configuration. I do not really understand why (both have X11 and both are not running), but heck it works: http://jaap.nl/what.jsp Thanks for your consideration Jaap On Fri, 2003-08-22 at 14:38, Nathaniel G. Auvil wrote: > If I had to guess, I would say you have an older version of the jcharts.jar on your classpath. I > can not think of anything in the PieChart2DProperties Object which would cause this problem. > > > > --- Jaap Stelwagen <co...@ja...> wrote: > > Hello, > > > > Since very short I try to use jCharts for a nice pie chart on my > > website. Everything went very smooth thanks to the fine documentation > > and sample code. But now it goes wrong in a dreadful manner. > > > > What happened? > > > > I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat > > 4 and Java 1.4.2). It works fine: > > http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will > > recognize the pie chart easy). > > > > When I deploy the same .war file on the production server, the result is > > somewhat disappointing: > > http://jaap.nl/directwonen/what.jsp > > No chart! > > > > If you want to see the error message: > > http://jaap.nl/charts/what.png (the servlet source code is almost > > completely copied from the jCharts example). > > > > The only difference I know is that the production server is running > > RedHat 8 (in stead of 9). The rest is similar. > > > > Does anybody have any idea what is happening? > > > > Greetings, > > > > Jaap > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single machine. > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > ===== > http://nathaniel-auvil.blog-city.com/ > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-23 00:01:54
|
If I had to guess, I would say you have an older version of the jcharts.jar on your classpath. I can not think of anything in the PieChart2DProperties Object which would cause this problem. --- Jaap Stelwagen <co...@ja...> wrote: > Hello, > > Since very short I try to use jCharts for a nice pie chart on my > website. Everything went very smooth thanks to the fine documentation > and sample code. But now it goes wrong in a dreadful manner. > > What happened? > > I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat > 4 and Java 1.4.2). It works fine: > http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will > recognize the pie chart easy). > > When I deploy the same .war file on the production server, the result is > somewhat disappointing: > http://jaap.nl/directwonen/what.jsp > No chart! > > If you want to see the error message: > http://jaap.nl/charts/what.png (the servlet source code is almost > completely copied from the jCharts example). > > The only difference I know is that the production server is running > RedHat 8 (in stead of 9). The rest is similar. > > Does anybody have any idea what is happening? > > Greetings, > > Jaap > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Jaap S. <co...@ja...> - 2003-08-22 22:26:49
|
I have just downloaded jCharts. It is version 0.7.4. The jar is included in the war and the war is the same on both machines. It is now midnight over here, so I just restarted Tomcat (and cleared the word directory). Sometimes this helps to solve strange behavior, but now it didn't. On Fri, 2003-08-22 at 20:06, Nathaniel G. Auvil wrote: > Did you check the jcharts.jar to make sure it is the same version on both of your servers? I > would assume you have the jar in your war, but I will ask anyhow: do you have it separate? > > This error makes me think you have an older jcharts.jar on the non-working server. > > java.lang.NoClassDefFoundError > at org.jCharts.properties.PieChart2DProperties.(Unknown Source) > ... > > > > > --- Jaap Stelwagen <co...@ja...> wrote: > > Both system have jsdk1.4.2 installed (RedHat does not ship any java I > > think because it is closed source). I try to keep the systems as similar > > as possible. > > > > I also thought it should be a classpath issue (usually it is) but even > > the /catalina-home/work/... directories are the same on both systems. > > (The 'work' folder contains all the complied code used by Tomcat to run > > the web application). > > > > I use png -> see the result: > > http://test.jaap.nl/charts/what.png > > http://jaap.nl/charts/what.png > > > > I cannot believe this is an issue but: test has Intel Inside, production > > runs with an AMD processor. > > > > > > > > On Fri, 2003-08-22 at 19:15, Nathaniel G. Auvil wrote: > > > if you have the jcharts.jar in your war, and the war works on one server but not another, then > > I > > > would agree, something is wrong with your classpath. > > > > > > Check to make sure the JVMs are the same version. If you are outputting png, you need to run > > with > > > jdk 1.4.x I can not remember off the top of my head what jvm comes with Red Hat 8. > > > > > > > > > > > > > > > --- Jaap Stelwagen <co...@ja...> wrote: > > > > For JSP there is no such thing as a classpath. You just drop your .jar > > > > in the WEB-INF/lib folder and you are in business. This also means you > > > > automatically deploy the same classpath on each machine where you > > > > install your webapplication. > > > > > > > > And this is exactly the case for me. I use the same MyApp.war for both > > > > systems. > > > > > > > > BTW, I just could reproduce a NoClassDefFoundError on the test server as > > > > well. When I install both MyApp.war and jChartsServletExamples.war I got > > > > the same error. > > > > This is however not of any help for me because the production server did > > > > not get jChartsServletExamples.war. But it could help somebody how is > > > > experiencing this error after playing with the examples. > > > > > > > > Did anybody have these kind of problems (and how do you solve it?)? > > > > > > > > Jaap > > > > > > > > > > > > On Fri, 2003-08-22 at 15:27, Vikram Rajan wrote: > > > > > Can you check your classpath? > > > > > > > > > > -----Original Message----- > > > > > From: Jaap Stelwagen [mailto:co...@ja...] > > > > > Sent: Thursday, August 21, 2003 5:58 AM > > > > > To: jch...@li... > > > > > Subject: [jCharts-users] NoClassDefFoundError > > > > > > > > > > > > > > > Hello, > > > > > > > > > > Since very short I try to use jCharts for a nice pie chart on my > > > > > website. Everything went very smooth thanks to the fine documentation > > > > > and sample code. But now it goes wrong in a dreadful manner. > > > > > > > > > > What happened? > > > > > > > > > > I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat > > > > > 4 and Java 1.4.2). It works fine: > > > > > http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will > > > > > recognize the pie chart easy). > > > > > > > > > > When I deploy the same .war file on the production server, the result is > > > > > somewhat disappointing: > > > > > http://jaap.nl/directwonen/what.jsp > > > > > No chart! > > > > > > > > > > If you want to see the error message: > > > > > http://jaap.nl/charts/what.png (the servlet source code is almost > > > > > completely copied from the jCharts example). > > > > > > > > > > The only difference I know is that the production server is running > > > > > RedHat 8 (in stead of 9). The rest is similar. > > > > > > > > > > Does anybody have any idea what is happening? > > > > > > > > > > Greetings, > > > > > > > > > > Jaap > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.net email is sponsored by: VM Ware > > > > > With VMware you can run multiple operating systems on a single machine. > > > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > > > _______________________________________________ > > > > > jCharts-users mailing list > > > > > jCh...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.net email is sponsored by: VM Ware > > > > > With VMware you can run multiple operating systems on a single machine. > > > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > > > _______________________________________________ > > > > > jCharts-users mailing list > > > > > jCh...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: VM Ware > > > > With VMware you can run multiple operating systems on a single machine. > > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > > _______________________________________________ > > > > jCharts-users mailing list > > > > jCh...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > ===== > > > http://nathaniel-auvil.blog-city.com/ > > > > > > __________________________________ > > > Do you Yahoo!? > > > Yahoo! SiteBuilder - Free, easy-to-use web site design software > > > http://sitebuilder.yahoo.com > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: VM Ware > > > With VMware you can run multiple operating systems on a single machine. > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single machine. > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > ===== > http://nathaniel-auvil.blog-city.com/ > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-22 18:06:51
|
Did you check the jcharts.jar to make sure it is the same version on both of your servers? I would assume you have the jar in your war, but I will ask anyhow: do you have it separate? This error makes me think you have an older jcharts.jar on the non-working server. java.lang.NoClassDefFoundError at org.jCharts.properties.PieChart2DProperties.(Unknown Source) ... --- Jaap Stelwagen <co...@ja...> wrote: > Both system have jsdk1.4.2 installed (RedHat does not ship any java I > think because it is closed source). I try to keep the systems as similar > as possible. > > I also thought it should be a classpath issue (usually it is) but even > the /catalina-home/work/... directories are the same on both systems. > (The 'work' folder contains all the complied code used by Tomcat to run > the web application). > > I use png -> see the result: > http://test.jaap.nl/charts/what.png > http://jaap.nl/charts/what.png > > I cannot believe this is an issue but: test has Intel Inside, production > runs with an AMD processor. > > > > On Fri, 2003-08-22 at 19:15, Nathaniel G. Auvil wrote: > > if you have the jcharts.jar in your war, and the war works on one server but not another, then > I > > would agree, something is wrong with your classpath. > > > > Check to make sure the JVMs are the same version. If you are outputting png, you need to run > with > > jdk 1.4.x I can not remember off the top of my head what jvm comes with Red Hat 8. > > > > > > > > > > --- Jaap Stelwagen <co...@ja...> wrote: > > > For JSP there is no such thing as a classpath. You just drop your .jar > > > in the WEB-INF/lib folder and you are in business. This also means you > > > automatically deploy the same classpath on each machine where you > > > install your webapplication. > > > > > > And this is exactly the case for me. I use the same MyApp.war for both > > > systems. > > > > > > BTW, I just could reproduce a NoClassDefFoundError on the test server as > > > well. When I install both MyApp.war and jChartsServletExamples.war I got > > > the same error. > > > This is however not of any help for me because the production server did > > > not get jChartsServletExamples.war. But it could help somebody how is > > > experiencing this error after playing with the examples. > > > > > > Did anybody have these kind of problems (and how do you solve it?)? > > > > > > Jaap > > > > > > > > > On Fri, 2003-08-22 at 15:27, Vikram Rajan wrote: > > > > Can you check your classpath? > > > > > > > > -----Original Message----- > > > > From: Jaap Stelwagen [mailto:co...@ja...] > > > > Sent: Thursday, August 21, 2003 5:58 AM > > > > To: jch...@li... > > > > Subject: [jCharts-users] NoClassDefFoundError > > > > > > > > > > > > Hello, > > > > > > > > Since very short I try to use jCharts for a nice pie chart on my > > > > website. Everything went very smooth thanks to the fine documentation > > > > and sample code. But now it goes wrong in a dreadful manner. > > > > > > > > What happened? > > > > > > > > I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat > > > > 4 and Java 1.4.2). It works fine: > > > > http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will > > > > recognize the pie chart easy). > > > > > > > > When I deploy the same .war file on the production server, the result is > > > > somewhat disappointing: > > > > http://jaap.nl/directwonen/what.jsp > > > > No chart! > > > > > > > > If you want to see the error message: > > > > http://jaap.nl/charts/what.png (the servlet source code is almost > > > > completely copied from the jCharts example). > > > > > > > > The only difference I know is that the production server is running > > > > RedHat 8 (in stead of 9). The rest is similar. > > > > > > > > Does anybody have any idea what is happening? > > > > > > > > Greetings, > > > > > > > > Jaap > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: VM Ware > > > > With VMware you can run multiple operating systems on a single machine. > > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > > _______________________________________________ > > > > jCharts-users mailing list > > > > jCh...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: VM Ware > > > > With VMware you can run multiple operating systems on a single machine. > > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > > _______________________________________________ > > > > jCharts-users mailing list > > > > jCh...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: VM Ware > > > With VMware you can run multiple operating systems on a single machine. > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > ===== > > http://nathaniel-auvil.blog-city.com/ > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site design software > > http://sitebuilder.yahoo.com > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single machine. > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Jaap S. <co...@ja...> - 2003-08-22 17:49:02
|
Both system have jsdk1.4.2 installed (RedHat does not ship any java I think because it is closed source). I try to keep the systems as similar as possible. I also thought it should be a classpath issue (usually it is) but even the /catalina-home/work/... directories are the same on both systems. (The 'work' folder contains all the complied code used by Tomcat to run the web application). I use png -> see the result: http://test.jaap.nl/charts/what.png http://jaap.nl/charts/what.png I cannot believe this is an issue but: test has Intel Inside, production runs with an AMD processor. On Fri, 2003-08-22 at 19:15, Nathaniel G. Auvil wrote: > if you have the jcharts.jar in your war, and the war works on one server but not another, then I > would agree, something is wrong with your classpath. > > Check to make sure the JVMs are the same version. If you are outputting png, you need to run with > jdk 1.4.x I can not remember off the top of my head what jvm comes with Red Hat 8. > > > > > --- Jaap Stelwagen <co...@ja...> wrote: > > For JSP there is no such thing as a classpath. You just drop your .jar > > in the WEB-INF/lib folder and you are in business. This also means you > > automatically deploy the same classpath on each machine where you > > install your webapplication. > > > > And this is exactly the case for me. I use the same MyApp.war for both > > systems. > > > > BTW, I just could reproduce a NoClassDefFoundError on the test server as > > well. When I install both MyApp.war and jChartsServletExamples.war I got > > the same error. > > This is however not of any help for me because the production server did > > not get jChartsServletExamples.war. But it could help somebody how is > > experiencing this error after playing with the examples. > > > > Did anybody have these kind of problems (and how do you solve it?)? > > > > Jaap > > > > > > On Fri, 2003-08-22 at 15:27, Vikram Rajan wrote: > > > Can you check your classpath? > > > > > > -----Original Message----- > > > From: Jaap Stelwagen [mailto:co...@ja...] > > > Sent: Thursday, August 21, 2003 5:58 AM > > > To: jch...@li... > > > Subject: [jCharts-users] NoClassDefFoundError > > > > > > > > > Hello, > > > > > > Since very short I try to use jCharts for a nice pie chart on my > > > website. Everything went very smooth thanks to the fine documentation > > > and sample code. But now it goes wrong in a dreadful manner. > > > > > > What happened? > > > > > > I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat > > > 4 and Java 1.4.2). It works fine: > > > http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will > > > recognize the pie chart easy). > > > > > > When I deploy the same .war file on the production server, the result is > > > somewhat disappointing: > > > http://jaap.nl/directwonen/what.jsp > > > No chart! > > > > > > If you want to see the error message: > > > http://jaap.nl/charts/what.png (the servlet source code is almost > > > completely copied from the jCharts example). > > > > > > The only difference I know is that the production server is running > > > RedHat 8 (in stead of 9). The rest is similar. > > > > > > Does anybody have any idea what is happening? > > > > > > Greetings, > > > > > > Jaap > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: VM Ware > > > With VMware you can run multiple operating systems on a single machine. > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: VM Ware > > > With VMware you can run multiple operating systems on a single machine. > > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single machine. > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > ===== > http://nathaniel-auvil.blog-city.com/ > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-22 17:15:48
|
if you have the jcharts.jar in your war, and the war works on one server but not another, then I would agree, something is wrong with your classpath. Check to make sure the JVMs are the same version. If you are outputting png, you need to run with jdk 1.4.x I can not remember off the top of my head what jvm comes with Red Hat 8. --- Jaap Stelwagen <co...@ja...> wrote: > For JSP there is no such thing as a classpath. You just drop your .jar > in the WEB-INF/lib folder and you are in business. This also means you > automatically deploy the same classpath on each machine where you > install your webapplication. > > And this is exactly the case for me. I use the same MyApp.war for both > systems. > > BTW, I just could reproduce a NoClassDefFoundError on the test server as > well. When I install both MyApp.war and jChartsServletExamples.war I got > the same error. > This is however not of any help for me because the production server did > not get jChartsServletExamples.war. But it could help somebody how is > experiencing this error after playing with the examples. > > Did anybody have these kind of problems (and how do you solve it?)? > > Jaap > > > On Fri, 2003-08-22 at 15:27, Vikram Rajan wrote: > > Can you check your classpath? > > > > -----Original Message----- > > From: Jaap Stelwagen [mailto:co...@ja...] > > Sent: Thursday, August 21, 2003 5:58 AM > > To: jch...@li... > > Subject: [jCharts-users] NoClassDefFoundError > > > > > > Hello, > > > > Since very short I try to use jCharts for a nice pie chart on my > > website. Everything went very smooth thanks to the fine documentation > > and sample code. But now it goes wrong in a dreadful manner. > > > > What happened? > > > > I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat > > 4 and Java 1.4.2). It works fine: > > http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will > > recognize the pie chart easy). > > > > When I deploy the same .war file on the production server, the result is > > somewhat disappointing: > > http://jaap.nl/directwonen/what.jsp > > No chart! > > > > If you want to see the error message: > > http://jaap.nl/charts/what.png (the servlet source code is almost > > completely copied from the jCharts example). > > > > The only difference I know is that the production server is running > > RedHat 8 (in stead of 9). The rest is similar. > > > > Does anybody have any idea what is happening? > > > > Greetings, > > > > Jaap > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single machine. > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: VM Ware > > With VMware you can run multiple operating systems on a single machine. > > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Jaap S. <co...@ja...> - 2003-08-22 16:22:25
|
For JSP there is no such thing as a classpath. You just drop your .jar in the WEB-INF/lib folder and you are in business. This also means you automatically deploy the same classpath on each machine where you install your webapplication. And this is exactly the case for me. I use the same MyApp.war for both systems. BTW, I just could reproduce a NoClassDefFoundError on the test server as well. When I install both MyApp.war and jChartsServletExamples.war I got the same error. This is however not of any help for me because the production server did not get jChartsServletExamples.war. But it could help somebody how is experiencing this error after playing with the examples. Did anybody have these kind of problems (and how do you solve it?)? Jaap On Fri, 2003-08-22 at 15:27, Vikram Rajan wrote: > Can you check your classpath? > > -----Original Message----- > From: Jaap Stelwagen [mailto:co...@ja...] > Sent: Thursday, August 21, 2003 5:58 AM > To: jch...@li... > Subject: [jCharts-users] NoClassDefFoundError > > > Hello, > > Since very short I try to use jCharts for a nice pie chart on my > website. Everything went very smooth thanks to the fine documentation > and sample code. But now it goes wrong in a dreadful manner. > > What happened? > > I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat > 4 and Java 1.4.2). It works fine: > http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will > recognize the pie chart easy). > > When I deploy the same .war file on the production server, the result is > somewhat disappointing: > http://jaap.nl/directwonen/what.jsp > No chart! > > If you want to see the error message: > http://jaap.nl/charts/what.png (the servlet source code is almost > completely copied from the jCharts example). > > The only difference I know is that the production server is running > RedHat 8 (in stead of 9). The rest is similar. > > Does anybody have any idea what is happening? > > Greetings, > > Jaap > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines > at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Vikram R. <Vi...@PL...> - 2003-08-22 13:17:32
|
Can you check your classpath? -----Original Message----- From: Jaap Stelwagen [mailto:co...@ja...] Sent: Thursday, August 21, 2003 5:58 AM To: jch...@li... Subject: [jCharts-users] NoClassDefFoundError Hello, Since very short I try to use jCharts for a nice pie chart on my website. Everything went very smooth thanks to the fine documentation and sample code. But now it goes wrong in a dreadful manner. What happened? I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat 4 and Java 1.4.2). It works fine: http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will recognize the pie chart easy). When I deploy the same .war file on the production server, the result is somewhat disappointing: http://jaap.nl/directwonen/what.jsp No chart! If you want to see the error message: http://jaap.nl/charts/what.png (the servlet source code is almost completely copied from the jCharts example). The only difference I know is that the production server is running RedHat 8 (in stead of 9). The rest is similar. Does anybody have any idea what is happening? Greetings, Jaap ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Jaap S. <co...@ja...> - 2003-08-22 13:12:58
|
Hello, Since very short I try to use jCharts for a nice pie chart on my website. Everything went very smooth thanks to the fine documentation and sample code. But now it goes wrong in a dreadful manner. What happened? I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat 4 and Java 1.4.2). It works fine: http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will recognize the pie chart easy). When I deploy the same .war file on the production server, the result is somewhat disappointing: http://jaap.nl/directwonen/what.jsp No chart! If you want to see the error message: http://jaap.nl/charts/what.png (the servlet source code is almost completely copied from the jCharts example). The only difference I know is that the production server is running RedHat 8 (in stead of 9). The rest is similar. Does anybody have any idea what is happening? Greetings, Jaap |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-22 12:57:59
|
not sure what is happening here. do you have any test data to help us out? --- Pal Perinbam <pal...@ya...> wrote: > Hi, > When I increase the font size for the X-axis label in a bar chart, the label disappear like a > magic. What really happens when I increase the font size. > Herewith I attach a zip containing 2 images, one using font8 and the other using font10. > Please investigate into this and let me know asap. > I've increased the font size to 10 for clarity, but it caused the disappearance of label texts. > > The way I read a font from a TTF is: > Font font=Font.createFont( Font.TRUETYPE_FONT,new > FileInputStream("c:\\winnt\\fonts\\arial.ttf")).deriveFont(Font.PLAIN,8); > > Thank you. > Pal > > > > > > --------------------------------- > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > ATTACHMENT part 2 application/x-zip-compressed name=font.zip ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Jaap S. <co...@ja...> - 2003-08-22 09:39:55
|
Hello, Since very short I try to use jCharts for a nice pie chart on my website. Everything went very smooth thanks to the fine documentation and sample code. But now it goes wrong in a dreadful manner. What happened? I deployed a 2D Pie chart successfully on the test server (RH 9, Tomcat 4 and Java 1.4.2). It works fine: http://test.jaap.nl/directwonen/what.jsp (this is Dutch, but you will recognize the pie chart easy). When I deploy the same .war file on the production server, the result is somewhat disappointing: http://jaap.nl/directwonen/what.jsp No chart! If you want to see the error message: http://jaap.nl/charts/what.png (the servlet source code is almost completely copied from the jCharts example). The only difference I know is that the production server is running RedHat 8 (in stead of 9). The rest is similar. Does anybody have any idea what is happening? Greetings, Jaap |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-22 02:31:52
|
i have not been able to duplicate this issue. I created a bar chart with 30 items and tried fonts from 8pt to 24pt. Are you sure your font files are not corrupted or do you have a really long label which is screwing things up? --- Pal Perinbam <pal...@ya...> wrote: > I will provide you some test data by tomorrow. Meanwhile you please kindly investigate into this > issue as this is consistent. > Thanks, > Pal > > "Nathaniel G. Auvil" <nat...@ya...> wrote: > > not sure what is happening here. > > do you have any test data to help us out? > > > > > --- Pal Perinbam > wrote: > > Hi, > > When I increase the font size for the X-axis label in a bar chart, the label disappear like a > > magic. What really happens when I increase the font size. > > Herewith I attach a zip containing 2 images, one using font8 and the other using font10. > > Please investigate into this and let me know asap. > > I've increased the font size to 10 for clarity, but it caused the disappearance of label > texts. > > > > The way I read a font from a TTF is: > > Font font=Font.createFont( Font.TRUETYPE_FONT,new > > FileInputStream("c:\\winnt\\fonts\\arial.ttf")).deriveFont(Font.PLAIN,8); > > > > Thank you. > > Pal > > > > > > > > > > > > --------------------------------- > > Do you Yahoo!? > > SBC Yahoo! DSL - Now only $29.95 per month! > > > ATTACHMENT part 2 application/x-zip-compressed name=font.zip > > > > ===== > http://nathaniel-auvil.blog-city.com/ > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > --------------------------------- > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-20 14:13:49
|
sure. use the following method on AxisTypeProperties for each axis: public void setShowEndBorder(boolean showEndBorder) This should be in the User Guide, but is not. I will add a task for it. --- Gustav_Ösgård <gus...@re...> wrote: > Hi. > > Is it possible to remove the border surrunding the "plotarea" on all axis > charts (I do not mean the border surrounding the whole image)? I want to > keep the x-axis and the y-axis, but not the borders on their opposite sides. > I've tried setting borderStroke to null, but it doesn't seem to make any > difference and I have seen no examples showing charts without theese > borders. > > PS: I am new to jCharts, therefore my stupid questions. > > Thanks again. > Gustav Oesgaard > > > > > ------------------------------------------------------- > This SF.net email is sponsored by Dice.com. > Did you know that Dice has over 25,000 tech jobs available today? From > careers in IT to Engineering to Tech Sales, Dice has tech jobs from the > best hiring companies. http://www.dice.com/index.epl?rel_code=104 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: <gus...@re...> - 2003-08-20 10:52:52
|
Hi. Is it possible to remove the border surrunding the "plotarea" on all axis charts (I do not mean the border surrounding the whole image)? I want to keep the x-axis and the y-axis, but not the borders on their opposite sides. I've tried setting borderStroke to null, but it doesn't seem to make any difference and I have seen no examples showing charts without theese borders. PS: I am new to jCharts, therefore my stupid questions. Thanks again. Gustav Oesgaard |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-19 13:29:53
|
yes, you would have to adjust the edgePadding on the chartProperties Object, or make your labels vertical. --- Gustav_Ösgård <gus...@re...> wrote: > Hi. > > I have a problem when drawing simple linecharts. The last label at x-axis is > not shown. If I draw a combined chart with bars and line the last label > shows. I guess I have to set some padding or something to get it right when > only drawing line. Any advice? > > PS: I am new to jCharts, therefore this stupid question. > > Thanks. > Gustav Oesgaard > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: <gus...@re...> - 2003-08-19 12:32:12
|
Hi. I have a problem when drawing simple linecharts. The last label at x-axis is not shown. If I draw a combined chart with bars and line the last label shows. I guess I have to set some padding or something to get it right when only drawing line. Any advice? PS: I am new to jCharts, therefore this stupid question. Thanks. Gustav Oesgaard |
From: <pve...@ic...> - 2003-08-14 14:51:55
|
Hi ! The code Nathaniel posted, works. I don't know why it didn't work before. Probably my mistake. Thanks ! ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: <pve...@ic...> - 2003-08-14 14:10:02
|
Thanks for the code. I don't know what's happening, but I have the same problem. The code works fine, but, if you minimize and then maximize the frame, the chart is missing. Does anybody know why? Thanks. Pavel ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-14 02:02:53
|
try this code. public class SwingDemo extends JFrame { private JPanel panel; private PieChart2DProperties pieChart2DProperties; private LegendProperties legendProperties; private ChartProperties chartProperties; /******************************************************************************* * ********************************************************************************/ public SwingDemo() throws ChartDataException, PropertyException { initComponents(); } /******************************************************************************* * ********************************************************************************/ private void initComponents() { this.setSize( 500, 500 ); this.panel = new JPanel( true ); this.panel.setSize( 500, 500 ); this.getContentPane().add( this.panel ); this.pieChart2DProperties = new PieChart2DProperties(); this.legendProperties= new LegendProperties(); this.chartProperties= new ChartProperties(); this.setVisible( true ); addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosing( WindowEvent windowEvent ) { exitForm( windowEvent ); } } ); } /********************************************************************************* * * @param graphics ********************************************************************************/ public void paint( Graphics graphics ) { try { String[] labels = {"BMW", "Audi", "Lexus"}; String title = "Cars that Own"; Paint[] paints = {Color.blue, Color.gray, Color.red}; double[] data = {50d, 30d, 20d}; PieChartDataSet pieChartDataSet = new PieChartDataSet( title, data, labels, paints, this.pieChart2DProperties ); Dimension dimension= this.panel.getSize(); PieChart2D pieChart2D = new PieChart2D( pieChartDataSet, this.legendProperties, this.chartProperties, (int) dimension.getWidth(), (int) dimension.getHeight() ); //***** BEGIN SWING SPECIFIC CODE *********************************** pieChart2D.setGraphics2D( (Graphics2D) this.panel.getGraphics() ); pieChart2D.render(); //***** END SWING SPECIFIC CODE ************************************* } catch( ChartDataException chartDataException ) { chartDataException.printStackTrace(); } catch( PropertyException propertyException ) { propertyException.printStackTrace(); } } /******************************************************************************* * Exit the Application * * @param windowEvent ******************************************************************************/ private void exitForm( WindowEvent windowEvent ) { System.exit( 0 ); } /****************************************************************************** * ******************************************************************************/ public static void main( String args[] ) throws ChartDataException, PropertyException { new SwingDemo(); } } --- pve...@ic... wrote: > Thanks Nathaniel, but I haven't fix the problem yet. > > I'm using the code below as an example. The problem with this code is that, if > you maximize, minimize or resize the frame, the chart disappear. > > I guess the problem is with the paint(Graphics) method at Charts class, I tried > overwritting that method as you said, but it didn't work. > > I don't know what to do. Please give me some advises. > > pavel > > > import javax.swing.JPanel; > import javax.swing.*; > import java.awt.*; > import org.jCharts.chartData.*; > import org.jCharts.properties.*; > import org.jCharts.axisChart.*; > import org.jCharts.nonAxisChart.*; > import org.jCharts.types.ChartType; > import org.jCharts.test.TestDataGenerator; > import org.jCharts.axisChart.customRenderers.axisValue.renderers.*; > > > public class Charts extends JPanel { > > LegendProperties lp = null; > ChartProperties cp = null; > BarChartProperties ctp = null; > PieChart2D chart = null ; > AxisProperties ap = null; > > public Charts() { > > /// ************** PIE CHART DATASET ************************ > try { > double[] data = { > 81d, 55d, 39d, 20.6d}; > String[] labels = { > "BMW M5", "BMW M3", "Viper GTS-R", "Corvette Z06"}; > Paint[] paints = { > Color.lightGray, Color.green, Color.blue, Color.red}; > > PieChart2DProperties pieChart2DProperties = new PieChart2DProperties(); > PieChartDataSet pieChartDataSet = new PieChartDataSet("Cars That Own", > data, labels, paints, pieChart2DProperties); > > chart = new PieChart2D(pieChartDataSet, new LegendProperties(), > new ChartProperties(), 350, 350); > > } > catch(Exception e){ > System.out.println(e); > } > > } > > public static void main(String args[]) throws Exception { > JFrame frame = new JFrame("CHART TEST"); > frame.setSize( 400, 400 ); > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > //uncomment this line to do not lose the chart when you resize the frame > //frame.setResizable(false); > Charts pieChart = new Charts(); > frame.getContentPane().add(pieChart); > pieChart.setBackground(Color.white); > frame.setVisible(true); > pieChart.chart.setGraphics2D((Graphics2D)pieChart.getGraphics()); > pieChart.chart.render(); > } > > > } > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Timothy Y. <wa...@ya...> - 2003-08-14 01:14:51
|
Hi guys, Thanx so much for the replies, i've found the problem and it lies in my own code, apparently the method i wrote to determine the min,max,increment and start values of the graph caused an error because the jChart methods could not plot a graph that had no 0-axis. I've fixed that and set the max value to 0 if all values entered into the graph are negative. Again, thanx so much guys. Regards, Timothy --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |
From: <pve...@ic...> - 2003-08-13 22:13:45
|
Thanks Nathaniel, but I haven't fix the problem yet. I'm using the code below as an example. The problem with this code is that, if you maximize, minimize or resize the frame, the chart disappear. I guess the problem is with the paint(Graphics) method at Charts class, I tried overwritting that method as you said, but it didn't work. I don't know what to do. Please give me some advises. pavel import javax.swing.JPanel; import javax.swing.*; import java.awt.*; import org.jCharts.chartData.*; import org.jCharts.properties.*; import org.jCharts.axisChart.*; import org.jCharts.nonAxisChart.*; import org.jCharts.types.ChartType; import org.jCharts.test.TestDataGenerator; import org.jCharts.axisChart.customRenderers.axisValue.renderers.*; public class Charts extends JPanel { LegendProperties lp = null; ChartProperties cp = null; BarChartProperties ctp = null; PieChart2D chart = null ; AxisProperties ap = null; public Charts() { /// ************** PIE CHART DATASET ************************ try { double[] data = { 81d, 55d, 39d, 20.6d}; String[] labels = { "BMW M5", "BMW M3", "Viper GTS-R", "Corvette Z06"}; Paint[] paints = { Color.lightGray, Color.green, Color.blue, Color.red}; PieChart2DProperties pieChart2DProperties = new PieChart2DProperties(); PieChartDataSet pieChartDataSet = new PieChartDataSet("Cars That Own", data, labels, paints, pieChart2DProperties); chart = new PieChart2D(pieChartDataSet, new LegendProperties(), new ChartProperties(), 350, 350); } catch(Exception e){ System.out.println(e); } } public static void main(String args[]) throws Exception { JFrame frame = new JFrame("CHART TEST"); frame.setSize( 400, 400 ); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //uncomment this line to do not lose the chart when you resize the frame //frame.setResizable(false); Charts pieChart = new Charts(); frame.getContentPane().add(pieChart); pieChart.setBackground(Color.white); frame.setVisible(true); pieChart.chart.setGraphics2D((Graphics2D)pieChart.getGraphics()); pieChart.chart.render(); } } ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-13 18:12:18
|
The problem is the Graphics Object in your component is being invalidated because the visible area of it is changing. The parent Component is calling repaint() on your component which calls the paint( Graphics ) method on your component. You need to render your chart there. couple options here: 1) if your chart rarely changes, render it to a BufferedImage and simply draw the BufferedImage in the Components paint( Graphics ) method 2) if you want the chart to scale to fit the component size, then you will have to re-render the chart in the paint( Graphics ) method. --- Pablo Velasquez Rivas <pve...@ic...> wrote: > > Hi all ! > > Well, I'm newbie using jchart. My problem is that I'm trying to generate > a big > chart in a jpanel, and put it in a jscrollpane. Works fine. But, when I > scroll > up or down the chart, the part of the image that is hidden, do not > appear again. > > Could anybody help me ?? > > Thanks ! > > Pavel > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: <pve...@ic...> - 2003-08-13 17:23:09
|
Hi all ! Well, I'm newbie using jchart. My problem is that I'm trying to generate a big chart in a jpanel, and put it in a jscrollpane. Works fine. But, when I scroll up or down the chart, the part of the image that is hidden, do not appear again. Could anybody help me ?? Thanks ! Pavel ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Pablo V. R. <pve...@ic...> - 2003-08-13 17:12:30
|
Hi all ! Well, I'm newbie using jchart. My problem is that I'm trying to generate a big chart in a jpanel, and put it in a jscrollpane. Works fine. But, when I scroll up or down the chart, the part of the image that is hidden, do not appear again. Could anybody help me ?? Thanks ! Pavel |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-13 03:07:40
|
it looks like sourceforge is having some problems right now. If you click on the: " Subscribe/Unsubscribe/Preferences" link and then click on the archive link on that page. I will add a link on the jcharts home page to make it easier to do this. --- Rus...@ub... wrote: > Hi Nathaniel, > > Thanks for your reply! > I'm not sure what do you mean by saying > "The lists are archived on the Sourceforge page, so you can search them > there." > > When I got in there, I'm unable to see/search any list messages :( > > All I've got: > =================== > jcharts-cvs (not yet archived) > (go to Subscribe/Unsubscribe/Preferences) > Commit messages for jcharts > > jcharts-developers (not yet archived) > (go to Subscribe/Unsubscribe/Preferences) > Developers Mailing List > > jcharts-users (not yet archived) > (go to Subscribe/Unsubscribe/Preferences) > For users of jCharts > =================== > > Do you know when they supposed to be archived? Is it going to happen > within days/weeks/month or years ;) ? > Also, can I post questions into those lists without being subscribed > there, but as a member of sourceforge.net? > > regards, > Ruslan > > -----Original Message----- > From: nathaniel.auvil > Sent: Tuesday, August 12, 2003 9:24 PM > To: zenin > Cc: jcharts-users > Subject: Re: Mail List does not work > > > > hi Ruslan. > > I respect your opinion but most of the feedback we have gotten is > positive from the lists. The > lists are archived on the Sourceforge page, so you can search them > there. > > I would recommend setting up some email filters and route any jcharts > messages to a 'jcharts' > directory so they do not clog your inbox, although the lists are not > high volume. > > > > > > --- Ruslan Zenin <ze...@us...> wrote: > > > > Hi Nathaniel, > > > > First of all, you did a great job! Very nice library, thanks! > > But I have a problem here now: > > > > I tried to access usual forums on SourceForge. > > > > I noticed that you have closed them and moved to mail lists > > instead. > > > > But mail lists do not work :(. I'm not sure if it was a good > > idea in a first place... > > > > Is there any way you could return back web based forums - > > much more convinient option for everyone! > > > > Or, at least fix mail list, so people could submit questions. > > > > I'm not sure how mail list can reach wider audience. > > I did post my comment a while ago on this subject > > > http://sourceforge.net/forum/forum.php?thread_id=911198&forum_id=257899 > > > > hope, this issue will be sorted out soon! > > > > regards, > > Ruslan Zenin > > > ===== > http://nathaniel-auvil.blog-city.com/ > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |