JFreeChart 0.9.16...
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
JFreeChart 0.9.16...
...is now available. This release includes important bug fixes, line wrapping for chart titles and category labels, shape scaling for the legend, Spanish localisation resources and other minor enhancements.
The biggest API change is the title classes moving to a new package org.jfree.chart.title.*. There are one or two other things as well.
The biggest API change is the title classes moving to a new package org.jfree.chart.title.*. There are one or two other things as well.
Last edited by david.gilbert on Fri Mar 26, 2004 4:28 pm, edited 1 time in total.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


is there a list of bugfixes somewhere?
is there a list of bugfixes somewhere?
thanks,
nik
thanks,
nik
Developer's Guide
Is the Version 0.9.6 of Developer's Guide still accurate for use with Version 0.9.16 of the code?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Developer's Guide
Lots of things have changed, so I'd recommend downloading the latest version of the guide (0.9.15). Updates are free for 1 year following your original purchase, just return to the same URL for the download. I'll be updating the guide for 0.9.16 soon.John.Haines wrote:Is the Version 0.9.6 of Developer's Guide still accurate for use with Version 0.9.16 of the code?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: is there a list of bugfixes somewhere?
I'm sorry, there isn't. It is one of those things that should be done, but isn't because there are so many things to do, and usually just me to do them, so corners occasionally get cut. I'll see if I can be more disciplined in future.nikster wrote:is there a list of bugfixes somewhere?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


When a stable version (1?) will be published please?
When a stable version (1?) will be published please?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: When a stable version (1?) will be published please?
http://www.jfree.org/phpBB2/viewtopic.php?t=5183W wrote:When a stable version (1?) will be published please?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Could not find Source code for Servlet Demo!
Hi,
I've downloaded jfreechart-0.9.16 and I could see the demo charts using java -jar jfreechart-0.9.16-demo.jar.
But I want to see the Servlet Demo which I could not find any where. Can you please tell me where can I find the source code for servlet Demo?
Thanks
Jey
I've downloaded jfreechart-0.9.16 and I could see the demo charts using java -jar jfreechart-0.9.16-demo.jar.
But I want to see the Servlet Demo which I could not find any where. Can you please tell me where can I find the source code for servlet Demo?
Thanks
Jey
Re: JFreeChart 0.9.16... erroneous behavior while updating
david,
i had updated from 0.9.14 to 0.9.16 (and the corresponding jcommon), and had observed an unexpected (and undesirable) behavior with my labels
concretely, in a bar chart, my labels are being wrapped so they become illegible
follow the code portion that produce the problem (note i am using it in a servlet enviroment), if you need more information or the snapshots of the observed diffs would be helpful for you, please email me
rigth now i had returned to 0.9.14
hope this help,
pedro.mendoza@adpclearing.com
---
// irrelevant code ommited
JDBCCategoryDataset data = new JDBCCategoryDataset(conn, sql);
CategoryAxis categoryAxis = new CategoryAxis("x");
ValueAxis valueAxis = new NumberAxis("y");
BarRenderer renderer = new BarRenderer();
renderer.setItemLabelGenerator(new StandardCategoryItemLabelGenerator());
CategoryPlot plot = new CategoryPlot(data, categoryAxis, valueAxis, renderer);
plot.setOrientation(PlotOrientation.HORIZONTAL);
JFreeChart chart = new JFreeChart(null, JFreeChart.DEFAULT_TITLE_FONT, plot, true);
chart.setBackgroundPaint(java.awt.Color.white);
info = new ChartRenderingInfo(new StandardEntityCollection());
String filename = "jfreechart.png";
File file = new File(CHARTS_FOLDER, filename);
ChartUtilities.saveChartAsPNG(file, chart, 640, 480, info);
// irrelevant code ommited
i had updated from 0.9.14 to 0.9.16 (and the corresponding jcommon), and had observed an unexpected (and undesirable) behavior with my labels
concretely, in a bar chart, my labels are being wrapped so they become illegible
follow the code portion that produce the problem (note i am using it in a servlet enviroment), if you need more information or the snapshots of the observed diffs would be helpful for you, please email me
rigth now i had returned to 0.9.14
hope this help,
pedro.mendoza@adpclearing.com
---
// irrelevant code ommited
JDBCCategoryDataset data = new JDBCCategoryDataset(conn, sql);
CategoryAxis categoryAxis = new CategoryAxis("x");
ValueAxis valueAxis = new NumberAxis("y");
BarRenderer renderer = new BarRenderer();
renderer.setItemLabelGenerator(new StandardCategoryItemLabelGenerator());
CategoryPlot plot = new CategoryPlot(data, categoryAxis, valueAxis, renderer);
plot.setOrientation(PlotOrientation.HORIZONTAL);
JFreeChart chart = new JFreeChart(null, JFreeChart.DEFAULT_TITLE_FONT, plot, true);
chart.setBackgroundPaint(java.awt.Color.white);
info = new ChartRenderingInfo(new StandardEntityCollection());
String filename = "jfreechart.png";
File file = new File(CHARTS_FOLDER, filename);
ChartUtilities.saveChartAsPNG(file, chart, 640, 480, info);
// irrelevant code ommited
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Now that category labels can wrap, there is an attribute that controls the width of the labels as a ratio of the space allocated to each category on the axis. By default, the ratio is 0.9 (90%). If you set the ratio to some high number (e.g. 100.0 or higher even) then label wrapping won't happen very often.
In the next release I hope to find a better way to set the defaults.
In the next release I hope to find a better way to set the defaults.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


