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: Ducret, G. (MSCI) <Gil...@ms...> - 2003-12-04 14:12:52
|
Hello, =20 I have a combo box containing: =20 - stacked bars - lines =20 The lines represent the total for each of the items contained in the stacked bar The X axis contains dates =20 ex: the stacked bar contains X, Y, Z at dates d1, d2, d3. The lines describes the sum of: - X at d1, d2, d3 - Y at d1, d2, d3 - Z at d1, d2, d3 =20 So, the legends for the stacked bars and for the lines are the same. =20 My problems is as I had two datasets, with the same legend, the legend appears twice. =20 Is there a way to avoid that? =20 Many thanks =20 Gilles=20 -------------------------------------------------------- =20 NOTICE: If received in error, please destroy and notify sender. Sender = does not waive confidentiality or privilege, and use is prohibited.=20 =20 |
From: <dea...@ve...> - 2003-12-04 06:41:38
|
I will be out of the office starting 12/03/2003 and will not return until 12/07/2003. I am currently out of the office and travelling on business. If this matter is urgent, I can be reached at 805.231.5620. I will be returning on 12/07. Thank you. |
From: Nathaniel G. A. <nat...@ya...> - 2003-12-04 04:11:21
|
--- pve...@ic... wrote: > Hi all !. I have some questions. > > First, I've seen some 3D Pie Charts, how can I get one ? Is there some examples > to get one ? The 3d pie charts are coming in the next release. They are only available in CVS at this time, so you will have to check out the krysalis-jcharts module for them. > Second, I need to create a chart with interval scale on "y axis", for example > '15:12' ( 15 hours and 12 minutes ) , ... , '08:15' ... '00:10' . Time Series plots are not available yet. We are hoping to have them in the next release. > Is there a way to do that ? > > > Thanks for your help > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN's Audience Survey. > Help shape OSDN's sites and tell us what you think. Take this > five minute survey and you could win a $250 Gift Certificate. > http://www.wrgsurveys.com/2003/osdntech03.php?site=8 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |
From: <pve...@ic...> - 2003-12-03 21:23:26
|
Hi all !. I have some questions. First, I've seen some 3D Pie Charts, how can I get one ? Is there some examples to get one ? Second, I need to create a chart with interval scale on "y axis", for example '15:12' ( 15 hours and 12 minutes ) , ... , '08:15' ... '00:10' . Is there a way to do that ? Thanks for your help ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |
From: Nathaniel G. A. <nat...@ya...> - 2003-12-03 19:48:28
|
sure, you can set the a-axis labels to be vertical. call the following method on the AxisProperties Object: axisProperties.setXAxisLabelsAreVertical( true ); You can control the pixel dimensions of the chart image via arguments to the Constructor. --- "Ducret, Gilles (MSCI)" <Gil...@ms...> wrote: > Hello, > > First of all I would like to say how impressed I am. It is so easy to > use ... > > Now I have to questions: > > 1) I have a graph. The X axis contains dates. I would like to know if it > is possible > to display these dates vertically to avoid to take too much place in the > graph. > > 2) By the time this graph might be very large. How can I manage this, > since I give > a width and an height for this graph. Can this be extensible. I am > effraid the > graph becomes not readable when there is too much data. > > Many thanks > > Gilles > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender does not waive > confidentiality or privilege, and use is prohibited. > > __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |
From: Ducret, G. (MSCI) <Gil...@ms...> - 2003-12-03 19:23:10
|
Hello, =20 First of all I would like to say how impressed I am. It is so easy to use ... =20 Now I have to questions: =20 1) I have a graph. The X axis contains dates. I would like to know if it is possible to display these dates vertically to avoid to take too much place in the graph. =20 2) By the time this graph might be very large. How can I manage this, since I give a width and an height for this graph. Can this be extensible. I am effraid the graph becomes not readable when there is too much data. =20 Many thanks =20 Gilles=20 -------------------------------------------------------- =20 NOTICE: If received in error, please destroy and notify sender. Sender = does not waive confidentiality or privilege, and use is prohibited.=20 =20 |
From: Nathaniel G. A. <nat...@ya...> - 2003-12-02 18:20:16
|
Sure. I would recommend using a Servlet to generate your chart as jsps are not meant, according to the JSP specification, to create binary data. When you use a Servlet, simply have the src attribute of an img tag reference your Servlet. such as: <img src="somePath/myLineChart"/> --- "Ducret, Gilles (MSCI)" <Gil...@ms...> wrote: > Hello, > > I am a new user of jchart. > > At the moment I am generating a single graph in a jsp page, using > the encoder. > > It seems that I cannot happend anything else in this page, only the > graph. > > Could you please tell me how I can: add my content plus the graph, > > and add several graphs in the same web page. > > Many thanks > > Gilles > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender does not waive > confidentiality or privilege, and use is prohibited. > > __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |
From: Ducret, G. (MSCI) <Gil...@ms...> - 2003-12-02 17:24:59
|
Hello, =20 I am a new user of jchart. =20 At the moment I am generating a single graph in a jsp page, using the encoder. =20 It seems that I cannot happend anything else in this page, only the graph. =20 Could you please tell me how I can: add my content plus the graph, =20 and add several graphs in the same web page. =20 Many thanks =20 Gilles=20 -------------------------------------------------------- =20 NOTICE: If received in error, please destroy and notify sender. Sender = does not waive confidentiality or privilege, and use is prohibited.=20 =20 |
From: Nathaniel G. A. <nat...@ya...> - 2003-11-17 21:10:34
|
The complete source is not there, but some of it is; most of the samples use a Randomly generated Paint implementation. Take a look at the TestDataGenerator.getRandomPaint() method. You can do transparency by using: new Color( r, g, b, a ), where a = alpha Take a look at the javadocs for java.awt.Color for more info on that Constructor. --- "Campano, Troy" <Tro...@Li...> wrote: > Is there source code available for the samples at > http://jcharts.krysalis.org/samples/index.html ? > > I'm trying to get some nice looking colors and find out how the > transparency of colors is being done. > > > Thank you! > > ~ Troy Campano ~ > __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |
From: Campano, T. <Tro...@Li...> - 2003-11-17 20:47:40
|
Is there source code available for the samples at http://jcharts.krysalis.org/samples/index.html ? I'm trying to get some nice looking colors and find out how the transparency of colors is being done. Thank you! ~ Troy Campano ~ |
From: Jarle L. <jl...@do...> - 2003-11-14 07:56:26
|
Hi, I did a Radar legend implementation myself (sent it to Nataniel off list) : " I've had a look at the code, and made a legend implementation for the Radar chart. The doesn't take the axis labels into consideration, so the labels and legend may be on top of each other if the legend is LEFT or RIGHT (this does not apply to TOP or BOTTOM). Changes:=20 Legend.java: I had to do som additions to avoid classcast exceptions: -calculateDrawingValues() : added else if (iData instanceof IRadarChartDataSet ) {...} -Added method : private void processData( IRadarChartDataSet iRadarChartDataSet ) {...} -Added method: private void processLegendLabels( IRadarChartDataSet iRadarChartDataSet ) {...} RadarChart.java: -Added legend redering to : protected void renderChart() { ... } I've attached the two files if you wan't to update the CVS repository. " I'm not able to compare my code and your code until monday, but I think this is pretty much what you've done too... Thanks for looking into problem! -Jarle -----Opprinnelig melding----- Fra: jch...@li... [mailto:jch...@li...] P=E5 vegne av Stefan Groschupf Sendt: 12. november 2003 23:41 Til: jch...@li... Emne: [jCharts-users] radar chart legend patch Hi Folks, Hi Nathaniel, at least I got the problem with scaling the radar chart fixed as well. Anyways this has more the character of a "hack" then a clean patch. Sorry I'm to much in rush, but i wish that other can participate. Here is a patch that anable legends in radar charts. Just update a cvs jchart checkoput (e.g. apply patch in eclipse) and=20 rebuild your jchart. This patch has following known problems: 1.) if your legend is much to big the may be the labels of your radar=20 chart is cutted on the side. (sorry dont know to fix) 2.) my ide had reformt some code that is not involvedin the radar legend chart issue. Sorry was a mistake. (That why so much is marked as deleted and added in the patch file) Hope that helps you Mathias and Jarle. Cheers Stefan --=20 open for jobs: www.media-style.com open source: www.weta-group.net open discussion: www.text-mining.org |
From: Stefan G. <sg...@me...> - 2003-11-12 22:41:10
|
Hi Folks, Hi Nathaniel, at least I got the problem with scaling the radar chart fixed as well. Anyways this has more the character of a "hack" then a clean patch. Sorry I'm to much in rush, but i wish that other can participate. Here is a patch that anable legends in radar charts. Just update a cvs jchart checkoput (e.g. apply patch in eclipse) and rebuild your jchart. This patch has following known problems: 1.) if your legend is much to big the may be the labels of your radar chart is cutted on the side. (sorry dont know to fix) 2.) my ide had reformt some code that is not involvedin the radar legend chart issue. Sorry was a mistake. (That why so much is marked as deleted and added in the patch file) Hope that helps you Mathias and Jarle. Cheers Stefan -- open for jobs: www.media-style.com open source: www.weta-group.net open discussion: www.text-mining.org |
From: Nathaniel G. A. <nat...@ya...> - 2003-11-12 14:35:36
|
try this: DataAxisProperties yAxis= (DataAxisProperties) axisProperties.getYAxisProperties(); yAxis.setUserDefinedScale( -10, 50 ); --- Nenad Djordjevic <NDj...@us...> wrote: > Hi > I have a problem to change Y-Axis Min and Max values for Line chart (Y-Axis to start with a > value other then 0). How to do that? > Thanks. > __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |
From: Nathaniel G. A. <nat...@ya...> - 2003-11-12 14:32:21
|
Sorry, this is not in the codebase for chart labels. --- Matthias Wieschke <mw...@me...> wrote: > if i increase the width, the chart looks ok. is it possible to make return > ("\n") and create a 2 or 3 line label??? > > mfg > matthias > > > -----Ursprungliche Nachricht----- > Von: jch...@li... > [mailto:jch...@li...]Im Auftrag von > Nathaniel G. Auvil > Gesendet: Mittwoch, 12. November 2003 15:07 > An: jch...@li... > Betreff: Re: [jCharts-users] 3d pie chart > > > > What happens if you increase the width of the image? It sounds like it > might just be because the > label length is too wide to display for that image width. > > > > --- Matthias Wieschke <mw...@me...> wrote: > > i have a problem with the labels of my pie chart. > > the width of my graph is 480px and i want to set the labels of my data > > around the pie-chart. > > but my labels are to long and the chart is pushed away, so i can only see > > some black lines. > > > > has anybody an idea how i can fix this problem?? > > > > mfg > > matthias > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > __________________________________ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |
From: Matthias W. <mw...@me...> - 2003-11-12 14:22:50
|
if i increase the width, the chart looks ok. is it possible to make return ("\n") and create a 2 or 3 line label??? mfg matthias -----Ursprungliche Nachricht----- Von: jch...@li... [mailto:jch...@li...]Im Auftrag von Nathaniel G. Auvil Gesendet: Mittwoch, 12. November 2003 15:07 An: jch...@li... Betreff: Re: [jCharts-users] 3d pie chart What happens if you increase the width of the image? It sounds like it might just be because the label length is too wide to display for that image width. --- Matthias Wieschke <mw...@me...> wrote: > i have a problem with the labels of my pie chart. > the width of my graph is 480px and i want to set the labels of my data > around the pie-chart. > but my labels are to long and the chart is pushed away, so i can only see > some black lines. > > has anybody an idea how i can fix this problem?? > > mfg > matthias > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users |
From: Nenad D. <NDj...@us...> - 2003-11-12 14:18:49
|
Hi I have a problem to change Y-Axis Min and Max values for Line chart = (Y-Axis to start with a value other then 0). How to do that? Thanks.=20 |
From: Nathaniel G. A. <nat...@ya...> - 2003-11-12 14:07:51
|
What happens if you increase the width of the image? It sounds like it might just be because the label length is too wide to display for that image width. --- Matthias Wieschke <mw...@me...> wrote: > i have a problem with the labels of my pie chart. > the width of my graph is 480px and i want to set the labels of my data > around the pie-chart. > but my labels are to long and the chart is pushed away, so i can only see > some black lines. > > has anybody an idea how i can fix this problem?? > > mfg > matthias > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |
From: Nenad D. <NDj...@us...> - 2003-11-12 13:44:18
|
Hi. How can I change Y-Axis Min and Max value. |
From: Nenad D. <NDj...@us...> - 2003-11-12 13:38:08
|
I need a help to change Y-Axis start value to a value other than 0 (30, 50 = for example) |
From: Matthias W. <mw...@me...> - 2003-11-12 10:35:54
|
i have a problem with the labels of my pie chart. the width of my graph is 480px and i want to set the labels of my data around the pie-chart. but my labels are to long and the chart is pushed away, so i can only see some black lines. has anybody an idea how i can fix this problem?? mfg matthias |
From: Bent A. M. <me...@f1...> - 2003-11-12 07:26:50
|
Hi Thankful for all the help I can receive, if not I can implement it myself. Thanks regards Bent Are Melsom --------------------------------------- Bent Are Melsom mobile: 950 22 874 e-mail: me...@f1... --------------------------------------- On Tue, 11 Nov 2003, Nathaniel G. Auvil wrote: > > Part of it. The Scale Calculators determines the value of each each segment on an axis. So yes, > you would want to create a new implementation of one for a Logarithmic scale. But then you also > would have to implement a new YAxis Object or enhance the existing one to plot the uneven amounts > on the y-axis. > > I could help you with this part of it, if you need it; it would be a great addition to the > library. > > > > --- me...@f1... wrote: > > Hi > > > > I have looked through the JavaDocs and found the class ScaleCalculator (in the > > org.jcharts.axischart.axis.scale package). I have not tried it yet (due to lack > > of time), but will it be possible to implement a specialized version of this > > class and use it to compute a logarithmic scale for me? > > > > Has anyone done this? > > > > Thanks > > > > regards > > Bent Are Melsom > > > > Quoting "Nathaniel G. Auvil" <nat...@ya...>: > > > > > > > > Logarithmic scales are not yet possible. You can set the min and increment > > > of the scale, but this > > > will not give you a logarithmic scale as I understand it. Take a look at the > > > javadocs for the > > > AxisProperties Constructor. > > > > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > Hi > > > > > > > > Thanks that worked out just fine. time for another question;) > > > > > > > > Have anybody used a logarithmic scale on one of the axis? I hava a need > > > > for this. Is there some way in which I can set the values of the markings > > > > on an axis? This way I can compute the scala and set the values to the > > > > axis. > > > > > > > > regards > > > > Bent Are Melsom > > > > > > > > --------------------------------------- > > > > Bent Are Melsom > > > > mobile: 950 22 874 > > > > e-mail: me...@f1... > > > > --------------------------------------- > > > > > > > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > > > > > > > > > > Your chart is 1 pixel by 1 pixel, try increasing the size. > > > > > > > > > > > > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > > > Hi > > > > > > > > > > > > This is the code for my chart. I suppose that you are referring to > > > the > > > > > > line > > > > > > > > > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > > > > > }; > > > > > > > > > > > > If not, you can see the whole code here: > > > > > > > > > > > > String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", > > > "2003", > > > > > > "2004" }; > > > > > > String xAxisTitle= "Years"; > > > > > > String yAxisTitle= "Problems"; > > > > > > String title= "CIBER"; > > > > > > DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, > > > > > > yAxisTitle, title ); > > > > > > > > > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > > > > > }; > > > > > > String[] legendLabels= { "Bugs" }; > > > > > > Paint[] paints=TestDataGenerator.getRandomPaints( 1 ); > > > > > > > > > > > > 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, 1,1 ); > > > > > > > > > > > > Thanks! > > > > > > > > > > > > regards > > > > > > Bent Are Melsom > > > > > > > > > > > > --------------------------------------- > > > > > > Bent Are Melsom > > > > > > mobile: 950 22 874 > > > > > > e-mail: me...@f1... > > > > > > --------------------------------------- > > > > > > > > > > > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > > > > > > > > > > > > > > > > what are you sending as your data? > > > > > > > > > > > > > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > > > > > Hi > > > > > > > > > > > > > > > > I am trying to export a chart to a JPEG image using the > > > JPEGEncoder13 > > > > > > > > class. This does not work, all I get is an > > > IndexOutOfBoundsException. The > > > > > > > > code is > > > > > > > > > > > > > > > > File file = new File("c:\\file.jpg"); > > > > > > > > OutputStream out = new FileOutputStream(file); > > > > > > > > JPEGEncoder13.encode(axisChart,0.5f,out); > > > > > > > > > > > > > > > > The exception is: > > > > > > > > > > > > > > > > java.lang.ArrayIndexOutOfBoundsException: -1 > > > > > > > > int java.awt.font.LineBreakMeasurer.nextOffset(float, int, > > > > > > > > boolean) > > > > > > > > LineBreakMeasurer.java:334 > > > > > > > > java.awt.font.TextLayout > > > > > > > > java.awt.font.LineBreakMeasurer.nextLayout(float, int, boolean) > > > > > > > > LineBreakMeasurer.java:408 > > > > > > > > java.awt.font.TextLayout > > > > > > > > java.awt.font.LineBreakMeasurer.nextLayout(float) > > > > > > > > LineBreakMeasurer.java:382 > > > > > > > > float org.jCharts.Chart.renderChartTitle(java.lang.String, > > > > > > > > java.awt.font.FontRenderContext) > > > > > > > > void org.jCharts.axisChart.AxisChart.renderChart() > > > > > > > > void org.jCharts.Chart.render() > > > > > > > > java.awt.image.BufferedImage > > > > > > > > org.jCharts.encoders.BinaryEncoderUtil.render(org.jCharts.Chart) > > > > > > > > void > > > org.jCharts.encoders.JPEGEncoder13.encode(org.jCharts.Chart, > > > > > > > > float, java.io.OutputStream) > > > > > > > > void mypackage2.TestClass.generateLineChart() > > > > > > > > TestClass.java:49 > > > > > > > > void mypackage2.TestClass.main(java.lang.String[]) > > > > > > > > TestClass.java:62 > > > > > > > > > > > > > > > > The chart is the coded using the example from the user > > > documentation > > > > > > > > of linechart from User's Guide 0.3.0 of jCharts 0.7. > > > > > > > > > > > > > > > > Does anybody have a hint? > > > > > > > > > > > > > > > > regards > > > > > > > > Bent Are Melsom > > > > > > > > --------------------------------------- > > > > > > > > Bent Are Melsom > > > > > > > > mobile: 950 22 874 > > > > > > > > e-mail: me...@f1... > > > > > > > > --------------------------------------- > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > > > > _______________________________________________ > > > > > > > > jCharts-users mailing list > > > > > > > > jCh...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > > > > Do you Yahoo!? > > > > > > > Protect your identity with Yahoo! Mail AddressGuard > > > > > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > > > _______________________________________________ > > > > > > > jCharts-users mailing list > > > > > > > jCh...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > > _______________________________________________ > > > > > > jCharts-users mailing list > > > > > > jCh...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > __________________________________ > > > > > Do you Yahoo!? > > > > > Protect your identity with Yahoo! Mail AddressGuard > > > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > _______________________________________________ > > > > > jCharts-users mailing list > > > > > jCh...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > WebDAV, and more! http://www.apachecon.com/ > > > > _______________________________________________ > > > > jCharts-users mailing list > > > > jCh...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Protect your identity with Yahoo! Mail AddressGuard > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: ApacheCon 2003, > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > WebDAV, and more! http://www.apachecon.com/ > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > ---------------------------------------------------------------- > > This message was sent using IMP, the Internet Messaging Program. > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > __________________________________ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > |
From: Nathaniel G. A. <nat...@ya...> - 2003-11-11 13:48:21
|
Part of it. The Scale Calculators determines the value of each each segment on an axis. So yes, you would want to create a new implementation of one for a Logarithmic scale. But then you also would have to implement a new YAxis Object or enhance the existing one to plot the uneven amounts on the y-axis. I could help you with this part of it, if you need it; it would be a great addition to the library. --- me...@f1... wrote: > Hi > > I have looked through the JavaDocs and found the class ScaleCalculator (in the > org.jcharts.axischart.axis.scale package). I have not tried it yet (due to lack > of time), but will it be possible to implement a specialized version of this > class and use it to compute a logarithmic scale for me? > > Has anyone done this? > > Thanks > > regards > Bent Are Melsom > > Quoting "Nathaniel G. Auvil" <nat...@ya...>: > > > > > Logarithmic scales are not yet possible. You can set the min and increment > > of the scale, but this > > will not give you a logarithmic scale as I understand it. Take a look at the > > javadocs for the > > AxisProperties Constructor. > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > Hi > > > > > > Thanks that worked out just fine. time for another question;) > > > > > > Have anybody used a logarithmic scale on one of the axis? I hava a need > > > for this. Is there some way in which I can set the values of the markings > > > on an axis? This way I can compute the scala and set the values to the > > > axis. > > > > > > regards > > > Bent Are Melsom > > > > > > --------------------------------------- > > > Bent Are Melsom > > > mobile: 950 22 874 > > > e-mail: me...@f1... > > > --------------------------------------- > > > > > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > > > > > > > Your chart is 1 pixel by 1 pixel, try increasing the size. > > > > > > > > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > > Hi > > > > > > > > > > This is the code for my chart. I suppose that you are referring to > > the > > > > > line > > > > > > > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > > > > }; > > > > > > > > > > If not, you can see the whole code here: > > > > > > > > > > String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", > > "2003", > > > > > "2004" }; > > > > > String xAxisTitle= "Years"; > > > > > String yAxisTitle= "Problems"; > > > > > String title= "CIBER"; > > > > > DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, > > > > > yAxisTitle, title ); > > > > > > > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > > > > }; > > > > > String[] legendLabels= { "Bugs" }; > > > > > Paint[] paints=TestDataGenerator.getRandomPaints( 1 ); > > > > > > > > > > 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, 1,1 ); > > > > > > > > > > Thanks! > > > > > > > > > > regards > > > > > Bent Are Melsom > > > > > > > > > > --------------------------------------- > > > > > Bent Are Melsom > > > > > mobile: 950 22 874 > > > > > e-mail: me...@f1... > > > > > --------------------------------------- > > > > > > > > > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > > > > > > > > > > > > > what are you sending as your data? > > > > > > > > > > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > > > > Hi > > > > > > > > > > > > > > I am trying to export a chart to a JPEG image using the > > JPEGEncoder13 > > > > > > > class. This does not work, all I get is an > > IndexOutOfBoundsException. The > > > > > > > code is > > > > > > > > > > > > > > File file = new File("c:\\file.jpg"); > > > > > > > OutputStream out = new FileOutputStream(file); > > > > > > > JPEGEncoder13.encode(axisChart,0.5f,out); > > > > > > > > > > > > > > The exception is: > > > > > > > > > > > > > > java.lang.ArrayIndexOutOfBoundsException: -1 > > > > > > > int java.awt.font.LineBreakMeasurer.nextOffset(float, int, > > > > > > > boolean) > > > > > > > LineBreakMeasurer.java:334 > > > > > > > java.awt.font.TextLayout > > > > > > > java.awt.font.LineBreakMeasurer.nextLayout(float, int, boolean) > > > > > > > LineBreakMeasurer.java:408 > > > > > > > java.awt.font.TextLayout > > > > > > > java.awt.font.LineBreakMeasurer.nextLayout(float) > > > > > > > LineBreakMeasurer.java:382 > > > > > > > float org.jCharts.Chart.renderChartTitle(java.lang.String, > > > > > > > java.awt.font.FontRenderContext) > > > > > > > void org.jCharts.axisChart.AxisChart.renderChart() > > > > > > > void org.jCharts.Chart.render() > > > > > > > java.awt.image.BufferedImage > > > > > > > org.jCharts.encoders.BinaryEncoderUtil.render(org.jCharts.Chart) > > > > > > > void > > org.jCharts.encoders.JPEGEncoder13.encode(org.jCharts.Chart, > > > > > > > float, java.io.OutputStream) > > > > > > > void mypackage2.TestClass.generateLineChart() > > > > > > > TestClass.java:49 > > > > > > > void mypackage2.TestClass.main(java.lang.String[]) > > > > > > > TestClass.java:62 > > > > > > > > > > > > > > The chart is the coded using the example from the user > > documentation > > > > > > > of linechart from User's Guide 0.3.0 of jCharts 0.7. > > > > > > > > > > > > > > Does anybody have a hint? > > > > > > > > > > > > > > regards > > > > > > > Bent Are Melsom > > > > > > > --------------------------------------- > > > > > > > Bent Are Melsom > > > > > > > mobile: 950 22 874 > > > > > > > e-mail: me...@f1... > > > > > > > --------------------------------------- > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > > > _______________________________________________ > > > > > > > jCharts-users mailing list > > > > > > > jCh...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > > > > __________________________________ > > > > > > Do you Yahoo!? > > > > > > Protect your identity with Yahoo! Mail AddressGuard > > > > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > > _______________________________________________ > > > > > > jCharts-users mailing list > > > > > > jCh...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > _______________________________________________ > > > > > jCharts-users mailing list > > > > > jCh...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > Protect your identity with Yahoo! Mail AddressGuard > > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > WebDAV, and more! http://www.apachecon.com/ > > > > _______________________________________________ > > > > jCharts-users mailing list > > > > jCh...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: ApacheCon 2003, > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > WebDAV, and more! http://www.apachecon.com/ > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > __________________________________ > > Do you Yahoo!? > > Protect your identity with Yahoo! Mail AddressGuard > > http://antispam.yahoo.com/whatsnewfree > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |
From: <me...@f1...> - 2003-11-11 08:22:46
|
Hi I have looked through the JavaDocs and found the class ScaleCalculator (in the org.jcharts.axischart.axis.scale package). I have not tried it yet (due to lack of time), but will it be possible to implement a specialized version of this class and use it to compute a logarithmic scale for me? Has anyone done this? Thanks regards Bent Are Melsom Quoting "Nathaniel G. Auvil" <nat...@ya...>: > > Logarithmic scales are not yet possible. You can set the min and increment > of the scale, but this > will not give you a logarithmic scale as I understand it. Take a look at the > javadocs for the > AxisProperties Constructor. > > > > --- Bent Are Melsom <me...@f1...> wrote: > > Hi > > > > Thanks that worked out just fine. time for another question;) > > > > Have anybody used a logarithmic scale on one of the axis? I hava a need > > for this. Is there some way in which I can set the values of the markings > > on an axis? This way I can compute the scala and set the values to the > > axis. > > > > regards > > Bent Are Melsom > > > > --------------------------------------- > > Bent Are Melsom > > mobile: 950 22 874 > > e-mail: me...@f1... > > --------------------------------------- > > > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > > > > Your chart is 1 pixel by 1 pixel, try increasing the size. > > > > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > Hi > > > > > > > > This is the code for my chart. I suppose that you are referring to > the > > > > line > > > > > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > > > }; > > > > > > > > If not, you can see the whole code here: > > > > > > > > String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", > "2003", > > > > "2004" }; > > > > String xAxisTitle= "Years"; > > > > String yAxisTitle= "Problems"; > > > > String title= "CIBER"; > > > > DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, > > > > yAxisTitle, title ); > > > > > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > > > }; > > > > String[] legendLabels= { "Bugs" }; > > > > Paint[] paints=TestDataGenerator.getRandomPaints( 1 ); > > > > > > > > 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, 1,1 ); > > > > > > > > Thanks! > > > > > > > > regards > > > > Bent Are Melsom > > > > > > > > --------------------------------------- > > > > Bent Are Melsom > > > > mobile: 950 22 874 > > > > e-mail: me...@f1... > > > > --------------------------------------- > > > > > > > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > > > > > > > > > > what are you sending as your data? > > > > > > > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > > > Hi > > > > > > > > > > > > I am trying to export a chart to a JPEG image using the > JPEGEncoder13 > > > > > > class. This does not work, all I get is an > IndexOutOfBoundsException. The > > > > > > code is > > > > > > > > > > > > File file = new File("c:\\file.jpg"); > > > > > > OutputStream out = new FileOutputStream(file); > > > > > > JPEGEncoder13.encode(axisChart,0.5f,out); > > > > > > > > > > > > The exception is: > > > > > > > > > > > > java.lang.ArrayIndexOutOfBoundsException: -1 > > > > > > int java.awt.font.LineBreakMeasurer.nextOffset(float, int, > > > > > > boolean) > > > > > > LineBreakMeasurer.java:334 > > > > > > java.awt.font.TextLayout > > > > > > java.awt.font.LineBreakMeasurer.nextLayout(float, int, boolean) > > > > > > LineBreakMeasurer.java:408 > > > > > > java.awt.font.TextLayout > > > > > > java.awt.font.LineBreakMeasurer.nextLayout(float) > > > > > > LineBreakMeasurer.java:382 > > > > > > float org.jCharts.Chart.renderChartTitle(java.lang.String, > > > > > > java.awt.font.FontRenderContext) > > > > > > void org.jCharts.axisChart.AxisChart.renderChart() > > > > > > void org.jCharts.Chart.render() > > > > > > java.awt.image.BufferedImage > > > > > > org.jCharts.encoders.BinaryEncoderUtil.render(org.jCharts.Chart) > > > > > > void > org.jCharts.encoders.JPEGEncoder13.encode(org.jCharts.Chart, > > > > > > float, java.io.OutputStream) > > > > > > void mypackage2.TestClass.generateLineChart() > > > > > > TestClass.java:49 > > > > > > void mypackage2.TestClass.main(java.lang.String[]) > > > > > > TestClass.java:62 > > > > > > > > > > > > The chart is the coded using the example from the user > documentation > > > > > > of linechart from User's Guide 0.3.0 of jCharts 0.7. > > > > > > > > > > > > Does anybody have a hint? > > > > > > > > > > > > regards > > > > > > Bent Are Melsom > > > > > > --------------------------------------- > > > > > > Bent Are Melsom > > > > > > mobile: 950 22 874 > > > > > > e-mail: me...@f1... > > > > > > --------------------------------------- > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > > _______________________________________________ > > > > > > jCharts-users mailing list > > > > > > jCh...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > __________________________________ > > > > > Do you Yahoo!? > > > > > Protect your identity with Yahoo! Mail AddressGuard > > > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > _______________________________________________ > > > > > jCharts-users mailing list > > > > > jCh...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > WebDAV, and more! http://www.apachecon.com/ > > > > _______________________________________________ > > > > jCharts-users mailing list > > > > jCh...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Protect your identity with Yahoo! Mail AddressGuard > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: ApacheCon 2003, > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > WebDAV, and more! http://www.apachecon.com/ > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > __________________________________ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
From: Nathaniel G. A. <nat...@ya...> - 2003-11-11 00:57:09
|
Logarithmic scales are not yet possible. You can set the min and increment of the scale, but this will not give you a logarithmic scale as I understand it. Take a look at the javadocs for the AxisProperties Constructor. --- Bent Are Melsom <me...@f1...> wrote: > Hi > > Thanks that worked out just fine. time for another question;) > > Have anybody used a logarithmic scale on one of the axis? I hava a need > for this. Is there some way in which I can set the values of the markings > on an axis? This way I can compute the scala and set the values to the > axis. > > regards > Bent Are Melsom > > --------------------------------------- > Bent Are Melsom > mobile: 950 22 874 > e-mail: me...@f1... > --------------------------------------- > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > Your chart is 1 pixel by 1 pixel, try increasing the size. > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > Hi > > > > > > This is the code for my chart. I suppose that you are referring to the > > > line > > > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > > }; > > > > > > If not, you can see the whole code here: > > > > > > String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", "2003", > > > "2004" }; > > > String xAxisTitle= "Years"; > > > String yAxisTitle= "Problems"; > > > String title= "CIBER"; > > > DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, > > > yAxisTitle, title ); > > > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > > }; > > > String[] legendLabels= { "Bugs" }; > > > Paint[] paints=TestDataGenerator.getRandomPaints( 1 ); > > > > > > 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, 1,1 ); > > > > > > Thanks! > > > > > > regards > > > Bent Are Melsom > > > > > > --------------------------------------- > > > Bent Are Melsom > > > mobile: 950 22 874 > > > e-mail: me...@f1... > > > --------------------------------------- > > > > > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > > > > > > > what are you sending as your data? > > > > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > > Hi > > > > > > > > > > I am trying to export a chart to a JPEG image using the JPEGEncoder13 > > > > > class. This does not work, all I get is an IndexOutOfBoundsException. The > > > > > code is > > > > > > > > > > File file = new File("c:\\file.jpg"); > > > > > OutputStream out = new FileOutputStream(file); > > > > > JPEGEncoder13.encode(axisChart,0.5f,out); > > > > > > > > > > The exception is: > > > > > > > > > > java.lang.ArrayIndexOutOfBoundsException: -1 > > > > > int java.awt.font.LineBreakMeasurer.nextOffset(float, int, > > > > > boolean) > > > > > LineBreakMeasurer.java:334 > > > > > java.awt.font.TextLayout > > > > > java.awt.font.LineBreakMeasurer.nextLayout(float, int, boolean) > > > > > LineBreakMeasurer.java:408 > > > > > java.awt.font.TextLayout > > > > > java.awt.font.LineBreakMeasurer.nextLayout(float) > > > > > LineBreakMeasurer.java:382 > > > > > float org.jCharts.Chart.renderChartTitle(java.lang.String, > > > > > java.awt.font.FontRenderContext) > > > > > void org.jCharts.axisChart.AxisChart.renderChart() > > > > > void org.jCharts.Chart.render() > > > > > java.awt.image.BufferedImage > > > > > org.jCharts.encoders.BinaryEncoderUtil.render(org.jCharts.Chart) > > > > > void org.jCharts.encoders.JPEGEncoder13.encode(org.jCharts.Chart, > > > > > float, java.io.OutputStream) > > > > > void mypackage2.TestClass.generateLineChart() > > > > > TestClass.java:49 > > > > > void mypackage2.TestClass.main(java.lang.String[]) > > > > > TestClass.java:62 > > > > > > > > > > The chart is the coded using the example from the user documentation > > > > > of linechart from User's Guide 0.3.0 of jCharts 0.7. > > > > > > > > > > Does anybody have a hint? > > > > > > > > > > regards > > > > > Bent Are Melsom > > > > > --------------------------------------- > > > > > Bent Are Melsom > > > > > mobile: 950 22 874 > > > > > e-mail: me...@f1... > > > > > --------------------------------------- > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > > WebDAV, and more! http://www.apachecon.com/ > > > > > _______________________________________________ > > > > > jCharts-users mailing list > > > > > jCh...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > Protect your identity with Yahoo! Mail AddressGuard > > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > WebDAV, and more! http://www.apachecon.com/ > > > > _______________________________________________ > > > > jCharts-users mailing list > > > > jCh...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: ApacheCon 2003, > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > WebDAV, and more! http://www.apachecon.com/ > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > __________________________________ > > Do you Yahoo!? > > Protect your identity with Yahoo! Mail AddressGuard > > http://antispam.yahoo.com/whatsnewfree > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree |
From: Bent A. M. <me...@f1...> - 2003-11-10 15:32:47
|
Hi Thanks that worked out just fine. time for another question;) Have anybody used a logarithmic scale on one of the axis? I hava a need for this. Is there some way in which I can set the values of the markings on an axis? This way I can compute the scala and set the values to the axis. regards Bent Are Melsom --------------------------------------- Bent Are Melsom mobile: 950 22 874 e-mail: me...@f1... --------------------------------------- On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > Your chart is 1 pixel by 1 pixel, try increasing the size. > > > > --- Bent Are Melsom <me...@f1...> wrote: > > Hi > > > > This is the code for my chart. I suppose that you are referring to the > > line > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > }; > > > > If not, you can see the whole code here: > > > > String[] xAxisLabels= { "1998", "1999", "2000", "2001", "2002", "2003", > > "2004" }; > > String xAxisTitle= "Years"; > > String yAxisTitle= "Problems"; > > String title= "CIBER"; > > DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, > > yAxisTitle, title ); > > > > double[][] data= new double[][]{ { 250, 45, -36, 66, 145, 80, 55 } > > }; > > String[] legendLabels= { "Bugs" }; > > Paint[] paints=TestDataGenerator.getRandomPaints( 1 ); > > > > 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, 1,1 ); > > > > Thanks! > > > > regards > > Bent Are Melsom > > > > --------------------------------------- > > Bent Are Melsom > > mobile: 950 22 874 > > e-mail: me...@f1... > > --------------------------------------- > > > > On Mon, 10 Nov 2003, Nathaniel G. Auvil wrote: > > > > > > > > what are you sending as your data? > > > > > > > > > --- Bent Are Melsom <me...@f1...> wrote: > > > > Hi > > > > > > > > I am trying to export a chart to a JPEG image using the JPEGEncoder13 > > > > class. This does not work, all I get is an IndexOutOfBoundsException. The > > > > code is > > > > > > > > File file = new File("c:\\file.jpg"); > > > > OutputStream out = new FileOutputStream(file); > > > > JPEGEncoder13.encode(axisChart,0.5f,out); > > > > > > > > The exception is: > > > > > > > > java.lang.ArrayIndexOutOfBoundsException: -1 > > > > int java.awt.font.LineBreakMeasurer.nextOffset(float, int, > > > > boolean) > > > > LineBreakMeasurer.java:334 > > > > java.awt.font.TextLayout > > > > java.awt.font.LineBreakMeasurer.nextLayout(float, int, boolean) > > > > LineBreakMeasurer.java:408 > > > > java.awt.font.TextLayout > > > > java.awt.font.LineBreakMeasurer.nextLayout(float) > > > > LineBreakMeasurer.java:382 > > > > float org.jCharts.Chart.renderChartTitle(java.lang.String, > > > > java.awt.font.FontRenderContext) > > > > void org.jCharts.axisChart.AxisChart.renderChart() > > > > void org.jCharts.Chart.render() > > > > java.awt.image.BufferedImage > > > > org.jCharts.encoders.BinaryEncoderUtil.render(org.jCharts.Chart) > > > > void org.jCharts.encoders.JPEGEncoder13.encode(org.jCharts.Chart, > > > > float, java.io.OutputStream) > > > > void mypackage2.TestClass.generateLineChart() > > > > TestClass.java:49 > > > > void mypackage2.TestClass.main(java.lang.String[]) > > > > TestClass.java:62 > > > > > > > > The chart is the coded using the example from the user documentation > > > > of linechart from User's Guide 0.3.0 of jCharts 0.7. > > > > > > > > Does anybody have a hint? > > > > > > > > regards > > > > Bent Are Melsom > > > > --------------------------------------- > > > > Bent Are Melsom > > > > mobile: 950 22 874 > > > > e-mail: me...@f1... > > > > --------------------------------------- > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email sponsored by: ApacheCon 2003, > > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > > WebDAV, and more! http://www.apachecon.com/ > > > > _______________________________________________ > > > > jCharts-users mailing list > > > > jCh...@li... > > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > Protect your identity with Yahoo! Mail AddressGuard > > > http://antispam.yahoo.com/whatsnewfree > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: ApacheCon 2003, > > > 16-19 November in Las Vegas. Learn firsthand the latest > > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > > WebDAV, and more! http://www.apachecon.com/ > > > _______________________________________________ > > > jCharts-users mailing list > > > jCh...@li... > > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: ApacheCon 2003, > > 16-19 November in Las Vegas. Learn firsthand the latest > > developments in Apache, PHP, Perl, XML, Java, MySQL, > > WebDAV, and more! http://www.apachecon.com/ > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > __________________________________ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > > ------------------------------------------------------- > This SF.Net email sponsored by: ApacheCon 2003, > 16-19 November in Las Vegas. Learn firsthand the latest > developments in Apache, PHP, Perl, XML, Java, MySQL, > WebDAV, and more! http://www.apachecon.com/ > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users > |