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: Nathaniel G. A. <nat...@ya...> - 2004-09-14 00:46:44
|
ok. This trunk is alpha quality code so there are going to be problems. I have not had any time to work on this for a while now, unfortunately. --- Chris Ward <cw...@go...> wrote: > I tried the radar chart support from the krysalis-jcharts 1.0 trunk. > > I wanted to let you know that using the org.krysalis.jcharts.test.RadarTestDriver, the legend is > not showing up despite what appears to me to be code setting the legend to the right side with 1 > column. > > I was also wondering if there is, or if there are any plans to support the radar graph having > just points on the graph instead of the lines (connecting where the points would be), or the > filled in areas? > > The second to that would be if only points were to be displayed, could it support the Double.NaN > like some of the other graphs so that a point would not show up? I tried that, and the current > graph draws lines into the top left corner. > > These aren't demands, just wondering what the direction of the radar graph would be in the eyes > of the people implementing it. > > Chris > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-14 00:44:13
|
You can not use two Data Axis on a Line Chart. You should use an XY Chart. --- jle...@ne... wrote: > Here is the code i use for generate the graphe > > //axe des x données > String[] xAxisLabels=this.x; //{ "1998", "1999", "2000", "2001", "2002", "2003", "2004" }; > //titre des axe > String xAxisTitle= "Jours"; > String yAxisTitle= "Valeurs"; > //titre du graphe > String title= "Glycémie"; > > DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); > > //Données en y > double[][] data= this.y;//new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } , { 150, 15, 6, > 62, -54, 10, 84 }}; // > //legend > //this.maxJour > String[] legendLabels= new String[data.length]; > Paint[] paints = new Paint[data.length]; > Shape[] shapes = new Shape[data.length]; > Paint[] outlinePaints= new Paint[data.length]; > boolean[] fillPointFlags= new boolean[data.length]; > > for (int p=0;p<data.length;p++) > { > legendLabels[p]=null; > paints[p]=Color.blue; > shapes[p]=new Ellipse2D.Double(0,0,4,4); > fillPointFlags[p]=true; > outlinePaints[p]=Color.black; > > } > > //creation du grpahe > PointChartProperties pointChartProperties= new PointChartProperties( shapes, fillPointFlags, > outlinePaints ); > //creation des axe > AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, > ChartType.POINT, pointChartProperties ); > dataSeries.addIAxisPlotDataSet( axisChartDataSet ); > > //ajout des deux lignes min et max > //data > double[][] mini=this.maxmin; > //appercu > Stroke[] > strokes={LineChartProperties.DEFAULT_LINE_STROKE,LineChartProperties.DEFAULT_LINE_STROKE}; > Shape[] shape={null,null}; > Paint[] p={Color.BLACK,Color.red}; > String[] legendLabelligne={"Seuil Minimum","Seuil Maximum"}; > LineChartProperties lineProp= new LineChartProperties(strokes, shape); > > axisChartDataSet=new AxisChartDataSet(mini,legendLabelligne,p,ChartType.LINE,lineProp); > dataSeries.addIAxisPlotDataSet(axisChartDataSet); > > //mise forme des echelles et du final > ChartProperties chartProperties= new ChartProperties(); > > > DataAxisProperties x=new DataAxisProperties(); > DataAxisProperties y=new DataAxisProperties(); > > > > //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); > x.setNumItems(this.intervalle); > x.setUserDefinedScale(0,24); > x.setRoundToNearest(0); > > //DataAxisProperties dataAxisProperties= > (DataAxisProperties)axisProperties.getYAxisProperties(); > //calcul de la meilleur echelle possible > int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); > y.setNumItems(n+2); > y.setUserDefinedScale( 0, 100 ); > y.setRoundToNearest( 0 ); > > > AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); > > //ligne pour le cadrillage > ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); > axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); > > axisProperties.getXAxisProperties().setShowGridLines(AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); > axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); > axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); > > //generation finale > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, 700, 500 > ); > > > >Message: 2 > >Date: Sun, 5 Sep 2004 08:46:19 -0700 (PDT) > >From: "Nathaniel G. Auvil" <nat...@ya...> > >Subject: Re: [jCharts-users] RE: Scale of a Xaxis NullPointerException > >To: jch...@li... > >Reply-To: jch...@li... > > > > > >Can you attach your code with the data? > > > > > > > > > >--- jle...@ne... wrote: > > > >> here is the stacktrace > >> > >> > >> java.lang.NullPointerException > >> render > >> org.jCharts.axisChart.axis.XAxis > >> -1 > >> renderChart > >> org.jCharts.axisChart.AxisChart > >> -1 > >> render > >> org.jCharts.Chart > >> -1 > >> render > >> org.jCharts.encoders.BinaryEncoderUtil > >> -1 > >> encode > >> org.jCharts.encoders.JPEGEncoder13 > >> -1 > >> getGraphe > >> com.GrapheScatter > >> 308 > >> main > >> com.EssaiGrpahe > >> 46 > >> null > >> null > >> > >> i use this code for see them > >> > >> System.out.println(f.getClass().getName()); > >> StackTraceElement stcak[]=f.getStackTrace(); > >> for (int t=0;t<stcak.length;t++) > >> { > >> System.out.println(stcak[t].getMethodName()); > >> System.out.println(stcak[t].getClassName()); > >> System.out.println(stcak[t].getLineNumber()); > >> } > >> System.out.println(f.getMessage()); > >> System.out.println(f.getLocalizedMessage()); > >> > >> >Message: 2 > >> >Date: Wed, 01 Sep 2004 03:49:22 -0400 > >> >From: jle...@ne... > >> >To: jch...@li... > >> >Subject: [jCharts-users] Scale of a Xaxis NullPointerException > >> >Reply-To: jch...@li... > >> > > >> >I don't know why i have a NullPointerException when i use the jpeg encoder > >> >Is there anaone could help me..... > >> >It is always the same problem with the scale of the xaxis on a point chart > >> > > >> > > >> >DataAxisProperties x=new DataAxisProperties(); > >> > DataAxisProperties y=new DataAxisProperties(); > >> > > >> > > >> > > >> > //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); > >> > x.setNumItems(this.intervalle); > >> > x.setUserDefinedScale(0,24); > >> > x.setRoundToNearest(0); > >> > > >> > //DataAxisProperties dataAxisProperties= (DataAxisProperties) > >> axisProperties.getYAxisProperties(); > >> > //calcul de la meilleur echelle possible > >> > int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); > >> > y.setNumItems(n+2); > >> > y.setUserDefinedScale( 0, 100 ); > >> > y.setRoundToNearest( 0 ); > >> > > >> > > >> > AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); > >> > > >> > //ligne pour le cadrillage > >> > ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); > >> > axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); > >> > axisProperties.getXAxisProperties().setShowGridLines( > >> AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); > >> > axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); > >> > axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); > >> > > >> > > >> > //generation finale > >> > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, > 700, > >> 500 ); > >> > > >> > > >> > // axisChart.xAxis=new XAxis(axisChart,this.intervalle); > >> > > >> > try{ > >> > JPEGEncoder13.encode(axisChart,1.0f,new > >> FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); > >> > } > >> > > >> >__________________________________________________________________ > >> >Switch to Netscape Internet Service. > >> >As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > >> > > >> >Netscape. Just the Net You Need. > >> > > >> >New! Netscape Toolbar for Internet Explorer > >> >Search from anywhere on the Web and block those annoying pop-ups. > >> >Download now at http://channels.netscape.com/ns/search/install.jsp > >> > > >> > > >> >Message: 6 > >> >Date: Wed, 1 Sep 2004 19:51:29 -0700 (PDT) > >> >From: "Nathaniel G. Auvil" <nat...@ya...> > >> >Subject: Re: [jCharts-users] Scale of a Xaxis NullPointerException > >> >To: jch...@li... > >> >Reply-To: jch...@li... > >> > > >> > > >> >can you attach the stacktrace? > >> > > >> > > >> > > >> >--- jle...@ne... wrote: > >> > > >> >> I don't know why i have a NullPointerException when i use the jpeg encoder > >> >> Is there anaone could help me..... > >> >> It is always the same problem with the scale of the xaxis on a point chart > >> >> > >> >> > >> >> DataAxisProperties x=new DataAxisProperties(); > >> >> DataAxisProperties y=new DataAxisProperties(); > >> >> > >> >> > >> >> > >> >> //DataAxisProperties datatry = > (DataAxisProperties)axisProperties.getXAxisProperties(); > >> >> x.setNumItems(this.intervalle); > >> >> x.setUserDefinedScale(0,24); > >> >> x.setRoundToNearest(0); > >> >> > >> >> //DataAxisProperties dataAxisProperties= (DataAxisProperties) > >> >> axisProperties.getYAxisProperties(); > >> >> //calcul de la meilleur echelle possible > >> >> int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); > >> >> y.setNumItems(n+2); > >> >> y.setUserDefinedScale( 0, 100 ); > >> >> y.setRoundToNearest( 0 ); > >> >> > >> >> > >> >> AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); > >> >> > >> >> //ligne pour le cadrillage > >> >> ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); > >> >> axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); > >> >> axisProperties.getXAxisProperties().setShowGridLines( > >> >> AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); > >> >> axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); > >> >> axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); > >> >> > >> >> > >> >> //generation finale > >> >> AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, > >> 700, > >> >> 500 ); > >> >> > >> >> > >> >> // axisChart.xAxis=new XAxis(axisChart,this.intervalle); > >> >> > >> >> try{ > >> >> JPEGEncoder13.encode(axisChart,1.0f,new > >> >> FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); > >> >> } > >> >> > >> >> __________________________________________________________________ > >> >> Switch to Netscape Internet Service. > >> >> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > >> >> > >> >> Netscape. Just the Net You Need. > >> >> > >> >> New! Netscape Toolbar for Internet Explorer > >> >> Search from anywhere on the Web and block those annoying pop-ups. > >> >> Download now at http://channels.netscape.com/ns/search/install.jsp > >> >> > >> >> > >> >> ------------------------------------------------------- > >> >> This SF.Net email is sponsored by BEA Weblogic Workshop > >> >> FREE Java Enterprise J2EE developer tools! > >> >> Get your free copy of BEA WebLogic Workshop 8.1 today. > >> >> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >> >> _______________________________________________ > >> >> jCharts-users mailing list > >> >> jCh...@li... > >> >> https://lists.sourceforge.net/lists/listinfo/jcharts-users > >> >> > >> > > >> > > >> > > >> > > >> >__________________________________ > >> >Do you Yahoo!? > >> >New and Improved Yahoo! Mail - Send 10MB messages! > >> >http://promotions.yahoo.com/new_mail > >> > > >> > > >> > > >> >-- __--__-- > >> > > >> >_______________________________________________ > >> >jCharts-users mailing list > >> >jCh...@li... > >> >https://lists.sourceforge.net/lists/listinfo/jcharts-users > >> > > >> > > >> >End of jCharts-users Digest > >> > > >> > >> __________________________________________________________________ > >> Switch to Netscape Internet Service. > >> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > >> > >> Netscape. Just the Net You Need. > >> > >> New! Netscape Toolbar for Internet Explorer > >> Search from anywhere on the Web and block those annoying pop-ups. > >> Download now at http://channels.netscape.com/ns/search/install.jsp > >> > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by BEA Weblogic Workshop > >> FREE Java Enterprise J2EE developer tools! > >> Get your free copy of BEA WebLogic Workshop 8.1 today. > >> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >> _______________________________________________ > >> jCharts-users mailing list > >> jCh...@li... > >> https://lists.sourceforge.net/lists/listinfo/jcharts-users > >> > > > > > > > > > >__________________________________ > >Do you Yahoo!? > >Yahoo! Mail - 50x more storage than other providers! > >http://promotions.yahoo.com/new_mail > > > > > >--__--__-- > > > >Message: 3 > >Date: Mon, 06 Sep 2004 00:10:47 +0200 > >From: Piet Crombach <pie...@ho...> > >To: jch...@li... > >Subject: Re: [jCharts-users] Hi I'm new to jChart - Question: Example how > > to use data from a MDBS > >Reply-To: jch...@li... > > > >Nathaniel G. Auvil wrote: > > > >Yes I did. I found out to generate graphs in my application. And read > >also a lot of the mailing list. So far I did not found an adequate > >answer for the 2 quetions. I wil find out like I found a lot by trial > >and error. But if there is somebody who wrote some code lI asked for it > >would be a big help and a lot easier to learn. > >In the samples and documentation there are only samples for a single > >graph on a single page. I want graphs embedded in some other HTML > >dynamically. > >Now I stream graphs to a temp dir and then I build the page with img > >placeholders for the graphs. I understand there is a more elgant > >solutiion???? > > > >>Did you look at the samples and documentation? > >> > >> > >> > >>--- Piet Crombach <pie...@ho...> wrote: > >> > >> > >> > >>>Hi, > >>> > >>>I'm trying to do usefull things with jCharts. The best way to learn is > >>>looking at working examples. > >>> > >>>I need 2 examples now: > >>> > >>>1. How do I pass data from a RDBMS to a chart > >>>2. How to pass a chart to a dynamic *.jsp page. > >>> > >>>thanks > >>> > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>This SF.Net email is sponsored by BEA Weblogic Workshop > >>>FREE Java Enterprise J2EE developer tools! > >>>Get your free copy of BEA WebLogic Workshop 8.1 today. > >>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >>>_______________________________________________ > >>>jCharts-users mailing list > >>>jCh...@li... > >>>https://lists.sourceforge.net/lists/listinfo/jcharts-users > >>> > >>> > >>> > >> > >> > >>__________________________________________________ > >>Do You Yahoo!? > >>Tired of spam? Yahoo! Mail has the best spam protection around > >>http://mail.yahoo.com > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by BEA Weblogic Workshop > >>FREE Java Enterprise J2EE developer tools! > >>Get your free copy of BEA WebLogic Workshop 8.1 today. > >>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >>_______________________________________________ > >>jCharts-users mailing list > >>jCh...@li... > >>https://lists.sourceforge.net/lists/listinfo/jcharts-users > >> > >> > >> > > > > > > > > > >--__--__-- > > > >_______________________________________________ > >jCharts-users mailing list > >jCh...@li... > >https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > >End of jCharts-users Digest > > > > __________________________________________________________________ > Switch to Netscape Internet Service. > As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > > Netscape. Just the Net You Need. > > New! Netscape Toolbar for Internet Explorer > Search from anywhere on the Web and block those annoying pop-ups. > Download now at http://channels.netscape.com/ns/search/install.jsp > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-14 00:35:04
|
this is currently not possible. --- "Chekkilla, Kirthidhar" <Kir...@bc...> wrote: > I am new to jchart. Can you guys help me how to create labels/ floating lables for line charts. > > > > ck...@ya... > > > > Blue Cross Blue Shield of Florida, Inc., and its subsidiary and affiliate companies are not > responsible for errors or omissions in this e-mail message. Any personal comments made in this > e-mail do not reflect the views of Blue Cross Blue Shield of Florida, Inc. The information > contained in this document may be confidential and intended solely for the use of the individual > or entity to whom it is addressed. This document may contain material that is privileged or > protected from disclosure under applicable law. If you are not the intended recipient or the > individual responsible for delivering to the intended recipient, please (1) be advised that any > use, dissemination, forwarding, or copying of this document IS STRICTLY PROHIBITED; and (2) > notify sender immediately by telephone and destroy the document. THANK YOU. > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Rod M. <rma...@ve...> - 2004-09-13 23:12:31
|
Just started using JChart and it is very intuitive and easy-to-use. Not sure if this is a bug or a missing feature but I want to have multiple bar charts overlayed. I am sharing the same X and Y axis scales which simplifies things. When trying the "combo" thing it seems that only the "last" series added is displayed. I am using PNG with translucent colors (alpha channel) to produce the effect of transparencies using an overhead projector where you lay one slide on top of the other. Anybody bean there done that |
From: Chris W. <cw...@go...> - 2004-09-13 15:16:39
|
I tried the radar chart support from the krysalis-jcharts 1.0 trunk. I wanted to let you know that using the = org.krysalis.jcharts.test.RadarTestDriver, the legend is not showing up = despite what appears to me to be code setting the legend to the right = side with 1 column. I was also wondering if there is, or if there are any plans to support = the radar graph having just points on the graph instead of the lines = (connecting where the points would be), or the filled in areas? The second to that would be if only points were to be displayed, could = it support the Double.NaN like some of the other graphs so that a point = would not show up? I tried that, and the current graph draws lines into = the top left corner. These aren't demands, just wondering what the direction of the radar = graph would be in the eyes of the people implementing it. Chris |
From: <jle...@ne...> - 2004-09-13 14:59:27
|
Here is the code i use for generate the graphe //axe des x données String[] xAxisLabels=this.x; //{ "1998", "1999", "2000", "2001", "2002", "2003", "2004" }; //titre des axe String xAxisTitle= "Jours"; String yAxisTitle= "Valeurs"; //titre du graphe String title= "Glycémie"; DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); //Données en y double[][] data= this.y;//new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } , { 150, 15, 6, 62, -54, 10, 84 }}; // //legend //this.maxJour String[] legendLabels= new String[data.length]; Paint[] paints = new Paint[data.length]; Shape[] shapes = new Shape[data.length]; Paint[] outlinePaints= new Paint[data.length]; boolean[] fillPointFlags= new boolean[data.length]; for (int p=0;p<data.length;p++) { legendLabels[p]=null; paints[p]=Color.blue; shapes[p]=new Ellipse2D.Double(0,0,4,4); fillPointFlags[p]=true; outlinePaints[p]=Color.black; } //creation du grpahe PointChartProperties pointChartProperties= new PointChartProperties( shapes, fillPointFlags, outlinePaints ); //creation des axe AxisChartDataSet axisChartDataSet= new AxisChartDataSet( data, legendLabels, paints, ChartType.POINT, pointChartProperties ); dataSeries.addIAxisPlotDataSet( axisChartDataSet ); //ajout des deux lignes min et max //data double[][] mini=this.maxmin; //appercu Stroke[] strokes={LineChartProperties.DEFAULT_LINE_STROKE,LineChartProperties.DEFAULT_LINE_STROKE}; Shape[] shape={null,null}; Paint[] p={Color.BLACK,Color.red}; String[] legendLabelligne={"Seuil Minimum","Seuil Maximum"}; LineChartProperties lineProp= new LineChartProperties(strokes, shape); axisChartDataSet=new AxisChartDataSet(mini,legendLabelligne,p,ChartType.LINE,lineProp); dataSeries.addIAxisPlotDataSet(axisChartDataSet); //mise forme des echelles et du final ChartProperties chartProperties= new ChartProperties(); DataAxisProperties x=new DataAxisProperties(); DataAxisProperties y=new DataAxisProperties(); //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); x.setNumItems(this.intervalle); x.setUserDefinedScale(0,24); x.setRoundToNearest(0); //DataAxisProperties dataAxisProperties= (DataAxisProperties)axisProperties.getYAxisProperties(); //calcul de la meilleur echelle possible int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); y.setNumItems(n+2); y.setUserDefinedScale( 0, 100 ); y.setRoundToNearest( 0 ); AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); //ligne pour le cadrillage ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); axisProperties.getXAxisProperties().setShowGridLines(AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); //generation finale AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, 700, 500 ); >Message: 2 >Date: Sun, 5 Sep 2004 08:46:19 -0700 (PDT) >From: "Nathaniel G. Auvil" <nat...@ya...> >Subject: Re: [jCharts-users] RE: Scale of a Xaxis NullPointerException >To: jch...@li... >Reply-To: jch...@li... > > >Can you attach your code with the data? > > > > >--- jle...@ne... wrote: > >> here is the stacktrace >> >> >> java.lang.NullPointerException >> render >> org.jCharts.axisChart.axis.XAxis >> -1 >> renderChart >> org.jCharts.axisChart.AxisChart >> -1 >> render >> org.jCharts.Chart >> -1 >> render >> org.jCharts.encoders.BinaryEncoderUtil >> -1 >> encode >> org.jCharts.encoders.JPEGEncoder13 >> -1 >> getGraphe >> com.GrapheScatter >> 308 >> main >> com.EssaiGrpahe >> 46 >> null >> null >> >> i use this code for see them >> >> System.out.println(f.getClass().getName()); >> StackTraceElement stcak[]=f.getStackTrace(); >> for (int t=0;t<stcak.length;t++) >> { >> System.out.println(stcak[t].getMethodName()); >> System.out.println(stcak[t].getClassName()); >> System.out.println(stcak[t].getLineNumber()); >> } >> System.out.println(f.getMessage()); >> System.out.println(f.getLocalizedMessage()); >> >> >Message: 2 >> >Date: Wed, 01 Sep 2004 03:49:22 -0400 >> >From: jle...@ne... >> >To: jch...@li... >> >Subject: [jCharts-users] Scale of a Xaxis NullPointerException >> >Reply-To: jch...@li... >> > >> >I don't know why i have a NullPointerException when i use the jpeg encoder >> >Is there anaone could help me..... >> >It is always the same problem with the scale of the xaxis on a point chart >> > >> > >> >DataAxisProperties x=new DataAxisProperties(); >> > DataAxisProperties y=new DataAxisProperties(); >> > >> > >> > >> > //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); >> > x.setNumItems(this.intervalle); >> > x.setUserDefinedScale(0,24); >> > x.setRoundToNearest(0); >> > >> > //DataAxisProperties dataAxisProperties= (DataAxisProperties) >> axisProperties.getYAxisProperties(); >> > //calcul de la meilleur echelle possible >> > int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); >> > y.setNumItems(n+2); >> > y.setUserDefinedScale( 0, 100 ); >> > y.setRoundToNearest( 0 ); >> > >> > >> > AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); >> > >> > //ligne pour le cadrillage >> > ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); >> > axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); >> > axisProperties.getXAxisProperties().setShowGridLines( >> AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); >> > axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); >> > axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); >> > >> > >> > //generation finale >> > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, 700, >> 500 ); >> > >> > >> > // axisChart.xAxis=new XAxis(axisChart,this.intervalle); >> > >> > try{ >> > JPEGEncoder13.encode(axisChart,1.0f,new >> FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); >> > } >> > >> >__________________________________________________________________ >> >Switch to Netscape Internet Service. >> >As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register >> > >> >Netscape. Just the Net You Need. >> > >> >New! Netscape Toolbar for Internet Explorer >> >Search from anywhere on the Web and block those annoying pop-ups. >> >Download now at http://channels.netscape.com/ns/search/install.jsp >> > >> > >> >Message: 6 >> >Date: Wed, 1 Sep 2004 19:51:29 -0700 (PDT) >> >From: "Nathaniel G. Auvil" <nat...@ya...> >> >Subject: Re: [jCharts-users] Scale of a Xaxis NullPointerException >> >To: jch...@li... >> >Reply-To: jch...@li... >> > >> > >> >can you attach the stacktrace? >> > >> > >> > >> >--- jle...@ne... wrote: >> > >> >> I don't know why i have a NullPointerException when i use the jpeg encoder >> >> Is there anaone could help me..... >> >> It is always the same problem with the scale of the xaxis on a point chart >> >> >> >> >> >> DataAxisProperties x=new DataAxisProperties(); >> >> DataAxisProperties y=new DataAxisProperties(); >> >> >> >> >> >> >> >> //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); >> >> x.setNumItems(this.intervalle); >> >> x.setUserDefinedScale(0,24); >> >> x.setRoundToNearest(0); >> >> >> >> //DataAxisProperties dataAxisProperties= (DataAxisProperties) >> >> axisProperties.getYAxisProperties(); >> >> //calcul de la meilleur echelle possible >> >> int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); >> >> y.setNumItems(n+2); >> >> y.setUserDefinedScale( 0, 100 ); >> >> y.setRoundToNearest( 0 ); >> >> >> >> >> >> AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); >> >> >> >> //ligne pour le cadrillage >> >> ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); >> >> axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); >> >> axisProperties.getXAxisProperties().setShowGridLines( >> >> AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); >> >> axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); >> >> axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); >> >> >> >> >> >> //generation finale >> >> AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, >> 700, >> >> 500 ); >> >> >> >> >> >> // axisChart.xAxis=new XAxis(axisChart,this.intervalle); >> >> >> >> try{ >> >> JPEGEncoder13.encode(axisChart,1.0f,new >> >> FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); >> >> } >> >> >> >> __________________________________________________________________ >> >> Switch to Netscape Internet Service. >> >> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register >> >> >> >> Netscape. Just the Net You Need. >> >> >> >> New! Netscape Toolbar for Internet Explorer >> >> Search from anywhere on the Web and block those annoying pop-ups. >> >> Download now at http://channels.netscape.com/ns/search/install.jsp >> >> >> >> >> >> ------------------------------------------------------- >> >> This SF.Net email is sponsored by BEA Weblogic Workshop >> >> FREE Java Enterprise J2EE developer tools! >> >> Get your free copy of BEA WebLogic Workshop 8.1 today. >> >> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >> >> _______________________________________________ >> >> jCharts-users mailing list >> >> jCh...@li... >> >> https://lists.sourceforge.net/lists/listinfo/jcharts-users >> >> >> > >> > >> > >> > >> >__________________________________ >> >Do you Yahoo!? >> >New and Improved Yahoo! Mail - Send 10MB messages! >> >http://promotions.yahoo.com/new_mail >> > >> > >> > >> >-- __--__-- >> > >> >_______________________________________________ >> >jCharts-users mailing list >> >jCh...@li... >> >https://lists.sourceforge.net/lists/listinfo/jcharts-users >> > >> > >> >End of jCharts-users Digest >> > >> >> __________________________________________________________________ >> Switch to Netscape Internet Service. >> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register >> >> Netscape. Just the Net You Need. >> >> New! Netscape Toolbar for Internet Explorer >> Search from anywhere on the Web and block those annoying pop-ups. >> Download now at http://channels.netscape.com/ns/search/install.jsp >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by BEA Weblogic Workshop >> FREE Java Enterprise J2EE developer tools! >> Get your free copy of BEA WebLogic Workshop 8.1 today. >> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >> _______________________________________________ >> jCharts-users mailing list >> jCh...@li... >> https://lists.sourceforge.net/lists/listinfo/jcharts-users >> > > > > >__________________________________ >Do you Yahoo!? >Yahoo! Mail - 50x more storage than other providers! >http://promotions.yahoo.com/new_mail > > >--__--__-- > >Message: 3 >Date: Mon, 06 Sep 2004 00:10:47 +0200 >From: Piet Crombach <pie...@ho...> >To: jch...@li... >Subject: Re: [jCharts-users] Hi I'm new to jChart - Question: Example how > to use data from a MDBS >Reply-To: jch...@li... > >Nathaniel G. Auvil wrote: > >Yes I did. I found out to generate graphs in my application. And read >also a lot of the mailing list. So far I did not found an adequate >answer for the 2 quetions. I wil find out like I found a lot by trial >and error. But if there is somebody who wrote some code lI asked for it >would be a big help and a lot easier to learn. >In the samples and documentation there are only samples for a single >graph on a single page. I want graphs embedded in some other HTML >dynamically. >Now I stream graphs to a temp dir and then I build the page with img >placeholders for the graphs. I understand there is a more elgant >solutiion???? > >>Did you look at the samples and documentation? >> >> >> >>--- Piet Crombach <pie...@ho...> wrote: >> >> >> >>>Hi, >>> >>>I'm trying to do usefull things with jCharts. The best way to learn is >>>looking at working examples. >>> >>>I need 2 examples now: >>> >>>1. How do I pass data from a RDBMS to a chart >>>2. How to pass a chart to a dynamic *.jsp page. >>> >>>thanks >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by BEA Weblogic Workshop >>>FREE Java Enterprise J2EE developer tools! >>>Get your free copy of BEA WebLogic Workshop 8.1 today. >>>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>>_______________________________________________ >>>jCharts-users mailing list >>>jCh...@li... >>>https://lists.sourceforge.net/lists/listinfo/jcharts-users >>> >>> >>> >> >> >>__________________________________________________ >>Do You Yahoo!? >>Tired of spam? Yahoo! Mail has the best spam protection around >>http://mail.yahoo.com >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>_______________________________________________ >>jCharts-users mailing list >>jCh...@li... >>https://lists.sourceforge.net/lists/listinfo/jcharts-users >> >> >> > > > > >--__--__-- > >_______________________________________________ >jCharts-users mailing list >jCh...@li... >https://lists.sourceforge.net/lists/listinfo/jcharts-users > > >End of jCharts-users Digest > __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp |
From: Chekkilla, K. <Kir...@bc...> - 2004-09-13 06:53:55
|
I am new to jchart. Can you guys help me how to create labels/ floating = lables for line charts.=20 ck...@ya... Blue Cross Blue Shield of Florida, Inc., and its subsidiary and affiliate = companies are not responsible for errors or omissions in this e-mail = message. Any personal comments made in this e-mail do not reflect the views= = of Blue Cross Blue Shield of Florida, Inc. The information contained in = this document may be confidential and intended solely for the use of the = individual or entity to whom it is addressed. This document may contain = material that is privileged or protected from disclosure under applicable = law. If you are not the intended recipient or the individual responsible = =66or delivering to the intended recipient, please (1) be advised that any = use, dissemination, forwarding, or copying of this document IS STRICTLY = PROHIBITED; and (2) notify sender immediately by telephone and destroy the = document. THANK YOU. |
From: Chris M. <ch...@de...> - 2004-09-13 02:37:03
|
Of course you wouldn't set the Paint again!! Better code follows... public void preRender( AxisValueRenderEvent axisValueRenderEvent ) { // overwrite color if range test double value = axisValueRenderEvent.getiAxisChartDataSet().getValue( axisValueRenderEvent.getDataSetIndex(), axisValueRenderEvent.getValueIndex() ); if (value > loRange && value < hiRange) { axisValueRenderEvent.getGraphics2D().setPaint( this.inRangePaint ); } } |
From: Chris M. <ch...@de...> - 2004-09-13 02:28:44
|
You could probably do this with a custom renderer. It would be actioned on every bar drawn though. So for instance I changed the color of a line point if it fell within a certain range with a PreAxisValueRenderListener. public void preRender( AxisValueRenderEvent axisValueRenderEvent ) { //---keep the current paint around Paint currentPaint= axisValueRenderEvent.getGraphics2D().getPaint(); axisValueRenderEvent.getGraphics2D().setPaint( this.forecastPaint ); // overwrite color if range test double value = axisValueRenderEvent.getiAxisChartDataSet().getValue( axisValueRenderEvent.getDataSetIndex(), axisValueRenderEvent.getValueIndex() ); if (value > loRange && value < hiRange) { axisValueRenderEvent.getGraphics2D().setPaint( this.inRangePaint ); } //---reset the current Paint axisValueRenderEvent.getGraphics2D().setPaint( currentPaint ); } } > -----Original Message----- > From: jch...@li... > [mailto:jch...@li...] On Behalf > Of Travis Reeder > Sent: Monday, 13 September 2004 1:12 p.m. > To: jch...@li... > Subject: [jCharts-users] Gradient on each bar rather than > across entire graph > > Is there any way to make a GradientPaint applied separately > to each bar rather than across the entire graph? > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one > of 170 Project Admins to receive an Apple iPod Mini FREE for > your judgement on who ports your project to Linux PPC the > best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > |
From: Travis R. <tr...@gm...> - 2004-09-13 01:12:27
|
Is there any way to make a GradientPaint applied separately to each bar rather than across the entire graph? |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-09 21:46:33
|
krysalis-jcharts is the 1.0 trunk. RadarCharts work a little bit differently. Take a look at: org.krysalis.jcharts.test.RadarTestDriver for and example --- Chris Ward <cw...@go...> wrote: > I have been using jCharts, and it is great, thanks. > > I have a need for a radar chart, that I saw on the website was in cvs. I checked out the > jCharts/jcharts-1.0, but didn't see anything there. I then noticed krysalis-jcharts. This > appears to have a class RadarChart, but it is not a ChartType. > > Should I use the krysalis branch?/version? What is the difference between this code and the > jcharts code. Is the radar graph in a state that it is useable? > > Thanks, > Chris > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail |
From: Chris W. <cw...@go...> - 2004-09-09 18:46:39
|
I have been using jCharts, and it is great, thanks. I have a need for a radar chart, that I saw on the website was in cvs. I = checked out the jCharts/jcharts-1.0, but didn't see anything there. I = then noticed krysalis-jcharts. This appears to have a class RadarChart, = but it is not a ChartType. Should I use the krysalis branch?/version? What is the difference = between this code and the jcharts code. Is the radar graph in a state = that it is useable? Thanks, Chris |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-08 15:48:30
|
no, this is not possible. You would have to edit the code. --- "Gwizdala, Steve" <Ste...@mi...> wrote: > Hi, > > > > I'm trying to create a line graph that keeps track of a years worth of > values on the X axis, but I only want the X axis scale to show the month. I > tried changing the number of X axis tic marks to 12 but JCharts validation > check returned an error saying that it needed a one to one mapping between > the X axis data series and the tic marks. Is there any way to override or > decouple the X axis scale from the X axis data series? > > > > Apologize in advance if this is a stupid question, > > Steve > > _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush |
From: Gwizdala, S. <Ste...@mi...> - 2004-09-08 12:43:41
|
Hi, I'm trying to create a line graph that keeps track of a years worth of values on the X axis, but I only want the X axis scale to show the month. I tried changing the number of X axis tic marks to 12 but JCharts validation check returned an error saying that it needed a one to one mapping between the X axis data series and the tic marks. Is there any way to override or decouple the X axis scale from the X axis data series? Apologize in advance if this is a stupid question, Steve |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-07 00:28:51
|
yeah, you should not write an image to disk and then stream it back. Simply place the path to your Servlet as the src attribute of the img tag. There are a ton of samples in source. Did you look under the test package? The Swing demo? The Servlet Demos? --- Piet Crombach <pie...@ho...> wrote: > Nathaniel G. Auvil wrote: > > Yes I did. I found out to generate graphs in my application. And read > also a lot of the mailing list. So far I did not found an adequate > answer for the 2 quetions. I wil find out like I found a lot by trial > and error. But if there is somebody who wrote some code lI asked for it > would be a big help and a lot easier to learn. > In the samples and documentation there are only samples for a single > graph on a single page. I want graphs embedded in some other HTML > dynamically. > Now I stream graphs to a temp dir and then I build the page with img > placeholders for the graphs. I understand there is a more elgant > solutiion???? > > >Did you look at the samples and documentation? > > > > > > > >--- Piet Crombach <pie...@ho...> wrote: > > > > > > > >>Hi, > >> > >>I'm trying to do usefull things with jCharts. The best way to learn is > >>looking at working examples. > >> > >>I need 2 examples now: > >> > >>1. How do I pass data from a RDBMS to a chart > >>2. How to pass a chart to a dynamic *.jsp page. > >> > >>thanks > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.Net email is sponsored by BEA Weblogic Workshop > >>FREE Java Enterprise J2EE developer tools! > >>Get your free copy of BEA WebLogic Workshop 8.1 today. > >>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >>_______________________________________________ > >>jCharts-users mailing list > >>jCh...@li... > >>https://lists.sourceforge.net/lists/listinfo/jcharts-users > >> > >> > >> > > > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam protection around > >http://mail.yahoo.com > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by BEA Weblogic Workshop > >FREE Java Enterprise J2EE developer tools! > >Get your free copy of BEA WebLogic Workshop 8.1 today. > >http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >_______________________________________________ > >jCharts-users mailing list > >jCh...@li... > >https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Piet C. <pie...@ho...> - 2004-09-05 22:13:23
|
Nathaniel G. Auvil wrote: Yes I did. I found out to generate graphs in my application. And read also a lot of the mailing list. So far I did not found an adequate answer for the 2 quetions. I wil find out like I found a lot by trial and error. But if there is somebody who wrote some code lI asked for it would be a big help and a lot easier to learn. In the samples and documentation there are only samples for a single graph on a single page. I want graphs embedded in some other HTML dynamically. Now I stream graphs to a temp dir and then I build the page with img placeholders for the graphs. I understand there is a more elgant solutiion???? >Did you look at the samples and documentation? > > > >--- Piet Crombach <pie...@ho...> wrote: > > > >>Hi, >> >>I'm trying to do usefull things with jCharts. The best way to learn is >>looking at working examples. >> >>I need 2 examples now: >> >>1. How do I pass data from a RDBMS to a chart >>2. How to pass a chart to a dynamic *.jsp page. >> >>thanks >> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >>_______________________________________________ >>jCharts-users mailing list >>jCh...@li... >>https://lists.sourceforge.net/lists/listinfo/jcharts-users >> >> >> > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >_______________________________________________ >jCharts-users mailing list >jCh...@li... >https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-05 15:47:12
|
Did you look at the samples and documentation? --- Piet Crombach <pie...@ho...> wrote: > Hi, > > I'm trying to do usefull things with jCharts. The best way to learn is > looking at working examples. > > I need 2 examples now: > > 1. How do I pass data from a RDBMS to a chart > 2. How to pass a chart to a dynamic *.jsp page. > > thanks > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-05 15:46:28
|
Can you attach your code with the data? --- jle...@ne... wrote: > here is the stacktrace > > > java.lang.NullPointerException > render > org.jCharts.axisChart.axis.XAxis > -1 > renderChart > org.jCharts.axisChart.AxisChart > -1 > render > org.jCharts.Chart > -1 > render > org.jCharts.encoders.BinaryEncoderUtil > -1 > encode > org.jCharts.encoders.JPEGEncoder13 > -1 > getGraphe > com.GrapheScatter > 308 > main > com.EssaiGrpahe > 46 > null > null > > i use this code for see them > > System.out.println(f.getClass().getName()); > StackTraceElement stcak[]=f.getStackTrace(); > for (int t=0;t<stcak.length;t++) > { > System.out.println(stcak[t].getMethodName()); > System.out.println(stcak[t].getClassName()); > System.out.println(stcak[t].getLineNumber()); > } > System.out.println(f.getMessage()); > System.out.println(f.getLocalizedMessage()); > > >Message: 2 > >Date: Wed, 01 Sep 2004 03:49:22 -0400 > >From: jle...@ne... > >To: jch...@li... > >Subject: [jCharts-users] Scale of a Xaxis NullPointerException > >Reply-To: jch...@li... > > > >I don't know why i have a NullPointerException when i use the jpeg encoder > >Is there anaone could help me..... > >It is always the same problem with the scale of the xaxis on a point chart > > > > > >DataAxisProperties x=new DataAxisProperties(); > > DataAxisProperties y=new DataAxisProperties(); > > > > > > > > //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); > > x.setNumItems(this.intervalle); > > x.setUserDefinedScale(0,24); > > x.setRoundToNearest(0); > > > > //DataAxisProperties dataAxisProperties= (DataAxisProperties) > axisProperties.getYAxisProperties(); > > //calcul de la meilleur echelle possible > > int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); > > y.setNumItems(n+2); > > y.setUserDefinedScale( 0, 100 ); > > y.setRoundToNearest( 0 ); > > > > > > AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); > > > > //ligne pour le cadrillage > > ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); > > axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); > > axisProperties.getXAxisProperties().setShowGridLines( > AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); > > axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); > > axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); > > > > > > //generation finale > > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, 700, > 500 ); > > > > > > // axisChart.xAxis=new XAxis(axisChart,this.intervalle); > > > > try{ > > JPEGEncoder13.encode(axisChart,1.0f,new > FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); > > } > > > >__________________________________________________________________ > >Switch to Netscape Internet Service. > >As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > > > >Netscape. Just the Net You Need. > > > >New! Netscape Toolbar for Internet Explorer > >Search from anywhere on the Web and block those annoying pop-ups. > >Download now at http://channels.netscape.com/ns/search/install.jsp > > > > > >Message: 6 > >Date: Wed, 1 Sep 2004 19:51:29 -0700 (PDT) > >From: "Nathaniel G. Auvil" <nat...@ya...> > >Subject: Re: [jCharts-users] Scale of a Xaxis NullPointerException > >To: jch...@li... > >Reply-To: jch...@li... > > > > > >can you attach the stacktrace? > > > > > > > >--- jle...@ne... wrote: > > > >> I don't know why i have a NullPointerException when i use the jpeg encoder > >> Is there anaone could help me..... > >> It is always the same problem with the scale of the xaxis on a point chart > >> > >> > >> DataAxisProperties x=new DataAxisProperties(); > >> DataAxisProperties y=new DataAxisProperties(); > >> > >> > >> > >> //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); > >> x.setNumItems(this.intervalle); > >> x.setUserDefinedScale(0,24); > >> x.setRoundToNearest(0); > >> > >> //DataAxisProperties dataAxisProperties= (DataAxisProperties) > >> axisProperties.getYAxisProperties(); > >> //calcul de la meilleur echelle possible > >> int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); > >> y.setNumItems(n+2); > >> y.setUserDefinedScale( 0, 100 ); > >> y.setRoundToNearest( 0 ); > >> > >> > >> AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); > >> > >> //ligne pour le cadrillage > >> ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); > >> axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); > >> axisProperties.getXAxisProperties().setShowGridLines( > >> AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); > >> axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); > >> axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); > >> > >> > >> //generation finale > >> AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, > 700, > >> 500 ); > >> > >> > >> // axisChart.xAxis=new XAxis(axisChart,this.intervalle); > >> > >> try{ > >> JPEGEncoder13.encode(axisChart,1.0f,new > >> FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); > >> } > >> > >> __________________________________________________________________ > >> Switch to Netscape Internet Service. > >> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > >> > >> Netscape. Just the Net You Need. > >> > >> New! Netscape Toolbar for Internet Explorer > >> Search from anywhere on the Web and block those annoying pop-ups. > >> Download now at http://channels.netscape.com/ns/search/install.jsp > >> > >> > >> ------------------------------------------------------- > >> This SF.Net email is sponsored by BEA Weblogic Workshop > >> FREE Java Enterprise J2EE developer tools! > >> Get your free copy of BEA WebLogic Workshop 8.1 today. > >> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > >> _______________________________________________ > >> jCharts-users mailing list > >> jCh...@li... > >> https://lists.sourceforge.net/lists/listinfo/jcharts-users > >> > > > > > > > > > >__________________________________ > >Do you Yahoo!? > >New and Improved Yahoo! Mail - Send 10MB messages! > >http://promotions.yahoo.com/new_mail > > > > > > > >--__--__-- > > > >_______________________________________________ > >jCharts-users mailing list > >jCh...@li... > >https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > >End of jCharts-users Digest > > > > __________________________________________________________________ > Switch to Netscape Internet Service. > As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > > Netscape. Just the Net You Need. > > New! Netscape Toolbar for Internet Explorer > Search from anywhere on the Web and block those annoying pop-ups. > Download now at http://channels.netscape.com/ns/search/install.jsp > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
From: Piet C. <pie...@ho...> - 2004-09-04 10:44:53
|
Hi, I'm trying to do usefull things with jCharts. The best way to learn is looking at working examples. I need 2 examples now: 1. How do I pass data from a RDBMS to a chart 2. How to pass a chart to a dynamic *.jsp page. thanks |
From: <jle...@ne...> - 2004-09-03 12:06:53
|
here is the stacktrace java.lang.NullPointerException render org.jCharts.axisChart.axis.XAxis -1 renderChart org.jCharts.axisChart.AxisChart -1 render org.jCharts.Chart -1 render org.jCharts.encoders.BinaryEncoderUtil -1 encode org.jCharts.encoders.JPEGEncoder13 -1 getGraphe com.GrapheScatter 308 main com.EssaiGrpahe 46 null null i use this code for see them System.out.println(f.getClass().getName()); StackTraceElement stcak[]=f.getStackTrace(); for (int t=0;t<stcak.length;t++) { System.out.println(stcak[t].getMethodName()); System.out.println(stcak[t].getClassName()); System.out.println(stcak[t].getLineNumber()); } System.out.println(f.getMessage()); System.out.println(f.getLocalizedMessage()); >Message: 2 >Date: Wed, 01 Sep 2004 03:49:22 -0400 >From: jle...@ne... >To: jch...@li... >Subject: [jCharts-users] Scale of a Xaxis NullPointerException >Reply-To: jch...@li... > >I don't know why i have a NullPointerException when i use the jpeg encoder >Is there anaone could help me..... >It is always the same problem with the scale of the xaxis on a point chart > > >DataAxisProperties x=new DataAxisProperties(); > DataAxisProperties y=new DataAxisProperties(); > > > > //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); > x.setNumItems(this.intervalle); > x.setUserDefinedScale(0,24); > x.setRoundToNearest(0); > > //DataAxisProperties dataAxisProperties= (DataAxisProperties) axisProperties.getYAxisProperties(); > //calcul de la meilleur echelle possible > int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); > y.setNumItems(n+2); > y.setUserDefinedScale( 0, 100 ); > y.setRoundToNearest( 0 ); > > > AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); > > //ligne pour le cadrillage > ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); > axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); > axisProperties.getXAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); > axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); > axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); > > > //generation finale > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, 700, 500 ); > > > // axisChart.xAxis=new XAxis(axisChart,this.intervalle); > > try{ > JPEGEncoder13.encode(axisChart,1.0f,new FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); > } > >__________________________________________________________________ >Switch to Netscape Internet Service. >As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > >Netscape. Just the Net You Need. > >New! Netscape Toolbar for Internet Explorer >Search from anywhere on the Web and block those annoying pop-ups. >Download now at http://channels.netscape.com/ns/search/install.jsp > > >Message: 6 >Date: Wed, 1 Sep 2004 19:51:29 -0700 (PDT) >From: "Nathaniel G. Auvil" <nat...@ya...> >Subject: Re: [jCharts-users] Scale of a Xaxis NullPointerException >To: jch...@li... >Reply-To: jch...@li... > > >can you attach the stacktrace? > > > >--- jle...@ne... wrote: > >> I don't know why i have a NullPointerException when i use the jpeg encoder >> Is there anaone could help me..... >> It is always the same problem with the scale of the xaxis on a point chart >> >> >> DataAxisProperties x=new DataAxisProperties(); >> DataAxisProperties y=new DataAxisProperties(); >> >> >> >> //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); >> x.setNumItems(this.intervalle); >> x.setUserDefinedScale(0,24); >> x.setRoundToNearest(0); >> >> //DataAxisProperties dataAxisProperties= (DataAxisProperties) >> axisProperties.getYAxisProperties(); >> //calcul de la meilleur echelle possible >> int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); >> y.setNumItems(n+2); >> y.setUserDefinedScale( 0, 100 ); >> y.setRoundToNearest( 0 ); >> >> >> AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); >> >> //ligne pour le cadrillage >> ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); >> axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); >> axisProperties.getXAxisProperties().setShowGridLines( >> AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); >> axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); >> axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); >> >> >> //generation finale >> AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, 700, >> 500 ); >> >> >> // axisChart.xAxis=new XAxis(axisChart,this.intervalle); >> >> try{ >> JPEGEncoder13.encode(axisChart,1.0f,new >> FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); >> } >> >> __________________________________________________________________ >> Switch to Netscape Internet Service. >> As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register >> >> Netscape. Just the Net You Need. >> >> New! Netscape Toolbar for Internet Explorer >> Search from anywhere on the Web and block those annoying pop-ups. >> Download now at http://channels.netscape.com/ns/search/install.jsp >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by BEA Weblogic Workshop >> FREE Java Enterprise J2EE developer tools! >> Get your free copy of BEA WebLogic Workshop 8.1 today. >> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click >> _______________________________________________ >> jCharts-users mailing list >> jCh...@li... >> https://lists.sourceforge.net/lists/listinfo/jcharts-users >> > > > > >__________________________________ >Do you Yahoo!? >New and Improved Yahoo! Mail - Send 10MB messages! >http://promotions.yahoo.com/new_mail > > > >--__--__-- > >_______________________________________________ >jCharts-users mailing list >jCh...@li... >https://lists.sourceforge.net/lists/listinfo/jcharts-users > > >End of jCharts-users Digest > __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-02 02:51:36
|
can you attach the stacktrace? --- jle...@ne... wrote: > I don't know why i have a NullPointerException when i use the jpeg encoder > Is there anaone could help me..... > It is always the same problem with the scale of the xaxis on a point chart > > > DataAxisProperties x=new DataAxisProperties(); > DataAxisProperties y=new DataAxisProperties(); > > > > //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); > x.setNumItems(this.intervalle); > x.setUserDefinedScale(0,24); > x.setRoundToNearest(0); > > //DataAxisProperties dataAxisProperties= (DataAxisProperties) > axisProperties.getYAxisProperties(); > //calcul de la meilleur echelle possible > int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); > y.setNumItems(n+2); > y.setUserDefinedScale( 0, 100 ); > y.setRoundToNearest( 0 ); > > > AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); > > //ligne pour le cadrillage > ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); > axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); > axisProperties.getXAxisProperties().setShowGridLines( > AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); > axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); > axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); > > > //generation finale > AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, 700, > 500 ); > > > // axisChart.xAxis=new XAxis(axisChart,this.intervalle); > > try{ > JPEGEncoder13.encode(axisChart,1.0f,new > FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); > } > > __________________________________________________________________ > Switch to Netscape Internet Service. > As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register > > Netscape. Just the Net You Need. > > New! Netscape Toolbar for Internet Explorer > Search from anywhere on the Web and block those annoying pop-ups. > Download now at http://channels.netscape.com/ns/search/install.jsp > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail |
From: Nathaniel G. A. <nat...@ya...> - 2004-09-02 02:50:50
|
yes. this is correct. --- Marcin Gryszkalis <da...@to...> wrote: > >>I'm trying to show values on a line graph when using JCharts. > >>I've checked the documentation; however, I did not see a > >>way to add values. > > > Hi May I suggest copying the code from one of the examples. > > You'll see an array of values being passed in somewhere. > > Just modify that list by creating the array based on your data. > > I guess he ment adding value labels, it can be done using ValueLabelRenderer > class but it works with bar and clustered-bar charts only - examples > in guide: > http://jcharts.sourceforge.net/userGuide/axisCharts/bar/#Bar+Labels > > When I checked last time it was not possible for stacked charts and > line charts. > > regards > marcin > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush |
From: Marcin G. <da...@to...> - 2004-09-01 23:04:42
|
>>I'm trying to show values on a line graph when using JCharts. >>I've checked the documentation; however, I did not see a >>way to add values. > Hi May I suggest copying the code from one of the examples. > You'll see an array of values being passed in somewhere. > Just modify that list by creating the array based on your data. I guess he ment adding value labels, it can be done using ValueLabelRenderer class but it works with bar and clustered-bar charts only - examples in guide: http://jcharts.sourceforge.net/userGuide/axisCharts/bar/#Bar+Labels When I checked last time it was not possible for stacked charts and line charts. regards marcin |
From: Fredrik L. <fl...@tr...> - 2004-09-01 17:27:19
|
Hi May I suggest copying the code from one of the examples. You'll see an array of values being passed in somewhere. Just modify that list by creating the array based on your data. Personally I was very confused at first but after taking a second look it's very easy to use. You might have to follow the calls in the Api if you want to change the look but the defaults work well. Fredrik -----Original Message----- From: Nick Chalko [mailto:ni...@ch...]=20 Sent: Tuesday, August 31, 2004 9:13 PM To: Durand; jch...@li... Subject: [jCharts-users] Re: JCharts - Line graph - values Great to hear you using JCharts. Please ask your question on the list=20 (which I have CC) so that everyone can help, and benefit from the answers. R, Nick ps. I personally have no JChart experience. Durand wrote: >Sir, > > > >I am using JCharts for a small scale US Army Web application > >proof-of-concept. > > > >I'm trying to show values on a line graph when using JCharts. > >I've checked the documentation; however, I did not see a > >way to add values. > > > >Do you know of a solution? > > > >thanks > =20 > |
From: <jle...@ne...> - 2004-09-01 07:49:33
|
I don't know why i have a NullPointerException when i use the jpeg encoder Is there anaone could help me..... It is always the same problem with the scale of the xaxis on a point chart DataAxisProperties x=new DataAxisProperties(); DataAxisProperties y=new DataAxisProperties(); //DataAxisProperties datatry = (DataAxisProperties)axisProperties.getXAxisProperties(); x.setNumItems(this.intervalle); x.setUserDefinedScale(0,24); x.setRoundToNearest(0); //DataAxisProperties dataAxisProperties= (DataAxisProperties) axisProperties.getYAxisProperties(); //calcul de la meilleur echelle possible int n=(int)Math.ceil(new Double(String.valueOf(this.valeurMax/100)).doubleValue()); y.setNumItems(n+2); y.setUserDefinedScale( 0, 100 ); y.setRoundToNearest( 0 ); AxisProperties axisProperties= new AxisProperties((LabelAxisProperties)x,y); //ligne pour le cadrillage ChartStroke xAxisGridLines= new ChartStroke( new BasicStroke( 0.5f ), Color.GRAY ); axisProperties.getXAxisProperties().setGridLineChartStroke( xAxisGridLines ); axisProperties.getXAxisProperties().setShowGridLines( AxisTypeProperties.GRID_LINES_ONLY_WITH_LABELS); axisProperties.getXAxisProperties().setShowTicks( AxisTypeProperties.TICKS_NONE ); axisProperties.getXAxisProperties().setPaddingBetweenAxisAndLabels(5.0f); //generation finale AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties,null, 700, 500 ); // axisChart.xAxis=new XAxis(axisChart,this.intervalle); try{ JPEGEncoder13.encode(axisChart,1.0f,new FileOutputStream(prop.getProperty("GRAPHE")+chemin+".jpg")); } __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp |