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: Nicola K. B. <nic...@ap...> - 2003-09-04 06:22:58
|
Chris McKay wrote, On 04/09/2003 5.54: > Hi, > > We've some rough benchmarks. For a stacked 29 bar chart: > > Here is the Jcharts 0.74 result. ... Excellent! Can you send us your test files and code? I can set them up as Testcases and we can run them daily with Gump to see how speed changes over time. -- Nicola Ken Barozzi nic...@ap... - verba volant, scripta manent - (discussions get forgotten, just code remains) --------------------------------------------------------------------- |
From: Chris M. <ch...@de...> - 2003-09-04 03:55:10
|
Hi, We've some rough benchmarks. For a stacked 29 bar chart: Here is the Jcharts 0.74 result. The times are in milliseconds $ java org/jCharts/demo/simpleServlet/TestGenerate elapsed Time = 2952 elapsed Time = 816 elapsed Time = 799 elapsed Time = 717 elapsed Time = 792 and JfreeCharts results: $ java org/jfree/chart/demo/TestGenerateFree elapsed Time = 3860 elapsed Time = 1730 elapsed Time = 1539 elapsed Time = 1607 elapsed Time = 1556 The tests were done on a laptop with Gnome and OpenOffice, emacs and a heap of things running. It was running standard i686 RH 2.4.20-18.7 Linux kernel on a single CPU 1GHz machine. The tests were done with JDK1.4 (JfreeCharts needed it to generate the charts... some libraries). We also found that the size of the chart had a major influence on the performance. So that was one reason (amongst others) that we choose jCharts. Subsequent to that we have done stability tests against the 1.0 development version with some of our modifications to the source. (shortly to be put back into the dev tree). Our favourite chart is a combo stacked 3D bar chart with 2 data sets and 2 line charts and left and right Y axis, of about 13 data points a piece. We've got a few other pieces in the equation so the jCharts engine is being fed by a servlet that is passed the data and chart parameters over http. I ran Apache Bench against it so it was a servlet on one machine talking to a servlet gening a chart to disk and returning a unique file name on the charting machine. We got these figures: Machine 1 - my overworked DB server (bless it): OS: Linux version 2.4.18-19.7.x CPU: Intel Pentium III (Katmai) 450 MHz processor (891.11 BogoMIPS) Memory: 382424k/393216k available Software: jCharts 1.0+ with SUN JVM 1.4.1_01, Tomcat 4.1.12, also a whole bunch of stuff, 2 x Oracle instances, iPlanet LDAP server, Apache 192 processes: 190 sleeping, 2 running, 0 zombie, 0 stopped CPU states: 0.5% user, 0.3% system, 0.0% nice, 0.3% idle Mem: 384884K av, 376868K used, 8016K free, 0K shrd, 43016K buff Swap: 1052248K av, 133632K used, 918616K free 181448K cached C:\Program Files\Apache Group\Apache2\bin>ab -n 10 -c 1 http://webserver.defacto.local:8081/Charts/Test This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $> apache-2.0 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ Benchmarking dbserver.defacto.local (be patient).....done Server Software: Apache Server Hostname: webserver.defacto.local Server Port: 8081 Document Path: /Charts/Test Document Length: 65 bytes Concurrency Level: 1 Time taken for tests: 11.953125 seconds Complete requests: 10 Failed requests: 0 Write errors: 0 Total transferred: 1870 bytes HTML transferred: 650 bytes Requests per second: 0.84 [#/sec] (mean) Time per request: 1195.313 [ms] (mean) Time per request: 1195.313 [ms] (mean, across all concurrent requests) Transfer rate: 0.08 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 1078 1194 220.1 1109 1796 Waiting: 1078 1194 220.1 1109 1796 Total: 1078 1194 220.1 1109 1796 So it clanked away at a little under a chart a second. I banged up the concurrent threads to 10 C:\Program Files\Apache Group\Apache2\bin>ab -n 100 -c 10 http://webserver.defacto.local:8081/Charts/Test This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $> apache-2.0 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ Benchmarking dbserver.defacto.local (be patient).....done Server Software: Apache Server Hostname: webserver.defacto.local Server Port: 8081 Document Path: /Charts/Test Document Length: 65 bytes Concurrency Level: 10 Time taken for tests: 115.31250 seconds Complete requests: 100 Failed requests: 11 (Connect: 0, Length: 11, Exceptions: 0) Write errors: 0 Total transferred: 18689 bytes HTML transferred: 6489 bytes Requests per second: 0.87 [#/sec] (mean) Time per request: 11503.125 [ms] (mean) Time per request: 1150.313 [ms] (mean, across all concurrent requests) Transfer rate: 0.16 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 4093 11313 2792.3 11109 17312 Waiting: 4093 11313 2792.2 11109 17312 Total: 4093 11313 2792.3 11109 17312 Percentage of the requests served within a certain time (ms) 50% 11109 66% 11796 75% 13546 80% 14015 90% 15171 95% 16078 98% 16625 99% 17312 100% 17312 (longest request) C:\Program Files\Apache Group\Apache2\bin> Length errors are due to filename sometimes having differing sizes And it still churned out about 1 chart a second. I did the same test on the production server: OS: Windows 2000 Advanced Server CPU: 2 x Pentium Xeon 1.2Ghz processor Memory: 4Gb Software: jCharts 1.0+ with SUN JVM 1.4.1_01, Tomcat 4.1.24, ActiveDirectory, not much else [root@DBServer bin]# ab -n 100 -c 10 http://dbserver.defacto.local:8081/Charts/Test This is ApacheBench, Version 1.3d <$Revision: 1.67 $> apache-1.3 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ Benchmarking dbserver.defacto.local (be patient).....done Server Software: Apache Server Hostname: dbserver.defacto.local Server Port: 8081 Document Path: /Charts/Test Document Length: 65 bytes Concurrency Level: 10 Time taken for tests: 14.040 seconds Complete requests: 100 Failed requests: 38 (Connect: 0, Length: 38, Exceptions: 0) Broken pipe errors: 0 Total transferred: 18662 bytes HTML transferred: 6462 bytes Requests per second: 7.12 [#/sec] (mean) Time per request: 1404.00 [ms] (mean) Time per request: 140.40 [ms] (mean, across all concurrent requests) Transfer rate: 1.33 [Kbytes/sec] received Connnection Times (ms) min mean[+/-sd] median max Connect: 0 7 22.5 0 100 Processing: 456 1338 434.0 1288 2568 Waiting: 456 1337 434.1 1288 2568 Total: 456 1345 435.6 1288 2568 Percentage of the requests served within a certain time (ms) 50% 1288 66% 1506 75% 1660 80% 1753 90% 1894 95% 2059 98% 2406 99% 2545 100% 2568 (last request) I get the feeling that pure chart creation is down to CPU and JVM implementation, scalability probabably is memory and servlet engine. Probably a bit of Tomcat tuning on the production machine wouldn't have gone amiss. Chris To: jch...@li... From: dea...@ve... Date: Wed, 3 Sep 2003 15:11:28 -0700 Subject: [jCharts-users] jchart speed and scalability Reply-To: jch...@li... hi folks, I just got the jCharts0.7.4 up and running using jboss3.2.1 on both linux and solaris boxes (JDK1.4.1_02) using the supplied example WAR package. I am rather new to using java servlets let alone jcharts, but I would like to know if there are any benchmarks out there on how fast these charts are generated. For example, let's say we only want to generate a line chart (X,Y) with 95 data points using servlets instead of jsp. Now, excluding any startup-time delays due to the java servlet engine, how fast could the graph be rendered (e.g in comparison to perl/GD and/or Jfreechart)? Now, how about scalability, let's just say same question except many more users accessing different graphs at the same time. In a multi-processor environment, is scalability mostly dependent on the java servlet engine? Also, same question but without using servlets or jsp or any java application server at all? I know benchmarks are very difficult to do, but I'm just looking for a rough estimate. I'm going to run some of my own testing and benchmarks soon also. Thank you. -dean |
From: Nathaniel G. A. <nat...@ya...> - 2003-09-04 02:29:35
|
We do not have any benchmarks that I know of. But, if you would like to donate your information, that would be great! ;) I am sure you will want to run your own tests to verify any performance claims. Scalability can be limited by many things. If you are hitting a database it could be that. It could be the network. It could be your application. It could be your hardware. etc... I am sure there are benchmarks of the various Servlet Containers out there on the web somewhere. Try a load testing tool like OpenSTA or even HttpUnit once you get your samples up. --- dea...@ve... wrote: > hi folks, > I just got the jCharts0.7.4 up and running using jboss3.2.1 on both linux > and solaris boxes (JDK1.4.1_02) using the supplied example WAR package. I > am rather new to using java servlets let alone jcharts, but I would like to > know if there are any benchmarks out there on how fast these charts are > generated. For example, let's say we only want to generate a line chart > (X,Y) with 95 data points using servlets instead of jsp. Now, excluding > any startup-time delays due to the java servlet engine, how fast could the > graph be rendered (e.g in comparison to perl/GD and/or Jfreechart)? Now, > how about scalability, let's just say same question except many more users > accessing different graphs at the same time. In a multi-processor > environment, is scalability mostly dependent on the java servlet engine? > Also, same question but without using servlets or jsp or any java > application server at all? I know benchmarks are very difficult to do, but > I'm just looking for a rough estimate. I'm going to run some of my own > testing and benchmarks soon also. Thank you. > -dean > "In God we trust, all others bring data." > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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: <dea...@ve...> - 2003-09-03 22:09:37
|
hi folks, I just got the jCharts0.7.4 up and running using jboss3.2.1 on both linux and solaris boxes (JDK1.4.1_02) using the supplied example WAR package. I am rather new to using java servlets let alone jcharts, but I would like to know if there are any benchmarks out there on how fast these charts are generated. For example, let's say we only want to generate a line chart (X,Y) with 95 data points using servlets instead of jsp. Now, excluding any startup-time delays due to the java servlet engine, how fast could the graph be rendered (e.g in comparison to perl/GD and/or Jfreechart)? Now, how about scalability, let's just say same question except many more users accessing different graphs at the same time. In a multi-processor environment, is scalability mostly dependent on the java servlet engine? Also, same question but without using servlets or jsp or any java application server at all? I know benchmarks are very difficult to do, but I'm just looking for a rough estimate. I'm going to run some of my own testing and benchmarks soon also. Thank you. -dean "In God we trust, all others bring data." |
From: Nathaniel G. A. <nat...@ya...> - 2003-09-03 14:17:25
|
Those instructions are for jdk 1.4 as it says on the page. You cold try this: http://www.eteks.com/pja/en/ --- Maheshbabu Keerampadi <Mah...@ke...> wrote: > we are using jdk 1.3.1 of weblogic version. > > > > Thanks & regards, > Mahesh Babu K.S. > Frito-lay > Keane India Ltd > Ph : +91-040-23110702 Ext : 385 > Email:-ma...@ke... > ------------------------------------- > Visit www.keane.com we get IT done. > > > > -----Original Message----- > From: Nathaniel G. Auvil [mailto:nat...@ya...] > Sent: Friday, August 29, 2003 8:59 PM > To: Maheshbabu Keerampadi > Cc: jch...@li... > Subject: RE: FInding problem in jcharts in AIX machine. > > > > what version of the jdk are you using? > > > > --- Maheshbabu Keerampadi <Mah...@ke...> wrote: > > Can u tell me what needs to be done. > > > > As per the document, i mentioned the property in my graph .jsp but still > its > > giving problem. > > > > > > > > Thanks & regards, > > Mahesh Babu K.S. > > Frito-lay > > Keane India Ltd > > Ph : +91-040-23110702 Ext : 385 > > Email:-ma...@ke... > > ------------------------------------- > > Visit www.keane.com we get IT done. > > > > > > > > -----Original Message----- > > From: Nathaniel G. Auvil [mailto:nat...@ya...] > > Sent: Friday, August 29, 2003 8:22 PM > > To: Maheshbabu Keerampadi > > Cc: jch...@li... > > Subject: Re: FInding problem in jcharts in AIX machine. > > > > > > > > the problem is you are running headless. Take a look at the the following > > user guide section: > > > http://jcharts.sourceforge.net/userGuide/exportingImages.html#Images+With+No > > +X+Server > > > > > > Also, please send your emails to the: jch...@li... > > list, as I might not be > > available. > > > > > > > > --- Maheshbabu Keerampadi <Mah...@ke...> wrote: > > > hi, > > > i found ur address in Jcharts users. I am facing problem in jcharts in > > AIX > > > machine or solaris machine. Its absolutely fine in Windows. > > > > > > i am getting following error. If u could help me to get rid of this > error > > > that will be fine. > > > > > > > > > > > > ---------------------------------------------------------------------------- > > > > > > ---------------------------------------------------------------------------- > > > ----------------------------------- > > > java.lang.NullPointerException > > > <Aug 29, 2003 9:04:19 AM CDT> <Error> <HTTP> <101017> > > > <[ServletContext(id=221047810,name=graph,context-path=/graph)] Root > cause > > of > > > ServletException > > > java.lang.InternalError: Can't connect to X11 window server using > > > 'US504WEJ.corp.pe:0' > > > as the value of the DISPLAY variable. > > > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > > > at > > > sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:77) > > > at java.lang.Class.forName1(Native Method) > > > at java.lang.Class.forName(Class.java(Compiled Code)) > > > at > > > > > > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment > > > .java:72) > > > at java.awt.Font.initializeFont(Font.java:285) > > > at java.awt.Font.<init>(Font.java:319) > > > at org.jCharts.properties.LegendProperties.<clinit>(Unknown Source) > > > > > > > <Aug 29, 2003 9:04:41 AM CDT> <Error> <HTTP> <101017> > > > <[ServletContext(id=221047810,name=graph,context-path=/graph)] > > > Root cause of ServletException > > > java.lang.NoClassDefFoundError: org/jCharts/properties/LegendProperties > > > > > > ---------------------------------------------------------------------------- > > > > > > ---------------------------------------------------------------------------- > > > ------------------------------------ > > > Thanks & regards, > > > Mahesh Babu K.S. > > > Frito-lay > > > Keane India Ltd > > > Ph : +91-040-23110702 Ext : 385 > > > Email:-ma...@ke... > > > ------------------------------------- > > > Visit www.keane.com we get IT done. > > > > > > > > > > > > ===== > > http://nathaniel-auvil.blog-city.com/ > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site design software > > http://sitebuilder.yahoo.com > > > > > > > ATTACHMENT part 2 application/octet-stream name=Graph.jsp > > > > ===== > http://nathaniel-auvil.blog-city.com/ > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Stefan G. <sg...@me...> - 2003-09-03 13:26:49
|
Thanks!! Nathaniel G. Auvil wrote: >did you look at the test classes under the org.krysalis.jcharts.test package? > >To make a transparent Color simply create a color by: new Color( red, green, blue, alpha ) > > > > >--- Stefan Groschupf <sg...@me...> wrote: > > >>Hi Guys, >> >>I like this chart package very much! Thanks for your work!! >> >>I want to create such an niche 3d with transparency and an radar chart. >>I had checkout the latest code from cvs and build my own package. >>However i can't see how to create an transparent 3d pie chart and how to >>create an radar chart. >> >>Can someone copy paste me just few lines code or point me to an resource >>where i can see how to that? >>All other chart types I can create. >> >>Thanks! >>Stefan. >> >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>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:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >jCharts-users mailing list >jCh...@li... >https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > |
From: Nathaniel G. A. <nat...@ya...> - 2003-09-03 13:16:57
|
--- Ashutosh Satyam <ash...@al...> wrote: > I recently downloaded jcharts0.7.4. > Found the included docs and the example war file quite useful in using and understanding this > library. > I need to plot a Time Series chart, say like a chart depicting the memory usage of the system > i.e. (Memory Usage v/s Time). Why can't you use a Line Chart for this? Did you take a look at the Samples or User Guide? > I have an impression that it's not possible to render such a chart using the existing API. > > What I see in the current available implementation, for the base class Chart are - Axis Chart, > ScatterPlotAxisChart and PieChart2D. > > If in case it's possible to plot, Time Series Chart using these API's. Kindly let me know. > > Thanks & Regards, > Ashutosh > ===== 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-09-03 13:07:50
|
did you look at the test classes under the org.krysalis.jcharts.test package? To make a transparent Color simply create a color by: new Color( red, green, blue, alpha ) --- Stefan Groschupf <sg...@me...> wrote: > Hi Guys, > > I like this chart package very much! Thanks for your work!! > > I want to create such an niche 3d with transparency and an radar chart. > I had checkout the latest code from cvs and build my own package. > However i can't see how to create an transparent 3d pie chart and how to > create an radar chart. > > Can someone copy paste me just few lines code or point me to an resource > where i can see how to that? > All other chart types I can create. > > Thanks! > Stefan. > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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: Ashutosh S. <ash...@al...> - 2003-09-03 11:29:38
|
I recently downloaded jcharts0.7.4.=20 Found the included docs and the example war file quite useful in using = and understanding this library.=20 I need to plot a Time Series chart, say like a chart depicting the = memory usage of the system i.e. (Memory Usage v/s Time). I have an impression that it's not possible to render such a chart using = the existing API.=20 What I see in the current available implementation, for the base class = Chart are - Axis Chart, ScatterPlotAxisChart and PieChart2D. If in case it's possible to plot, Time Series Chart using these API's. = Kindly let me know. Thanks & Regards, Ashutosh |
From: Stefan G. <sg...@me...> - 2003-09-03 09:31:53
|
Hi Guys, I like this chart package very much! Thanks for your work!! I want to create such an niche 3d with transparency and an radar chart. I had checkout the latest code from cvs and build my own package. However i can't see how to create an transparent 3d pie chart and how to create an radar chart. Can someone copy paste me just few lines code or point me to an resource where i can see how to that? All other chart types I can create. Thanks! Stefan. |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-30 18:51:34
|
Jose, the jcharts license allows you to do pretty much whatever you would like with the code provided you include a copy of the license which can be found at: http://jcharts.krysalis.org/license.html --- "Jose R. Cabanes" <ku...@ze...> wrote: > Hi, > > I am Jose Cabanes, an administrator of a SourceForge project > (http://souceforge.net/projects/twostep), a template engine for > developing dynamic web applications. > > We are using several libraries for generating several kinds of > content, as HTML, PDF, JPEGs or PNGs. One of them is jCharts that we use > for generating charts dynamically, ant it works GREAT!. I am > redistributing the jCharts-0.7.2.jar in 2step package. > > Please, let me know if you have any problem with the redistribution. > As both projects are open source, I think that it's ok, but I need your > acknowledgement. If you send me any license text I will include it in > the package. > > Thanks a lot. > Kurt.- > > -- > ------------------ > Zentense > ------------------ > Balmes 58, 2º 1ª > 08007 Barcelona > +34 93 488 10 82 > www.zentense.com > ------------------ > ===== 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-29 15:30:02
|
what version of the jdk are you using? --- Maheshbabu Keerampadi <Mah...@ke...> wrote: > Can u tell me what needs to be done. > > As per the document, i mentioned the property in my graph .jsp but still its > giving problem. > > > > Thanks & regards, > Mahesh Babu K.S. > Frito-lay > Keane India Ltd > Ph : +91-040-23110702 Ext : 385 > Email:-ma...@ke... > ------------------------------------- > Visit www.keane.com we get IT done. > > > > -----Original Message----- > From: Nathaniel G. Auvil [mailto:nat...@ya...] > Sent: Friday, August 29, 2003 8:22 PM > To: Maheshbabu Keerampadi > Cc: jch...@li... > Subject: Re: FInding problem in jcharts in AIX machine. > > > > the problem is you are running headless. Take a look at the the following > user guide section: > http://jcharts.sourceforge.net/userGuide/exportingImages.html#Images+With+No > +X+Server > > > Also, please send your emails to the: jch...@li... > list, as I might not be > available. > > > > --- Maheshbabu Keerampadi <Mah...@ke...> wrote: > > hi, > > i found ur address in Jcharts users. I am facing problem in jcharts in > AIX > > machine or solaris machine. Its absolutely fine in Windows. > > > > i am getting following error. If u could help me to get rid of this error > > that will be fine. > > > > > > > ---------------------------------------------------------------------------- > > > ---------------------------------------------------------------------------- > > ----------------------------------- > > java.lang.NullPointerException > > <Aug 29, 2003 9:04:19 AM CDT> <Error> <HTTP> <101017> > > <[ServletContext(id=221047810,name=graph,context-path=/graph)] Root cause > of > > ServletException > > java.lang.InternalError: Can't connect to X11 window server using > > 'US504WEJ.corp.pe:0' > > as the value of the DISPLAY variable. > > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > > at > > sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:77) > > at java.lang.Class.forName1(Native Method) > > at java.lang.Class.forName(Class.java(Compiled Code)) > > at > > > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment > > .java:72) > > at java.awt.Font.initializeFont(Font.java:285) > > at java.awt.Font.<init>(Font.java:319) > > at org.jCharts.properties.LegendProperties.<clinit>(Unknown Source) > > > > > <Aug 29, 2003 9:04:41 AM CDT> <Error> <HTTP> <101017> > > <[ServletContext(id=221047810,name=graph,context-path=/graph)] > > Root cause of ServletException > > java.lang.NoClassDefFoundError: org/jCharts/properties/LegendProperties > > > ---------------------------------------------------------------------------- > > > ---------------------------------------------------------------------------- > > ------------------------------------ > > Thanks & regards, > > Mahesh Babu K.S. > > Frito-lay > > Keane India Ltd > > Ph : +91-040-23110702 Ext : 385 > > Email:-ma...@ke... > > ------------------------------------- > > Visit www.keane.com we get IT done. > > > > > > > ===== > http://nathaniel-auvil.blog-city.com/ > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > > > ATTACHMENT part 2 application/octet-stream name=Graph.jsp ===== 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-29 14:52:44
|
the problem is you are running headless. Take a look at the the following user guide section: http://jcharts.sourceforge.net/userGuide/exportingImages.html#Images+With+No+X+Server Also, please send your emails to the: jch...@li... list, as I might not be available. --- Maheshbabu Keerampadi <Mah...@ke...> wrote: > hi, > i found ur address in Jcharts users. I am facing problem in jcharts in AIX > machine or solaris machine. Its absolutely fine in Windows. > > i am getting following error. If u could help me to get rid of this error > that will be fine. > > > ---------------------------------------------------------------------------- > ---------------------------------------------------------------------------- > ----------------------------------- > java.lang.NullPointerException > <Aug 29, 2003 9:04:19 AM CDT> <Error> <HTTP> <101017> > <[ServletContext(id=221047810,name=graph,context-path=/graph)] Root cause of > ServletException > java.lang.InternalError: Can't connect to X11 window server using > 'US504WEJ.corp.pe:0' > as the value of the DISPLAY variable. > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > at > sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:77) > at java.lang.Class.forName1(Native Method) > at java.lang.Class.forName(Class.java(Compiled Code)) > at > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment > .java:72) > at java.awt.Font.initializeFont(Font.java:285) > at java.awt.Font.<init>(Font.java:319) > at org.jCharts.properties.LegendProperties.<clinit>(Unknown Source) > > > <Aug 29, 2003 9:04:41 AM CDT> <Error> <HTTP> <101017> > <[ServletContext(id=221047810,name=graph,context-path=/graph)] > Root cause of ServletException > java.lang.NoClassDefFoundError: org/jCharts/properties/LegendProperties > ---------------------------------------------------------------------------- > ---------------------------------------------------------------------------- > ------------------------------------ > Thanks & regards, > Mahesh Babu K.S. > Frito-lay > Keane India Ltd > Ph : +91-040-23110702 Ext : 385 > Email:-ma...@ke... > ------------------------------------- > Visit www.keane.com we get IT done. > > ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: Lapinski, M. (Research) <lap...@cr...> - 2003-08-28 15:07:47
|
Ah great, thank you very much you just saved me from creating a big kludge of code. -thank you -mtl -----Original Message----- From: Nathaniel G. Auvil [mailto:nat...@ya...] Sent: Thursday, August 28, 2003 10:51 AM To: jch...@li... Subject: Re: [jCharts-users] Displaying a chart in a Java GUI take a look at the User Guide section: http://jcharts.sourceforge.net/userGuide/exportingImages.html#Charts+In+Swin g+Apps the package names are different as this is for the upcoming 1.0.0 release, but the methods are the same. --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > Hello, > Has anyone attempted to diaply a chart in a java GUI > instead of exporting as a file? If so how did ya do it? > > I tried the following to no avail: > > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, > axisProperties, > legendProperties, > AxisCharts.width, AxisCharts.height ); > Graphics2D g2d = axisChart.getGraphics2D(); > > //this is a java.awt.Frame > Panel p = new Panel(); > p.setSize(500, 500); > p.add(new Label("popo")); > this.setSize(600, 600); > this.getContentPane().add(p); > p.paint(g2d); > > Anyone have a suggestion? > > -thank you > -mtl > > > -------------------------------------------------- > Michael Lapinski > Computer Scientist > GE Research > > > "I think there is a world market for maybe five computers." > - IBM Chairman Thomas Watson, 1943 > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-28 14:51:37
|
take a look at the User Guide section: http://jcharts.sourceforge.net/userGuide/exportingImages.html#Charts+In+Swing+Apps the package names are different as this is for the upcoming 1.0.0 release, but the methods are the same. --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > Hello, > Has anyone attempted to diaply a chart in a java GUI > instead of exporting as a file? If so how did ya do it? > > I tried the following to no avail: > > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, > axisProperties, > legendProperties, > AxisCharts.width, AxisCharts.height ); > Graphics2D g2d = axisChart.getGraphics2D(); > > //this is a java.awt.Frame > Panel p = new Panel(); > p.setSize(500, 500); > p.add(new Label("popo")); > this.setSize(600, 600); > this.getContentPane().add(p); > p.paint(g2d); > > Anyone have a suggestion? > > -thank you > -mtl > > > -------------------------------------------------- > Michael Lapinski > Computer Scientist > GE Research > > > "I think there is a world market for maybe five computers." > - IBM Chairman Thomas Watson, 1943 > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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: Lapinski, M. (Research) <lap...@cr...> - 2003-08-28 14:16:44
|
Hello, Has anyone attempted to diaply a chart in a java GUI instead of exporting as a file? If so how did ya do it? I tried the following to no avail: AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, AxisCharts.width, AxisCharts.height ); Graphics2D g2d = axisChart.getGraphics2D(); //this is a java.awt.Frame Panel p = new Panel(); p.setSize(500, 500); p.add(new Label("popo")); this.setSize(600, 600); this.getContentPane().add(p); p.paint(g2d); Anyone have a suggestion? -thank you -mtl -------------------------------------------------- Michael Lapinski Computer Scientist GE Research "I think there is a world market for maybe five computers." - IBM Chairman Thomas Watson, 1943 |
From: Lapinski, M. (Research) <lap...@cr...> - 2003-08-27 13:17:43
|
Well in my case ill have to do the following: - implement the PreAxisValueRenderListener - pass it to the BarChartProperties using addPreRenderEventListener() What I not clear on is how to access the given Paints that are passed in the array. What id like to do is make use of the array of Paints so that position in the array corresponds to the Color sitting in the array. So for example the preRender() method would look like this: axisValueRenderEvent.getGraphics2D.setPaint(Paints[axisValueRenderEvent.getD ataSetIndex()]); The questions that remain are: - how to access the array of paints in the preRender() method? - does dataSetIndex correspond to the position of the piece of data in the data array? Ie data {{5, 10,15}} when the event comes with dataSetIndex of 1 this is the event for value 15? -thank you -mtl -----Original Message----- From: Nathaniel G. Auvil [mailto:nat...@ya...] Sent: Wednesday, August 27, 2003 8:44 AM To: jch...@li... Cc: lap...@cr... Subject: RE: [jCharts-users] AxisChartDataSet Constructor paints parameter Some other charts need an Array. Could we have overloaded the Constructor...sure. in your case, simply pass: new Paint[]{ Color.blue } --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > Ok, > Then why is it that an array of Color's > is passed as a param? not just one Color? > > Again I am not subscribed to the list so > please make sure my email addr is included > in any reply. (lapinski<AT>research.ge.com) > > -thank you > -mtl > > > -----Original Message----- > From: Nathaniel G. Auvil [mailto:nat...@ya...] > Sent: Tuesday, August 26, 2003 12:15 PM > To: jch...@li... > Cc: lap...@cr... > Subject: Re: [jCharts-users] AxisChartDataSet Constructor paints parameter > > > > If you are plotting a bar chart, only one Paint is needed/used; it is > at the dataset level. If you want each bar to have its own Paint, you > would need to implement the: > org.jCharts.axisChart.customRenderers.axisValue.PreAxisValueRenderList > ener > Interface to assign a different Paint to each bar. > > > > --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > > Hello, > > Let me preface with the fact that I am not subscribed > > to the list so please include my email in any replies. > > If you dont see it the addr is (lapinski<AT>research.ge.com). > > > > > > Can someone elaborate on how the java.awt.Paint[] paints param is > > mapped when the graph is actually drawn? > > > > if i have an array of data {{1,2,3,4}} > > > > and i pass the paints as {Color.red, Color.green, > > Color.pink, Color.black} > > > > can i assume the bar for 1 will be red, bar for 2 > > will be green and so on? > > > > -thank you > > -mtl > > > > -------------------------------------------------- > > Michael Lapinski > > Computer Scientist > > GE Research > > > > > > "I think there is a world market for maybe five computers." > > - IBM Chairman Thomas Watson, 1943 > > > > > > ------------------------------------------------------- > > 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:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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: Nathaniel G. A. <nat...@ya...> - 2003-08-27 12:44:12
|
Some other charts need an Array. Could we have overloaded the Constructor...sure. in your case, simply pass: new Paint[]{ Color.blue } --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > Ok, > Then why is it that an array of Color's > is passed as a param? not just one Color? > > Again I am not subscribed to the list so > please make sure my email addr is included > in any reply. (lapinski<AT>research.ge.com) > > -thank you > -mtl > > > -----Original Message----- > From: Nathaniel G. Auvil [mailto:nat...@ya...] > Sent: Tuesday, August 26, 2003 12:15 PM > To: jch...@li... > Cc: lap...@cr... > Subject: Re: [jCharts-users] AxisChartDataSet Constructor paints parameter > > > > If you are plotting a bar chart, only one Paint is needed/used; it is at the > dataset level. If you want each bar to have its own Paint, you would need > to implement the: > org.jCharts.axisChart.customRenderers.axisValue.PreAxisValueRenderListener > Interface to assign a different Paint to each bar. > > > > --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > > Hello, > > Let me preface with the fact that I am not subscribed > > to the list so please include my email in any replies. > > If you dont see it the addr is (lapinski<AT>research.ge.com). > > > > > > Can someone elaborate on how the java.awt.Paint[] paints param is > > mapped when the graph is actually drawn? > > > > if i have an array of data {{1,2,3,4}} > > > > and i pass the paints as {Color.red, Color.green, > > Color.pink, Color.black} > > > > can i assume the bar for 1 will be red, bar for 2 > > will be green and so on? > > > > -thank you > > -mtl > > > > -------------------------------------------------- > > Michael Lapinski > > Computer Scientist > > GE Research > > > > > > "I think there is a world market for maybe five computers." > > - IBM Chairman Thomas Watson, 1943 > > > > > > ------------------------------------------------------- > > 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:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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: Lapinski, M. (Research) <lap...@cr...> - 2003-08-27 12:07:35
|
Ok, Then why is it that an array of Color's is passed as a param? not just one Color? Again I am not subscribed to the list so please make sure my email addr is included in any reply. (lapinski<AT>research.ge.com) -thank you -mtl -----Original Message----- From: Nathaniel G. Auvil [mailto:nat...@ya...] Sent: Tuesday, August 26, 2003 12:15 PM To: jch...@li... Cc: lap...@cr... Subject: Re: [jCharts-users] AxisChartDataSet Constructor paints parameter If you are plotting a bar chart, only one Paint is needed/used; it is at the dataset level. If you want each bar to have its own Paint, you would need to implement the: org.jCharts.axisChart.customRenderers.axisValue.PreAxisValueRenderListener Interface to assign a different Paint to each bar. --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > Hello, > Let me preface with the fact that I am not subscribed > to the list so please include my email in any replies. > If you dont see it the addr is (lapinski<AT>research.ge.com). > > > Can someone elaborate on how the java.awt.Paint[] paints param is > mapped when the graph is actually drawn? > > if i have an array of data {{1,2,3,4}} > > and i pass the paints as {Color.red, Color.green, > Color.pink, Color.black} > > can i assume the bar for 1 will be red, bar for 2 > will be green and so on? > > -thank you > -mtl > > -------------------------------------------------- > Michael Lapinski > Computer Scientist > GE Research > > > "I think there is a world market for maybe five computers." > - IBM Chairman Thomas Watson, 1943 > > > ------------------------------------------------------- > 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: Nathaniel G. A. <nat...@ya...> - 2003-08-26 16:15:38
|
If you are plotting a bar chart, only one Paint is needed/used; it is at the dataset level. If you want each bar to have its own Paint, you would need to implement the: org.jCharts.axisChart.customRenderers.axisValue.PreAxisValueRenderListener Interface to assign a different Paint to each bar. --- "Lapinski, Michael (Research)" <lap...@cr...> wrote: > Hello, > Let me preface with the fact that I am not subscribed > to the list so please include my email in any replies. > If you dont see it the addr is (lapinski<AT>research.ge.com). > > > Can someone elaborate on how the java.awt.Paint[] paints > param is mapped when the graph is actually drawn? > > if i have an array of data {{1,2,3,4}} > > and i pass the paints as {Color.red, Color.green, > Color.pink, Color.black} > > can i assume the bar for 1 will be red, bar for 2 > will be green and so on? > > -thank you > -mtl > > -------------------------------------------------- > Michael Lapinski > Computer Scientist > GE Research > > > "I think there is a world market for maybe five computers." > - IBM Chairman Thomas Watson, 1943 > > > ------------------------------------------------------- > 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: Lapinski, M. (Research) <lap...@cr...> - 2003-08-26 15:32:22
|
Hello, Let me preface with the fact that I am not subscribed to the list so please include my email in any replies. If you dont see it the addr is (lapinski<AT>research.ge.com). Can someone elaborate on how the java.awt.Paint[] paints param is mapped when the graph is actually drawn? if i have an array of data {{1,2,3,4}} and i pass the paints as {Color.red, Color.green, Color.pink, Color.black} can i assume the bar for 1 will be red, bar for 2 will be green and so on? -thank you -mtl -------------------------------------------------- Michael Lapinski Computer Scientist GE Research "I think there is a world market for maybe five computers." - IBM Chairman Thomas Watson, 1943 |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-26 14:53:06
|
yes, I also added that code to the 'Patches' section of the jcharts sourceforge site. --- Vikram Rajan <Vi...@PL...> wrote: > Pal, > > > w.r.t. to the axis labels, there is a length allocated to each label and > jCharts calculates whether all labels can be fitted into the charts. If not, > the labels are displayed selectively - alternate labels may be displayed, or > every third label may be displayed, or every fourth ... depending on the > size of the label. The size of the label is a function of the font size, > font and the number of characters in the label string. > > There is a code submission in the developer's list which will help you get > around the label problem by truncating labels and appending a "..." to them. > It will also let you image map the label text so that when the user does a > mouse over on the label, the complete string will be displayed. > > hope this helps, > Vikram > > -----Original Message----- > From: Pal Perinbam [mailto:pal...@ya...] > Sent: Tuesday, August 26, 2003 7:07 PM > To: jch...@li... > Subject: [jCharts-users] Problems in Barchart and Line Chart > > > > Hi, > > As I told you earlier, I herewith send the code sample. > > Please run this by setting font size in the code. > > > We are using Jcharts to generate charts for our project. We have a problem > while printing the charts. The charts are fine on the > > screen but when we print that it looks blurred. We suspect it may be due to > the Jpeg encoding. We encode the chart object into jpeg image > > using the Jpegencoder13 provided with jcharts. Is there a way to create BMP > or any other high quality image from jcharts, or can we improve > > image quality by some other means. > > We also face another problem. When we increase the X Axis label font size > of a line chart or bar chart, most of the Xaxis labels > > disappear. I've attached a sample to simulate this. In the below Sample. the > chart is fine when the font size is 10, but when it is changed to 11 > > the labels disappear. > > Expecting your earliest reply. > > import org.jCharts.properties.LegendProperties; > import org.jCharts.properties.ChartProperties; > import org.jCharts.properties.util.ChartStroke; > import org.jCharts.properties.util.ChartFont; > import org.jCharts.properties.BarChartProperties; > import org.jCharts.properties.AxisProperties; > import org.jCharts.properties.DataAxisProperties; > import org.jCharts.chartData.AxisChartDataSet; > import org.jCharts.chartData.interfaces.IAxisDataSeries; > import org.jCharts.chartData.DataSeries; > import org.jCharts.axisChart.AxisChart; > import org.jCharts.types.ChartType; > import org.jCharts.encoders.JPEGEncoder13; > import java.awt.Color; > import java.awt.Paint; > import java.awt.Font; > import java.awt.BasicStroke; > import java.io.FileOutputStream; > > class createBarChart > { > public static void main(String[] args) > { > try { > int fontSize=10; //Font Size > int width = 300; > int height = 200; > > > LegendProperties legendProperties=null; > ChartProperties chartProperties = new ChartProperties(); > AxisProperties axisProperties = new AxisProperties( false ); > FileOutputStream objFOS = new FileOutputStream("mychart.jpg"); > > ChartFont axisScaleFont = new ChartFont( new Font( "Arial", > Font.PLAIN,fontSize), Color.black ); > ChartStroke CSAxis = new ChartStroke(new BasicStroke(1.0f),Color.black); > > axisProperties.getXAxisProperties().setScaleChartFont(axisScaleFont); > axisProperties.getXAxisProperties().setShowEndBorder(false); > axisProperties.getXAxisProperties().setPaddingBetweenXAxisLabels(0f); > axisProperties.getXAxisProperties().setAxisStroke(CSAxis); > > axisProperties.getXAxisProperties().setShowGridLines(DataAxisProperties.GRID > _LINES_NONE); > axisProperties.getYAxisProperties().setScaleChartFont(axisScaleFont); > axisProperties.getYAxisProperties().setShowEndBorder(false); > axisProperties.getYAxisProperties().setAxisStroke(CSAxis); > > axisProperties.getYAxisProperties().setShowGridLines(DataAxisProperties.GRID > _LINES_NONE); > > String title=null; > String[] legendLabels = {" "}; > Paint[] paints = new Paint[]{Color.blue}; > double[][] data = new double[][]{{2.4305638 , 76.2283304 , 59.5653992 > > , 12.9185693 , -94.4018601 , 41.8006188 , 45.009868 , > > -63.0464611 , 0.4272433 , 17.0886599 , 48.8614666 , 89.5960671 > > , 44.107602 , 1.8919965 , -22.7345809 , 97.4517988 , > > 95.248644 , 58.0654687 , 82.1011746 , 36.7686102 , 25.6530842 > > , 60.0724961 , -93.1170484 , 23.6652036 , 37.0968087 , > > 48.8910213 , 79.85264 , 53.9105076, 95.248644 , 58.0654687 , > > 82.1011746 , 36.7686102 , 59.5653992 , 12.9185693 , -94.4018601 , > > 41.8006188, 0.4272433 , 17.0886599 , 48.8614666 , 89.5960671}}; > String[] xAxisLabels = {"93"," "," "," ","94"," "," "," ","95"," "," "," > ","96"," "," "," ","97"," "," "," ","98"," "," "," ","99"," > > "," "," ","00"," "," "," ","01"," "," "," ","02"," "," "," "}; > > DataAxisProperties dataAxisProperties = (DataAxisProperties) > axisProperties.getYAxisProperties(); > dataAxisProperties.setUserDefinedScale(-100,50); > dataAxisProperties.setNumItems(5); > dataAxisProperties.setShowZeroLine(true); > > BarChartProperties barChartProperties = new BarChartProperties(); > barChartProperties.setShowOutlinesFlag(false); > String xAxisTitle = null; > String yAxisTitle = null; > IAxisDataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, > yAxisTitle, title ); > dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( data, legendLabels, > paints, ChartType.BAR, > > barChartProperties ) ); > AxisChart axisChart = new AxisChart( dataSeries, chartProperties, > axisProperties, legendProperties, width, > > height ); > > JPEGEncoder13.encode( axisChart, 1.0f, objFOS ); > } > catch( Exception exp ) > { > exp.printStackTrace(); > } > } > } > > > Thanks, > Pal > > > > > > _____ > > Do you Yahoo!? > SBC > <http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/s > bc/> 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: Vikram R. <Vi...@PL...> - 2003-08-26 13:55:16
|
Pal, w.r.t. to the axis labels, there is a length allocated to each label and jCharts calculates whether all labels can be fitted into the charts. If not, the labels are displayed selectively - alternate labels may be displayed, or every third label may be displayed, or every fourth ... depending on the size of the label. The size of the label is a function of the font size, font and the number of characters in the label string. There is a code submission in the developer's list which will help you get around the label problem by truncating labels and appending a "..." to them. It will also let you image map the label text so that when the user does a mouse over on the label, the complete string will be displayed. hope this helps, Vikram -----Original Message----- From: Pal Perinbam [mailto:pal...@ya...] Sent: Tuesday, August 26, 2003 7:07 PM To: jch...@li... Subject: [jCharts-users] Problems in Barchart and Line Chart Hi, As I told you earlier, I herewith send the code sample. Please run this by setting font size in the code. We are using Jcharts to generate charts for our project. We have a problem while printing the charts. The charts are fine on the screen but when we print that it looks blurred. We suspect it may be due to the Jpeg encoding. We encode the chart object into jpeg image using the Jpegencoder13 provided with jcharts. Is there a way to create BMP or any other high quality image from jcharts, or can we improve image quality by some other means. We also face another problem. When we increase the X Axis label font size of a line chart or bar chart, most of the Xaxis labels disappear. I've attached a sample to simulate this. In the below Sample. the chart is fine when the font size is 10, but when it is changed to 11 the labels disappear. Expecting your earliest reply. import org.jCharts.properties.LegendProperties; import org.jCharts.properties.ChartProperties; import org.jCharts.properties.util.ChartStroke; import org.jCharts.properties.util.ChartFont; import org.jCharts.properties.BarChartProperties; import org.jCharts.properties.AxisProperties; import org.jCharts.properties.DataAxisProperties; import org.jCharts.chartData.AxisChartDataSet; import org.jCharts.chartData.interfaces.IAxisDataSeries; import org.jCharts.chartData.DataSeries; import org.jCharts.axisChart.AxisChart; import org.jCharts.types.ChartType; import org.jCharts.encoders.JPEGEncoder13; import java.awt.Color; import java.awt.Paint; import java.awt.Font; import java.awt.BasicStroke; import java.io.FileOutputStream; class createBarChart { public static void main(String[] args) { try { int fontSize=10; //Font Size int width = 300; int height = 200; LegendProperties legendProperties=null; ChartProperties chartProperties = new ChartProperties(); AxisProperties axisProperties = new AxisProperties( false ); FileOutputStream objFOS = new FileOutputStream("mychart.jpg"); ChartFont axisScaleFont = new ChartFont( new Font( "Arial", Font.PLAIN,fontSize), Color.black ); ChartStroke CSAxis = new ChartStroke(new BasicStroke(1.0f),Color.black); axisProperties.getXAxisProperties().setScaleChartFont(axisScaleFont); axisProperties.getXAxisProperties().setShowEndBorder(false); axisProperties.getXAxisProperties().setPaddingBetweenXAxisLabels(0f); axisProperties.getXAxisProperties().setAxisStroke(CSAxis); axisProperties.getXAxisProperties().setShowGridLines(DataAxisProperties.GRID _LINES_NONE); axisProperties.getYAxisProperties().setScaleChartFont(axisScaleFont); axisProperties.getYAxisProperties().setShowEndBorder(false); axisProperties.getYAxisProperties().setAxisStroke(CSAxis); axisProperties.getYAxisProperties().setShowGridLines(DataAxisProperties.GRID _LINES_NONE); String title=null; String[] legendLabels = {" "}; Paint[] paints = new Paint[]{Color.blue}; double[][] data = new double[][]{{2.4305638 , 76.2283304 , 59.5653992 , 12.9185693 , -94.4018601 , 41.8006188 , 45.009868 , -63.0464611 , 0.4272433 , 17.0886599 , 48.8614666 , 89.5960671 , 44.107602 , 1.8919965 , -22.7345809 , 97.4517988 , 95.248644 , 58.0654687 , 82.1011746 , 36.7686102 , 25.6530842 , 60.0724961 , -93.1170484 , 23.6652036 , 37.0968087 , 48.8910213 , 79.85264 , 53.9105076, 95.248644 , 58.0654687 , 82.1011746 , 36.7686102 , 59.5653992 , 12.9185693 , -94.4018601 , 41.8006188, 0.4272433 , 17.0886599 , 48.8614666 , 89.5960671}}; String[] xAxisLabels = {"93"," "," "," ","94"," "," "," ","95"," "," "," ","96"," "," "," ","97"," "," "," ","98"," "," "," ","99"," "," "," ","00"," "," "," ","01"," "," "," ","02"," "," "," "}; DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties(); dataAxisProperties.setUserDefinedScale(-100,50); dataAxisProperties.setNumItems(5); dataAxisProperties.setShowZeroLine(true); BarChartProperties barChartProperties = new BarChartProperties(); barChartProperties.setShowOutlinesFlag(false); String xAxisTitle = null; String yAxisTitle = null; IAxisDataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, barChartProperties ) ); AxisChart axisChart = new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, width, height ); JPEGEncoder13.encode( axisChart, 1.0f, objFOS ); } catch( Exception exp ) { exp.printStackTrace(); } } } Thanks, Pal _____ Do you Yahoo!? SBC <http://pa.yahoo.com/*http://rd.yahoo.com/evt=1207/*http://promo.yahoo.com/s bc/> Yahoo! DSL - Now only $29.95 per month! |
From: Pal P. <pal...@ya...> - 2003-08-26 13:37:25
|
Hi, As I told you earlier, I herewith send the code sample. Please run this by setting font size in the code. We are using Jcharts to generate charts for our project. We have a problem while printing the charts. The charts are fine on the screen but when we print that it looks blurred. We suspect it may be due to the Jpeg encoding. We encode the chart object into jpeg image using the Jpegencoder13 provided with jcharts. Is there a way to create BMP or any other high quality image from jcharts, or can we improve image quality by some other means. We also face another problem. When we increase the X Axis label font size of a line chart or bar chart, most of the Xaxis labels disappear. I've attached a sample to simulate this. In the below Sample. the chart is fine when the font size is 10, but when it is changed to 11 the labels disappear. Expecting your earliest reply. import org.jCharts.properties.LegendProperties; import org.jCharts.properties.ChartProperties; import org.jCharts.properties.util.ChartStroke; import org.jCharts.properties.util.ChartFont; import org.jCharts.properties.BarChartProperties; import org.jCharts.properties.AxisProperties; import org.jCharts.properties.DataAxisProperties; import org.jCharts.chartData.AxisChartDataSet; import org.jCharts.chartData.interfaces.IAxisDataSeries; import org.jCharts.chartData.DataSeries; import org.jCharts.axisChart.AxisChart; import org.jCharts.types.ChartType; import org.jCharts.encoders.JPEGEncoder13; import java.awt.Color; import java.awt.Paint; import java.awt.Font; import java.awt.BasicStroke; import java.io.FileOutputStream; class createBarChart { public static void main(String[] args) { try { int fontSize=10; //Font Size int width = 300; int height = 200; LegendProperties legendProperties=null; ChartProperties chartProperties = new ChartProperties(); AxisProperties axisProperties = new AxisProperties( false ); FileOutputStream objFOS = new FileOutputStream("mychart.jpg"); ChartFont axisScaleFont = new ChartFont( new Font( "Arial", Font.PLAIN,fontSize), Color.black ); ChartStroke CSAxis = new ChartStroke(new BasicStroke(1.0f),Color.black); axisProperties.getXAxisProperties().setScaleChartFont(axisScaleFont); axisProperties.getXAxisProperties().setShowEndBorder(false); axisProperties.getXAxisProperties().setPaddingBetweenXAxisLabels(0f); axisProperties.getXAxisProperties().setAxisStroke(CSAxis); axisProperties.getXAxisProperties().setShowGridLines(DataAxisProperties.GRID_LINES_NONE); axisProperties.getYAxisProperties().setScaleChartFont(axisScaleFont); axisProperties.getYAxisProperties().setShowEndBorder(false); axisProperties.getYAxisProperties().setAxisStroke(CSAxis); axisProperties.getYAxisProperties().setShowGridLines(DataAxisProperties.GRID_LINES_NONE); String title=null; String[] legendLabels = {" "}; Paint[] paints = new Paint[]{Color.blue}; double[][] data = new double[][]{{2.4305638 , 76.2283304 , 59.5653992 , 12.9185693 , -94.4018601 , 41.8006188 , 45.009868 , -63.0464611 , 0.4272433 , 17.0886599 , 48.8614666 , 89.5960671 , 44.107602 , 1.8919965 , -22.7345809 , 97.4517988 , 95.248644 , 58.0654687 , 82.1011746 , 36.7686102 , 25.6530842 , 60.0724961 , -93.1170484 , 23.6652036 , 37.0968087 , 48.8910213 , 79.85264 , 53.9105076, 95.248644 , 58.0654687 , 82.1011746 , 36.7686102 , 59.5653992 , 12.9185693 , -94.4018601 , 41.8006188, 0.4272433 , 17.0886599 , 48.8614666 , 89.5960671}}; String[] xAxisLabels = {"93"," "," "," ","94"," "," "," ","95"," "," "," ","96"," "," "," ","97"," "," "," ","98"," "," "," ","99"," "," "," ","00"," "," "," ","01"," "," "," ","02"," "," "," "}; DataAxisProperties dataAxisProperties = (DataAxisProperties) axisProperties.getYAxisProperties(); dataAxisProperties.setUserDefinedScale(-100,50); dataAxisProperties.setNumItems(5); dataAxisProperties.setShowZeroLine(true); BarChartProperties barChartProperties = new BarChartProperties(); barChartProperties.setShowOutlinesFlag(false); String xAxisTitle = null; String yAxisTitle = null; IAxisDataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); dataSeries.addIAxisPlotDataSet( new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, barChartProperties ) ); AxisChart axisChart = new AxisChart( dataSeries, chartProperties, axisProperties, legendProperties, width, height ); JPEGEncoder13.encode( axisChart, 1.0f, objFOS ); } catch( Exception exp ) { exp.printStackTrace(); } } } Thanks, Pal --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! |
From: Nathaniel G. A. <nat...@ya...> - 2003-08-26 12:32:15
|
sounds like your browser is caching the image. Try appending a random number to the end of your URL for the chart on each request to force the browser to reload it. Example: http://www.mydomain.com:8080/myApp/statisticChart?<random number here> --- "pie...@vo..." <pie...@vo...> wrote: > Dear jCharts developers, > > First I'd like to congratulate you for your open source project and also to thank you because it > helps me a lot in my work. > > I'm a french student - now in training period - and I'm working for a Deutch 'streaming' > company. I used jcharts to realize a > statistic module on an Helix Streaming Server. So, with python scripts, I analyse different > logfiles from the server in order to get > informations that I store in a database. Then, via some jsp pages connected to my database, I > show different kind of statistics > with jcharts. > Now, I'd like to realize a dynamic chart. Here is my problem: > The company I am working for is a streaming company that sometimes show Live Events on Internet > (a file is created and > automatically shown on a site). So, the managers would like to have direct informations about > the server utilisation (like a > monitoring page). I'm able to get the informations I need from the server to my database but my > problem is now relative to the > chart that I try to show. Indeed, I try to show the same graph every minute but with the new > datas (added every minute in the > database). I used the HTML META tag (<META http-equiv="REFRESH"...) to realize the refreh. It > works with the data (the page is > refreshed when I only show an array) but the chart stay the same when I use a jcharts graph. > So, I'd like to know if you think that it is possible to 'auto-refresh' a jcharts graph ; and if > you have an example of what I need. > > Thanks for everything. > Best Regards. > > Etienne Bateau, > et...@no... > ------------------------------------------ > > Faites un voeu et puis Voila ! www.voila.fr > > > ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |