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: Leonid A. <leo...@ho...> - 2004-04-01 01:23:37
|
I'm trying to adapt SwingDemo for working within JApplet, but can't make it display anything. Could you look at my code and tell what is wrong with it? Thank you! ____ import org.jCharts.chartData.ChartDataException; import org.jCharts.chartData.PieChartDataSet; import org.jCharts.nonAxisChart.PieChart2D; import org.jCharts.properties.*; import javax.swing.*; import java.awt.*; import java.awt.event.WindowEvent; import java.awt.image .*; public class AppletTest extends JApplet { private JPanel panel; private PieChart2D pieChart2D; private BufferedImage bufferedImage; public AppletTest() { try { initComponents(); } catch(Exception e) {}; } public void init() { this.panel.getGraphics().drawImage(bufferedImage,0,0,this); } public void start() { // this.panel.getGraphics().drawImage(bufferedImage,0,0,this); } public void initComponents() throws ChartDataException, PropertyException { this.panel=new JPanel( true ); this.panel.setSize( 500, 500 ); this.getContentPane().add( this.panel ); String[] labels={"BMW", "Audi", "Lexus"}; String title="Cars that Own"; Paint[] paints={Color.blue, Color.gray, Color.red}; double[] data={50d, 30d, 20d}; PieChart2DProperties pieChart2DProperties=new PieChart2DProperties(); PieChartDataSet pieChartDataSet=new PieChartDataSet( title, data, labels, paints, pieChart2DProperties ); pieChart2D=new PieChart2D( pieChartDataSet, new LegendProperties(), new ChartProperties(), 450, 450 ); bufferedImage=new BufferedImage( 450, 450, BufferedImage.TYPE_INT_RGB ); pieChart2D.setGraphics2D( bufferedImage.createGraphics() ); pieChart2D.render(); } } Regards, Leo Asanov _________________________________________________________________ Personalise your phone with chart ringtones and polyphonics. Go to http://ringtones.com.au/ninemsn/control?page=/ninemsn/main.jsp |
From: Junichi K. <ju...@al...> - 2004-03-26 02:59:45
|
Classpass was not correct. Thank you Nathaniel and David. Junichi On Thu, 25 Mar 2004 09:10:01 -0500 David Han <Dav...@na...> wrote: > Sounds like you tried to run the program where the IPieChartDataSet > program is. Go to the parent directory of > org/jCharts/chartData/interfaces/IPieChartDataSet and enter > > java org.jCharts.chartData.interfaces.IPieChartDataSet > > or remove the package statement in the program and run the program > the way you did the first time. > > Make sure the classpath variable also contains the current directory (.). > > David > > > >i just looked in the jar and that Class is there. Sounds like your > >classpath is not correct. > > > > > >--- Junichi Katagiri <ju...@al...> wrote: > >> Hi, everyone. > >> > >> I installed JChart(0.7.5) for the first time, today. > >> And tried to compile and execute SwingDemo example. > >> I succeeded in compile, but I executed it, > >> Exception was happened. > >> > >> Exception in thread "main" java.lang.NoClassDefFoundError: > > > org/jCharts/chartData/interfaces/IPieChartDataSet > >> > >> I set classpath to jCharts-0.7.5.jar. > >> > >> How do I execute the example? > >> > >> Can anyone help me. > > > Thanks, > > > -- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: David H. <Dav...@na...> - 2004-03-25 14:10:04
|
Sounds like you tried to run the program where the IPieChartDataSet program is. Go to the parent directory of org/jCharts/chartData/interfaces/IPieChartDataSet and enter java org.jCharts.chartData.interfaces.IPieChartDataSet or remove the package statement in the program and run the program the way you did the first time. Make sure the classpath variable also contains the current directory (.). David >i just looked in the jar and that Class is there. Sounds like your >classpath is not correct. > > >--- Junichi Katagiri <ju...@al...> wrote: >> Hi, everyone. >> >> I installed JChart(0.7.5) for the first time, today. >> And tried to compile and execute SwingDemo example. >> I succeeded in compile, but I executed it, >> Exception was happened. >> >> Exception in thread "main" java.lang.NoClassDefFoundError: > > org/jCharts/chartData/interfaces/IPieChartDataSet >> >> I set classpath to jCharts-0.7.5.jar. >> >> How do I execute the example? >> >> Can anyone help me. > > Thanks, -- |
From: Nathaniel G. A. <nat...@ya...> - 2004-03-25 13:53:41
|
i just looked in the jar and that Class is there. Sounds like your classpath is not correct. --- Junichi Katagiri <ju...@al...> wrote: > Hi, everyone. > > I installed JChart(0.7.5) for the first time, today. > And tried to compile and execute SwingDemo example. > I succeeded in compile, but I executed it, > Exception was happened. > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/jCharts/chartData/interfaces/IPieChartDataSet > > I set classpath to jCharts-0.7.5.jar. > > How do I execute the example? > > Can anyone help me. > Thanks, > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |
From: Junichi K. <ju...@al...> - 2004-03-25 10:39:54
|
Hi, everyone. I installed JChart(0.7.5) for the first time, today. And tried to compile and execute SwingDemo example. I succeeded in compile, but I executed it, Exception was happened. Exception in thread "main" java.lang.NoClassDefFoundError: org/jCharts/chartData/interfaces/IPieChartDataSet I set classpath to jCharts-0.7.5.jar. How do I execute the example? Can anyone help me. Thanks, |
From: Raketla, G. (IE10) <Rak...@ho...> - 2004-03-22 10:50:22
|
Hi, What is the usage of DefaultKeyedValueDataset class. I need to plot a line graph . My X-axix contains months Jan, Feb,March till December, Y-axis contains the some values starting from 10,20,30 till 100. But in most of the cases the values will be available only from Sept to December. Can i make use of DefaultKeyedValueDataset for this purpose.Please Thanks and Regards Gandhi,Raketla Software Engineer Digital Enterprise Solutions Honeywell > Honeywell Technology Solutions Lab > 151/1 Doraisanipalya, Bannerghatta Road, > Bangalore 560 076, INDIA > Phone: ++91-80-26588360(Extn :3244(Saturn)) > Fax : ++91-80-6584750 mobile : +91-80-31815880 This e-mail, and any attachments thereto, are intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is illegal and strictly prohibited. If you have received this e-mail in error, please immediately notify me by telephone and permanently delete the original and any copy of any e-mail and any printout thereof. > -----Original Message----- > From: Nathaniel G. Auvil [SMTP:nat...@ya...] > Sent: Monday, March 22, 2004 3:12 AM > To: jch...@li... > Subject: Re: [jCharts-users] Problem in generating combined charts. > > > Dual axis are not officially supported; there is a patch on the > sourceforge site which allows for > a limited dual axis functionality. > > > > --- "Raketla, Gandhi (IE10)" <Rak...@ho...> wrote: > > Hi, > > I want to generate a combined chart. My chart should plot both bar and > > line graph for same domain Axis and also it should have dual Axis.Iam > > attaching the sample graph that i need to generate. Your help will be > > appreciated greatly. > > <<chart.gif>> > > > > Thanks and Regards > > Gandhi,Raketla > > Software Engineer > > Digital Enterprise Solutions > > Honeywell > > > Honeywell Technology Solutions Lab > > > 151/1 Doraisanipalya, Bannerghatta Road, > > > Bangalore 560 076, INDIA > > > Phone: ++91-80-26588360(Extn :3244(Saturn)) > > > Fax : ++91-80-6584750 > > mobile : +91-80-31815880 > > This e-mail, and any attachments thereto, are intended only for use by > the > > addressee(s) named herein and may contain legally privileged and/or > > confidential information. If you are not the intended recipient of this > > e-mail, you are hereby notified that any dissemination, distribution or > > copying of this e-mail, and any attachments thereto, is illegal and > strictly > > prohibited. If you have received this e-mail in error, please > immediately > > notify me by telephone and permanently delete the original and any copy > of > > any e-mail and any printout thereof. > > > > > > > -----Original Message----- > > > From: Nathaniel G. Auvil [SMTP:nat...@ya...] > > > Sent: Tuesday, August 26, 2003 8:23 PM > > > To: jch...@li... > > > Subject: RE: [jCharts-users] Problems in Barchart and Line Chart > > > > > > > > > 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.GR > > > ID > > > > _LINES_NONE); > > > > > axisProperties.getYAxisProperties().setScaleChartFont(axisScaleFont); > > > > axisProperties.getYAxisProperties().setShowEndBorder(false); > > > > axisProperties.getYAxisProperties().setAxisStroke(CSAxis); > > > > > > > > > > > > axisProperties.getYAxisProperties().setShowGridLines(DataAxisProperties.GR > > > ID > > > > _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 > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > ATTACHMENT part 2 image/gif name=chart.gif > > > > __________________________________ > Do you Yahoo!? > Yahoo! Finance Tax Center - File online. File on time. > http://taxes.yahoo.com/filing.html > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Nathaniel G. A. <nat...@ya...> - 2004-03-21 21:42:20
|
Dual axis are not officially supported; there is a patch on the sourceforge site which allows for a limited dual axis functionality. --- "Raketla, Gandhi (IE10)" <Rak...@ho...> wrote: > Hi, > I want to generate a combined chart. My chart should plot both bar and > line graph for same domain Axis and also it should have dual Axis.Iam > attaching the sample graph that i need to generate. Your help will be > appreciated greatly. > <<chart.gif>> > > Thanks and Regards > Gandhi,Raketla > Software Engineer > Digital Enterprise Solutions > Honeywell > > Honeywell Technology Solutions Lab > > 151/1 Doraisanipalya, Bannerghatta Road, > > Bangalore 560 076, INDIA > > Phone: ++91-80-26588360(Extn :3244(Saturn)) > > Fax : ++91-80-6584750 > mobile : +91-80-31815880 > This e-mail, and any attachments thereto, are intended only for use by the > addressee(s) named herein and may contain legally privileged and/or > confidential information. If you are not the intended recipient of this > e-mail, you are hereby notified that any dissemination, distribution or > copying of this e-mail, and any attachments thereto, is illegal and strictly > prohibited. If you have received this e-mail in error, please immediately > notify me by telephone and permanently delete the original and any copy of > any e-mail and any printout thereof. > > > > -----Original Message----- > > From: Nathaniel G. Auvil [SMTP:nat...@ya...] > > Sent: Tuesday, August 26, 2003 8:23 PM > > To: jch...@li... > > Subject: RE: [jCharts-users] Problems in Barchart and Line Chart > > > > > > 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.GR > > ID > > > _LINES_NONE); > > > axisProperties.getYAxisProperties().setScaleChartFont(axisScaleFont); > > > axisProperties.getYAxisProperties().setShowEndBorder(false); > > > axisProperties.getYAxisProperties().setAxisStroke(CSAxis); > > > > > > > > axisProperties.getYAxisProperties().setShowGridLines(DataAxisProperties.GR > > ID > > > _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 > > > > > > ------------------------------------------------------- > > 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 > > ATTACHMENT part 2 image/gif name=chart.gif __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |
From: Raketla, G. (IE10) <Rak...@ho...> - 2004-03-21 05:51:18
|
Hi, I want to generate a combined chart. My chart should plot both bar and line graph for same domain Axis and also it should have dual Axis.Iam attaching the sample graph that i need to generate. Your help will be appreciated greatly. <<chart.gif>> Thanks and Regards Gandhi,Raketla Software Engineer Digital Enterprise Solutions Honeywell > Honeywell Technology Solutions Lab > 151/1 Doraisanipalya, Bannerghatta Road, > Bangalore 560 076, INDIA > Phone: ++91-80-26588360(Extn :3244(Saturn)) > Fax : ++91-80-6584750 mobile : +91-80-31815880 This e-mail, and any attachments thereto, are intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is illegal and strictly prohibited. If you have received this e-mail in error, please immediately notify me by telephone and permanently delete the original and any copy of any e-mail and any printout thereof. > -----Original Message----- > From: Nathaniel G. Auvil [SMTP:nat...@ya...] > Sent: Tuesday, August 26, 2003 8:23 PM > To: jch...@li... > Subject: RE: [jCharts-users] Problems in Barchart and Line Chart > > > 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.GR > ID > > _LINES_NONE); > > axisProperties.getYAxisProperties().setScaleChartFont(axisScaleFont); > > axisProperties.getYAxisProperties().setShowEndBorder(false); > > axisProperties.getYAxisProperties().setAxisStroke(CSAxis); > > > > > axisProperties.getYAxisProperties().setShowGridLines(DataAxisProperties.GR > ID > > _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 > > > ------------------------------------------------------- > 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: <gi...@mo...> - 2004-03-18 08:22:11
|
Hello Judy, I just reused the samples and it works fine. Depending on what you did you can only show a graph on the jsp. But it is only the case when you set the mime type. If you follow the sample this will work you will get both text And graphs in your jsp. But you must do that in 2 steps as described in the doc. 1) In your servlet generate the charts and store it in the session. 2) The servlet calls the jsp 3) The jsp display images and call the servlet to get the chart as An image Exemple: 1) I call my servlet to generate the charts and stores the image in the session: Chart chart = GraphGenerator.getInstance().generatePie(visitor); storeImage(parsedRequest, chart, "sportSeance_map", "sportSeance_chart"); And the code to store the image is: private void storeImage(ParsedRequest parsedRequest, Chart chart, String mapName, String chartName) throws ChartDataException, PropertyException { chart.renderWithImageMap(); ImageMap imageMap= chart.getImageMap(); parsedRequest.getServletRequest().setAttribute(mapName, imageMap); parsedRequest.getServletRequest().getSession(true).setAttribute(chartName, chart); } 2) I then redirect to the jsp. In the jsp code I have: <tr> <td ><img border="0" src="Graphaction=load&chartName=sportSeance_chart"></td> </tr> 3) The servlet is called again, and stream the chart as an image String chartName = readString(parsedRequest, "chartName", "sportSeance_chart"); Chart chart= (Chart) parsedRequest.getServletRequest().getSession().getAttribute(chartName); ServletEncoderHelper.encodeJPEG13(chart, 1.0f, parsedRequest.getServletResponse()); parsedRequest.getServletRequest().getSession().removeAttribute(chartName); And it works fine Gilles |
From: Huang, J. C <jud...@me...> - 2004-03-17 23:33:48
|
Hi, I am a new user of the Jchart package. Could someone help me on following questions: 1. When I try to add a table in the chart.jsp which is one of the demo application, the table never displayed in the web page. However, if I delete the jchart java codes then the table showed up. In other words the script language can not co-exist with jchart java codes, 2. Is it possible to show error bar in the Bar Chart? For example I would like to display the standard deviation in the Bar chart. Thank you very much. -Judy ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. ------------------------------------------------------------------------------ |
From: David H. <Dav...@na...> - 2004-03-12 14:42:50
|
>oh, you mean labels for the values as in the bar charts? Yes. How do you display the actual values in the bar charts? I still don't see any methods for doing this. >No this is not in the Line Charts yet. > >If you wanted to modify the source, it should not be too difficult to do. -- |
From: Nathaniel G. A. <nat...@ya...> - 2004-03-12 14:13:23
|
oh, you mean labels for the values as in the bar charts? No this is not in the Line Charts yet. If you wanted to modify the source, it should not be too difficult to do. --- David Han <Dav...@na...> wrote: > I didn't even know that ScatterPlot exists since it wasn't included > in the documentation. Isn't a scatter plot supposed to show > correlation between two variables? Anyway, I tried the ScatterPlot > to see whether it can show X-axis labels as well as y point values. > My code below draws a chart (including x-axis and y-axis labels, > title, and legends) but without data points. Am I missing something? > > String[] xAxisLabels = { "1998", "1999", "2000", "2001", > "2002", "2003", "2004" }; > String xAxisTitle = "Years"; > String yAxisTitle = "Problems"; > String title = "Micro$haft at Work"; > DataSeries dataSeries = new DataSeries(xAxisLabels, xAxisTitle, > yAxisTitle, title ); > > double[][] data = new double[][]{ {250, 45, -36, 66, 145, 80, 55} }; > String[] legendLabels = { "Bugs" }; > Paint[] paints = {Color.blue}; > > Stroke[] strokes = { ScatterPlotProperties.DEFAULT_LINE_STROKE }; > Shape[] shapes = { PointChartProperties.SHAPE_CIRCLE }; > ScatterPlotProperties properties = > new ScatterPlotProperties(strokes, shapes); > > AxisChartDataSet axisChartDataSet = > new AxisChartDataSet(data, legendLabels, paints, > ChartType.SCATTER_PLOT, properties ); > dataSeries.addIAxisPlotDataSet (axisChartDataSet); > > ChartProperties chartProperties = new ChartProperties(); > AxisProperties axisProperties = new AxisProperties(); > LegendProperties legendProperties = new LegendProperties(); > > AxisChart axisChart= new AxisChart(dataSeries, chartProperties, > axisProperties, legendProperties, > width-50, height-50); > axisChart.setGraphics2D ( (Graphics2D) panel.getGraphics() ); > axisChart.render(); > > > >Did you try the ScatterPlot? > > > > > > > >--- David Han <Dav...@na...> wrote: > >> Is it possible to display y point values in a line chart? Looks like > > > there aren't any APIs for this. Is this a correct observation? > > > > -- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com |
From: David H. <Dav...@na...> - 2004-03-12 13:56:57
|
I didn't even know that ScatterPlot exists since it wasn't included in the documentation. Isn't a scatter plot supposed to show correlation between two variables? Anyway, I tried the ScatterPlot to see whether it can show X-axis labels as well as y point values. My code below draws a chart (including x-axis and y-axis labels, title, and legends) but without data points. Am I missing something? String[] xAxisLabels = { "1998", "1999", "2000", "2001", "2002", "2003", "2004" }; String xAxisTitle = "Years"; String yAxisTitle = "Problems"; String title = "Micro$haft at Work"; DataSeries dataSeries = new DataSeries(xAxisLabels, xAxisTitle, yAxisTitle, title ); double[][] data = new double[][]{ {250, 45, -36, 66, 145, 80, 55} }; String[] legendLabels = { "Bugs" }; Paint[] paints = {Color.blue}; Stroke[] strokes = { ScatterPlotProperties.DEFAULT_LINE_STROKE }; Shape[] shapes = { PointChartProperties.SHAPE_CIRCLE }; ScatterPlotProperties properties = new ScatterPlotProperties(strokes, shapes); AxisChartDataSet axisChartDataSet = new AxisChartDataSet(data, legendLabels, paints, ChartType.SCATTER_PLOT, properties ); dataSeries.addIAxisPlotDataSet (axisChartDataSet); ChartProperties chartProperties = new ChartProperties(); AxisProperties axisProperties = new AxisProperties(); LegendProperties legendProperties = new LegendProperties(); AxisChart axisChart= new AxisChart(dataSeries, chartProperties, axisProperties, legendProperties, width-50, height-50); axisChart.setGraphics2D ( (Graphics2D) panel.getGraphics() ); axisChart.render(); >Did you try the ScatterPlot? > > > >--- David Han <Dav...@na...> wrote: >> Is it possible to display y point values in a line chart? Looks like > > there aren't any APIs for this. Is this a correct observation? > -- |
From: Parul G. <par...@st...> - 2004-03-12 06:09:45
|
Hi David, I was looking for same functionality. But there aren't any APIs for it. Parul -----Original Message----- From: jch...@li... [mailto:jch...@li...] On Behalf Of = Nathaniel G. Auvil Sent: Friday, March 12, 2004 7:46 AM To: jch...@li... Subject: Re: [jCharts-users] Is it possible to display y point values in = a line chart? Did you try the ScatterPlot? --- David Han <Dav...@na...> wrote: > Is it possible to display y point values in a line chart? Looks like > there aren't any APIs for this. Is this a correct observation? > --=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of=20 > GenToo technologies. Learn everything from fundamentals to system=20 > = administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck > _______________________________________________ > jCharts-users mailing list jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Yahoo! Search - Find what you're looking for faster = http://search.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of = GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Nathaniel G. A. <nat...@ya...> - 2004-03-12 02:34:46
|
Did you try the ScatterPlot? --- David Han <Dav...@na...> wrote: > Is it possible to display y point values in a line chart? Looks like > there aren't any APIs for this. Is this a correct observation? > -- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com |
From: David H. <Dav...@na...> - 2004-03-11 19:16:13
|
Is it possible to display y point values in a line chart? Looks like there aren't any APIs for this. Is this a correct observation? -- |
From: David H. <Dav...@na...> - 2004-03-09 21:02:46
|
I know you have to repaint the screen every time you resize your screen. But my problem with JDK 1.4.1 on Mac OS X 10.2 is nothing gets displayed when you run the program first time from the command line. It just sits there and does nothing. But if you run the same program against 1.4.2 (that is only available for OS X 10.3), all the components are displayed properly (as far as I can tell). But you see an error message in the chart that says "problems" in italics bold at the bottom of the screen. So something is not being interpreted properly. It works beautifully on Linux. I'll try this on Windows, Solaris, and DEC Alpha and report the outcome in about 2 weeks. I'm having this problem wh >are you sure you are not simply having problems with having the >chart repaint itself? If yuo >change the size of the window or component, repaint() gets called on >that component so you need to >ooverride this method to redraw the chart. > > > >--- David Han <Dav...@na...> wrote: >> Just tried the same program on Mac OS X 10.3 with JDK 1.4.2. Graph >> shows up, but not everything gets displayed properly. This is still >> much better than 1.4.1 that just sits there and does nothing. >> >> David >> >> >> >Never mind - nothing is wrong with my code. My code works fine on >> >Linux, but it doesn't work on Mac OS X with JDK 1.4.1. I'll try my >> >code with JDK 1.4.2 on Mac OS X and see if that works. Will keep >> >you posted. >> > >> >David >> > >> >>>did you look at the SwingDemo in the demo package? >> >> >> >> >> >>Yes, I did look prior to posting my message. I don't any >> >>difference between my code and the SwingDemo.java code. What is my >> >>code missing? >> >> >> >> private void initComponents() throws ChartDataException, >>PropertyException >> >> { >> >> this.setSize( width, height ); >> >> this.panel =3D new JPanel( true ); >> >> this.panel.setSize( width, height ); >> >> this.getContentPane().add( this.panel ); >> >> this.setVisible( true ); >> >> >> >> String[] xAxisLabels =3D { "1998", "1999", "2000", "2001", >> >> "2002", "2003", "2004" }; >> >> String xAxisTitle =3D "Years"; >> >> String yAxisTitle =3D "Problems"; >> >> String title =3D "Micro$haft at Work"; >> >> DataSeries dataSeries =3D new DataSeries(xAxisLabels, xAxisTitl= e, >> >> yAxisTitle, title ); >> >> >> >> double[][] data =3D new double[][]{ { 250, 45, -36, 66, >>145, 80, 55 } }; >> >> String[] legendLabels =3D { "Bugs" }; >> >> Paint[] paints =3D {Color.blue}; >> >> >> >> Stroke[] strokes =3D { LineChartProperties.DEFAULT_LINE_STROKE = }; >> >> Shape[] shapes =3D { PointChartProperties.SHAPE_CIRCLE }; >> >> LineChartProperties lineChartProperties =3D new >> >>LineChartProperties(strokes, shapes >> >>); >> >> >> >> AxisChartDataSet axisChartDataSet =3D >> >> new AxisChartDataSet(data, legendLabels, paints, >>ChartType.LINE, >> >> lineChartProperties ); >> >> dataSeries.addIAxisPlotDataSet (axisChartDataSet); >> >> >> >> ChartProperties chartProperties =3D new ChartProperties(); >> >> AxisProperties axisProperties =3D new AxisProperties(); >> >> LegendProperties legendProperties =3D new LegendProperties(); >> >> >> >> AxisChart axisChart=3D new AxisChart(dataSeries, chartPropertie= s, >> >> axisProperties, >>legendProperties, >> >> 450, 450); >> >> axisChart.setGraphics2D ( (Graphics2D) this.panel.getGraphics()= ); >> >> axisChart.render(); >> >>} >> >> >> >> >> >>-- >> >>David Han >> >>dav...@gs... >> >>301-286-3617 >> >> >> >> >> >>------------------------------------------------------- >> >>This SF.Net email is sponsored by: IBM Linux Tutorials >> >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >> >>GenToo technologies. Learn everything from fundamentals to system > > >>administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op= =3Dclick >> >>_______________________________________________ >> >>jCharts-users mailing list >> >>jCh...@li... >> >>https://lists.sourceforge.net/lists/listinfo/jcharts-users >> > >> > >> >-- >> >David Han >> >dav...@gs... >> >301-286-3617 >> > >> > >> >------------------------------------------------------- >> >This SF.Net email is sponsored by: IBM Linux Tutorials >> >Free Linux tutorial presented by Daniel Robbins, President and CEO of >> >GenToo technologies. Learn everything from fundamentals to system >> >administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick >> >_______________________________________________ >> >jCharts-users mailing list >> >jCh...@li... >> >https://lists.sourceforge.net/lists/listinfo/jcharts-users >> >> >> -- >> David Han >> dav...@gs... >> 301-286-3617 >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: IBM Linux Tutorials >> Free Linux tutorial presented by Daniel Robbins, President and CEO of >> GenToo technologies. Learn everything from fundamentals to system >> administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcl= ick >> _______________________________________________ >> jCharts-users mailing list >> jCh...@li... >> https://lists.sourceforge.net/lists/listinfo/jcharts-users > > >__________________________________ >Do you Yahoo!? >Yahoo! Search - Find what you=EDre looking for faster >http://search.yahoo.com > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dclick >_______________________________________________ >jCharts-users mailing list >jCh...@li... >https://lists.sourceforge.net/lists/listinfo/jcharts-users -- David Han dav...@gs... 301-286-3617 |
From: Nathaniel G. A. <nat...@ya...> - 2004-03-09 20:27:18
|
are you sure you are not simply having problems with having the chart repaint itself? If yuo change the size of the window or component, repaint() gets called on that component so you need to ooverride this method to redraw the chart. --- David Han <Dav...@na...> wrote: > Just tried the same program on Mac OS X 10.3 with JDK 1.4.2. Graph > shows up, but not everything gets displayed properly. This is still > much better than 1.4.1 that just sits there and does nothing. > > David > > > >Never mind - nothing is wrong with my code. My code works fine on > >Linux, but it doesn't work on Mac OS X with JDK 1.4.1. I'll try my > >code with JDK 1.4.2 on Mac OS X and see if that works. Will keep > >you posted. > > > >David > > > >>>did you look at the SwingDemo in the demo package? > >> > >> > >>Yes, I did look prior to posting my message. I don't any > >>difference between my code and the SwingDemo.java code. What is my > >>code missing? > >> > >> private void initComponents() throws ChartDataException, PropertyException > >> { > >> this.setSize( width, height ); > >> this.panel = new JPanel( true ); > >> this.panel.setSize( width, height ); > >> this.getContentPane().add( this.panel ); > >> this.setVisible( true ); > >> > >> String[] xAxisLabels = { "1998", "1999", "2000", "2001", > >> "2002", "2003", "2004" }; > >> String xAxisTitle = "Years"; > >> String yAxisTitle = "Problems"; > >> String title = "Micro$haft at Work"; > >> DataSeries dataSeries = new DataSeries(xAxisLabels, xAxisTitle, > >> yAxisTitle, title ); > >> > >> double[][] data = new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } }; > >> String[] legendLabels = { "Bugs" }; > >> Paint[] paints = {Color.blue}; > >> > >> Stroke[] strokes = { LineChartProperties.DEFAULT_LINE_STROKE }; > >> Shape[] shapes = { PointChartProperties.SHAPE_CIRCLE }; > >> LineChartProperties lineChartProperties = new > >>LineChartProperties(strokes, shapes > >>); > >> > >> AxisChartDataSet axisChartDataSet = > >> new AxisChartDataSet(data, legendLabels, paints, ChartType.LINE, > >> lineChartProperties ); > >> dataSeries.addIAxisPlotDataSet (axisChartDataSet); > >> > >> ChartProperties chartProperties = new ChartProperties(); > >> AxisProperties axisProperties = new AxisProperties(); > >> LegendProperties legendProperties = new LegendProperties(); > >> > >> AxisChart axisChart= new AxisChart(dataSeries, chartProperties, > >> axisProperties, legendProperties, > >> 450, 450); > >> axisChart.setGraphics2D ( (Graphics2D) this.panel.getGraphics() ); > >> axisChart.render(); > >>} > >> > >> > >>-- > >>David Han > >>dav...@gs... > >>301-286-3617 > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by: IBM Linux Tutorials > >>Free Linux tutorial presented by Daniel Robbins, President and CEO of > >>GenToo technologies. Learn everything from fundamentals to system > >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > >>_______________________________________________ > >>jCharts-users mailing list > >>jCh...@li... > >>https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > >-- > >David Han > >dav...@gs... > >301-286-3617 > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: IBM Linux Tutorials > >Free Linux tutorial presented by Daniel Robbins, President and CEO of > >GenToo technologies. Learn everything from fundamentals to system > >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > >_______________________________________________ > >jCharts-users mailing list > >jCh...@li... > >https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > -- > David Han > dav...@gs... > 301-286-3617 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com |
From: David H. <Dav...@na...> - 2004-03-09 20:14:49
|
Just tried the same program on Mac OS X 10.3 with JDK 1.4.2. Graph shows up, but not everything gets displayed properly. This is still much better than 1.4.1 that just sits there and does nothing. David >Never mind - nothing is wrong with my code. My code works fine on >Linux, but it doesn't work on Mac OS X with JDK 1.4.1. I'll try my >code with JDK 1.4.2 on Mac OS X and see if that works. Will keep >you posted. > >David > >>>did you look at the SwingDemo in the demo package? >> >> >>Yes, I did look prior to posting my message. I don't any >>difference between my code and the SwingDemo.java code. What is my >>code missing? >> >> private void initComponents() throws ChartDataException, PropertyException >> { >> this.setSize( width, height ); >> this.panel = new JPanel( true ); >> this.panel.setSize( width, height ); >> this.getContentPane().add( this.panel ); >> this.setVisible( true ); >> >> String[] xAxisLabels = { "1998", "1999", "2000", "2001", >> "2002", "2003", "2004" }; >> String xAxisTitle = "Years"; >> String yAxisTitle = "Problems"; >> String title = "Micro$haft at Work"; >> DataSeries dataSeries = new DataSeries(xAxisLabels, xAxisTitle, >> yAxisTitle, title ); >> >> double[][] data = new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } }; >> String[] legendLabels = { "Bugs" }; >> Paint[] paints = {Color.blue}; >> >> Stroke[] strokes = { LineChartProperties.DEFAULT_LINE_STROKE }; >> Shape[] shapes = { PointChartProperties.SHAPE_CIRCLE }; >> LineChartProperties lineChartProperties = new >>LineChartProperties(strokes, shapes >>); >> >> AxisChartDataSet axisChartDataSet = >> new AxisChartDataSet(data, legendLabels, paints, ChartType.LINE, >> lineChartProperties ); >> dataSeries.addIAxisPlotDataSet (axisChartDataSet); >> >> ChartProperties chartProperties = new ChartProperties(); >> AxisProperties axisProperties = new AxisProperties(); >> LegendProperties legendProperties = new LegendProperties(); >> >> AxisChart axisChart= new AxisChart(dataSeries, chartProperties, >> axisProperties, legendProperties, >> 450, 450); >> axisChart.setGraphics2D ( (Graphics2D) this.panel.getGraphics() ); >> axisChart.render(); >>} >> >> >>-- >>David Han >>dav...@gs... >>301-286-3617 >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: IBM Linux Tutorials >>Free Linux tutorial presented by Daniel Robbins, President and CEO of >>GenToo technologies. Learn everything from fundamentals to system >>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >>_______________________________________________ >>jCharts-users mailing list >>jCh...@li... >>https://lists.sourceforge.net/lists/listinfo/jcharts-users > > >-- >David Han >dav...@gs... >301-286-3617 > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >jCharts-users mailing list >jCh...@li... >https://lists.sourceforge.net/lists/listinfo/jcharts-users -- David Han dav...@gs... 301-286-3617 |
From: <sco...@wg...> - 2004-03-09 19:25:59
|
I see on the web site the example for a Radar Chart that's in CVS, but has not yet been released. Can anyone vouch for the stability of the Radar Chart? Can I get it from CVS and use it as is in my project? Thanks, Scott |
From: David H. <Dav...@na...> - 2004-03-09 17:36:57
|
Never mind - nothing is wrong with my code. My code works fine on Linux, but it doesn't work on Mac OS X with JDK 1.4.1. I'll try my code with JDK 1.4.2 on Mac OS X and see if that works. Will keep you posted. David >>did you look at the SwingDemo in the demo package? > > >Yes, I did look prior to posting my message. I don't any difference >between my code and the SwingDemo.java code. What is my code >missing? > > private void initComponents() throws ChartDataException, PropertyException > { > this.setSize( width, height ); > this.panel = new JPanel( true ); > this.panel.setSize( width, height ); > this.getContentPane().add( this.panel ); > this.setVisible( true ); > > String[] xAxisLabels = { "1998", "1999", "2000", "2001", > "2002", "2003", "2004" }; > String xAxisTitle = "Years"; > String yAxisTitle = "Problems"; > String title = "Micro$haft at Work"; > DataSeries dataSeries = new DataSeries(xAxisLabels, xAxisTitle, > yAxisTitle, title ); > > double[][] data = new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } }; > String[] legendLabels = { "Bugs" }; > Paint[] paints = {Color.blue}; > > Stroke[] strokes = { LineChartProperties.DEFAULT_LINE_STROKE }; > Shape[] shapes = { PointChartProperties.SHAPE_CIRCLE }; > LineChartProperties lineChartProperties = new >LineChartProperties(strokes, shapes >); > > AxisChartDataSet axisChartDataSet = > new AxisChartDataSet(data, legendLabels, paints, ChartType.LINE, > lineChartProperties ); > dataSeries.addIAxisPlotDataSet (axisChartDataSet); > > ChartProperties chartProperties = new ChartProperties(); > AxisProperties axisProperties = new AxisProperties(); > LegendProperties legendProperties = new LegendProperties(); > > AxisChart axisChart= new AxisChart(dataSeries, chartProperties, > axisProperties, legendProperties, > 450, 450); > axisChart.setGraphics2D ( (Graphics2D) this.panel.getGraphics() ); > axisChart.render(); >} > > >-- >David Han >dav...@gs... >301-286-3617 > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >jCharts-users mailing list >jCh...@li... >https://lists.sourceforge.net/lists/listinfo/jcharts-users -- David Han dav...@gs... 301-286-3617 |
From: David H. <Dav...@na...> - 2004-03-09 15:08:28
|
>did you look at the SwingDemo in the demo package? Yes, I did look prior to posting my message. I don't any difference between my code and the SwingDemo.java code. What is my code missing? private void initComponents() throws ChartDataException, PropertyException { this.setSize( width, height ); this.panel = new JPanel( true ); this.panel.setSize( width, height ); this.getContentPane().add( this.panel ); this.setVisible( true ); String[] xAxisLabels = { "1998", "1999", "2000", "2001", "2002", "2003", "2004" }; String xAxisTitle = "Years"; String yAxisTitle = "Problems"; String title = "Micro$haft at Work"; DataSeries dataSeries = new DataSeries(xAxisLabels, xAxisTitle, yAxisTitle, title ); double[][] data = new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } }; String[] legendLabels = { "Bugs" }; Paint[] paints = {Color.blue}; Stroke[] strokes = { LineChartProperties.DEFAULT_LINE_STROKE }; Shape[] shapes = { PointChartProperties.SHAPE_CIRCLE }; LineChartProperties lineChartProperties = new LineChartProperties(strokes, shapes ); AxisChartDataSet axisChartDataSet = new AxisChartDataSet(data, legendLabels, paints, ChartType.LINE, lineChartProperties ); dataSeries.addIAxisPlotDataSet (axisChartDataSet); ChartProperties chartProperties = new ChartProperties(); AxisProperties axisProperties = new AxisProperties(); LegendProperties legendProperties = new LegendProperties(); AxisChart axisChart= new AxisChart(dataSeries, chartProperties, axisProperties, legendProperties, 450, 450); axisChart.setGraphics2D ( (Graphics2D) this.panel.getGraphics() ); axisChart.render(); } -- David Han dav...@gs... 301-286-3617 |
From: Nathaniel G. A. <nat...@ya...> - 2004-03-08 22:37:31
|
did you look at the SwingDemo in the demo package? --- David Han <Dav...@na...> wrote: > I'm a newbie with jCharts 0.7.5 and am trying to figure out how to > render Axis Charts in a Java application? Below is my code and I'm > wondering whether anybody sees anything I am doing wrong. The code > listed below compiles fine, but it doesn't draw anything. > > AxisChart axisChart= new AxisChart(dataSeries, chartProperties, > axisProperties, legendProperties, > 400, 350); > Graphics2D g2d = axisChart.getGraphics2D(); > // axisChart.setGraphics2D ( (Graphics2D) this.panel.getGraphics() ); > axisChart.setGraphics2D (g2d); > axisChart.render(); > > Are there some Java application examples out there that render Axis > Charts (e.g. line chart, area chart, etc.)? > -- > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com |
From: David H. <Dav...@na...> - 2004-03-08 16:36:42
|
I'm a newbie with jCharts 0.7.5 and am trying to figure out how to render Axis Charts in a Java application? Below is my code and I'm wondering whether anybody sees anything I am doing wrong. The code listed below compiles fine, but it doesn't draw anything. AxisChart axisChart= new AxisChart(dataSeries, chartProperties, axisProperties, legendProperties, 400, 350); Graphics2D g2d = axisChart.getGraphics2D(); // axisChart.setGraphics2D ( (Graphics2D) this.panel.getGraphics() ); axisChart.setGraphics2D (g2d); axisChart.render(); Are there some Java application examples out there that render Axis Charts (e.g. line chart, area chart, etc.)? -- |
From: David H. <Dav...@na...> - 2004-03-08 14:02:08
|
I cut and pasted the line chart sample that came with the User's Guide. The program compiles fine, but it doesn't draw anything. Do I need to call some more APIs before I can draw a line chart? Here's my program. I'd appreciate for any help. Thanks much in advance. import org.jCharts.Chart; import org.jCharts.axisChart.AxisChart; import org.jCharts.chartData.DataSeries; import org.jCharts.chartData.DataSet; import org.jCharts.chartData.AxisChartDataSet; import org.jCharts.types.ChartType; import org.jCharts.properties.*; import org.jCharts.properties.LineChartProperties; import org.jCharts.properties.PointChartProperties; import org.jCharts.chartData.ChartDataException; import javax.swing.*; import java.awt.*; import java.awt.event.WindowEvent; public class LineChart extends JFrame { private JPanel panel; private static int width = 450; private static int height = 450; private void LineChart () throws ChartDataException, PropertyException { initComponents(); } private void initComponents() throws ChartDataException, PropertyException { this.setSize( width, height ); this.panel = new JPanel( true ); this.panel.setSize( width, height ); this.getContentPane().add( this.panel ); this.setVisible( true ); String[] xAxisLabels = { "1998", "1999", "2000", "2001", "2002", "2003", "2004" }; String xAxisTitle = "Years"; String yAxisTitle = "Problems"; String title = "Micro$haft at Work"; DataSeries dataSeries = new DataSeries(xAxisLabels, xAxisTitle, yAxisTitle, title ); double[][] data = new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } }; String[] legendLabels = { "Bugs" }; Paint[] paints = {Color.blue}; Stroke[] strokes= { LineChartProperties.DEFAULT_LINE_STROKE }; Shape[] shapes= { PointChartProperties.SHAPE_CIRCLE }; LineChartProperties properties = new LineChartProperties(strokes, shapes); AxisChartDataSet axisChartDataSet = new AxisChartDataSet(data, legendLabels, paints, ChartType.LINE, properties ); dataSeries.addIAxisPlotDataSet (axisChartDataSet); ChartProperties chartProperties = new ChartProperties(); AxisProperties axisProperties = new AxisProperties(); LegendProperties legendProperties = new LegendProperties(); AxisChart axisChart= new AxisChart(dataSeries, chartProperties, axisProperties, legendProperties, width, height); addWindowListener( new java.awt.event.WindowAdapter() { public void windowClosing( WindowEvent windowEvent ) { System.exit( 0 ); } } ); } /********************************************************************* * Main *********************************************************************/ public static void main (String args[] ) throws ChartDataException, PropertyException { new LineChart(); } } -- David Han dav...@gs... 301-286-3617 |