I have updated from 0.9.10 to 0.9.16 and now I get a deprecation error:
method setSeriesItemLabelAnchor(int, org.jfree.chart.renderer.ItemLabelAnchor) in interface org.jfree.chart.renderer.CategoryItemRenderer has been deprecated at line 1257, column 51
in the documentation the replacement for the method is this:
Deprecated. Use setSeriesItemLabelPosition.
But this method doesn't exists in CategoryItemRenderer!
Can you tell me where it is?
Many thanks,
Jeroen
method setSeriesItemLabelAnchor(int, org.jfree.chart.renderer.ItemLabelAnchor) in interface org.jfree.chart.renderer.CategoryItemRenderer has been deprecated at line 1257, column 51
in the documentation the replacement for the method is this:
Deprecated. Use setSeriesItemLabelPosition.
But this method doesn't exists in CategoryItemRenderer!
Can you tell me where it is?
Many thanks,
Jeroen
updating jfreechart 0.9.10 -> 0.9.16: error with Licences
hello,
I have updated from JFreeChart 0.9.10 to 0.9.16 and so
I upgraded JCommon from 0.8.5 to 0.9.1
problem is that, with creation of a new Gantt chart I get an error (with running the application, not with compiling it)
error with Stacktrace:
java.lang.NoSuchMethodError: org.jfree.ui.about.Licences.getInstance()Lorg/jfree/ui/about/Licences;
at org.jfree.chart.JFreeChartInfo.<init>(Unknown Source)
at org.jfree.chart.JFreeChart.<clinit>(Unknown Source)
at org.jfree.chart.ChartFactory.createGanttChart(Unknown Source)
at application.MainFrame.<init>(MainFrame.java:441)
at application.ABS.<init>(ABS.java:54)
at application.ABS.main(ABS.java:171)
Do you know what causes this?
thanks for your help in advance, and thanks for helping me with my previous upgrading problem,
Jeroen
I have updated from JFreeChart 0.9.10 to 0.9.16 and so
I upgraded JCommon from 0.8.5 to 0.9.1
problem is that, with creation of a new Gantt chart I get an error (with running the application, not with compiling it)
error with Stacktrace:
java.lang.NoSuchMethodError: org.jfree.ui.about.Licences.getInstance()Lorg/jfree/ui/about/Licences;
at org.jfree.chart.JFreeChartInfo.<init>(Unknown Source)
at org.jfree.chart.JFreeChart.<clinit>(Unknown Source)
at org.jfree.chart.ChartFactory.createGanttChart(Unknown Source)
at application.MainFrame.<init>(MainFrame.java:441)
at application.ABS.<init>(ABS.java:54)
at application.ABS.main(ABS.java:171)
Do you know what causes this?
thanks for your help in advance, and thanks for helping me with my previous upgrading problem,
Jeroen
Two Questions
When I shrink my XYPlots down to a very small size (e.g., 6-up on 2/3rds of a 20" monitor), the titles do not scale down proportionallyto the rest of the plot, so I get titles that "run off the edges" of the plots. Is there a way to fix this? (I'm using version 0.9.15). I can e-mail a screenshot if you would like to see what I am refering too.
Also, I have some users that want to be able to zoom into a specific area area of interest on a plot (XYPlot) by clicking the mouse in the upper left of the area of interest dragging the mouse (engaged) to the lower right of the area of interest and then releasing the mouse. At the release of the mouse button they want the plot to zoom (replot) so that the area of interest fills the plot window. Can this be done?
Thanks for your time.
John
Also, I have some users that want to be able to zoom into a specific area area of interest on a plot (XYPlot) by clicking the mouse in the upper left of the area of interest dragging the mouse (engaged) to the lower right of the area of interest and then releasing the mouse. At the release of the mouse button they want the plot to zoom (replot) so that the area of interest fills the plot window. Can this be done?
Thanks for your time.
John