JFreeChart 0.9.16...

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

JFreeChart 0.9.16...

Post by david.gilbert » Fri Jan 09, 2004 6:33 pm

...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.
Last edited by david.gilbert on Fri Mar 26, 2004 4:28 pm, edited 1 time in total.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

nikster
Posts: 46
Joined: Wed Nov 19, 2003 4:34 pm

is there a list of bugfixes somewhere?

Post by nikster » Wed Jan 14, 2004 12:36 pm

is there a list of bugfixes somewhere?

thanks,

nik

John.Haines

Developer's Guide

Post by John.Haines » Wed Jan 14, 2004 7:36 pm

Is the Version 0.9.6 of Developer's Guide still accurate for use with Version 0.9.16 of the code?

Steve
Posts: 53
Joined: Mon Dec 22, 2003 8:29 pm

Post by Steve » Wed Jan 14, 2004 8:18 pm

There's been a bunch of changes since 0.9.6, so I'd assume not, but there might still be useful info in it.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Developer's Guide

Post by david.gilbert » Wed Jan 14, 2004 9:20 pm

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?
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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

david.gilbert
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?

Post by david.gilbert » Wed Jan 14, 2004 9:24 pm

nikster wrote: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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

W

When a stable version (1?) will be published please?

Post by W » Mon Jan 19, 2004 11:10 pm

When a stable version (1?) will be published please?

david.gilbert
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?

Post by david.gilbert » Tue Jan 20, 2004 10:14 pm

W wrote:When a stable version (1?) will be published please?
http://www.jfree.org/phpBB2/viewtopic.php?t=5183
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Jey

Could not find Source code for Servlet Demo!

Post by Jey » Thu Jan 22, 2004 8:52 pm

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

pedro.mendoza

Re: JFreeChart 0.9.16... erroneous behavior while updating

Post by pedro.mendoza » Thu Jan 29, 2004 5:03 pm

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Feb 02, 2004 4:57 pm

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.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Guest

Post by Guest » Thu Feb 05, 2004 11:42 am

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

heijho01
Posts: 12
Joined: Thu Jul 17, 2003 2:16 pm

updating jfreechart 0.9.10 -> 0.9.16: error with Licences

Post by heijho01 » Wed Feb 11, 2004 9:33 am

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

John Haines

Two Questions

Post by John Haines » Thu Mar 25, 2004 1:57 am

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

Locked