JFreeChart 0.9.14

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.14

Post by david.gilbert » Mon Nov 17, 2003 4:32 pm

A new version of JFreeChart has been posted. Changes in this release include:

- implemented zooming for the FastScatterPlot class;
- added item label support for stacked bar charts, and new fall back options for item labels that don't fit within bars;
- modified the CategoryAxis class to allow additional options for the alignment and rotation of category labels;
- addition of the AxisState class, used in the drawing of axes to eliminate a bug when multiple threads draw the same axis simultaneously;
- provided additional attributes in the DateTickUnit class to improve labelling on a segmented DateAxis;
- added support for GradientPaint in bar charts;
- updated the PNGEncoder;
- fixes for tick label positioning on axes;
- various Javadoc updates;
- numerous bug fixes;

You can download the code from the project page at SourceForge:

http://sourceforge.net/projects/jfreechart
Last edited by david.gilbert on Sun Nov 30, 2003 9:32 pm, edited 1 time in total.

Matthias
Posts: 42
Joined: Fri Apr 18, 2003 9:49 am
Location: Germany

SymbolicAxis broken in release 0.9.14

Post by Matthias » Tue Nov 18, 2003 5:18 pm

SymbolicAxis seems to be broken totally in release 0.9.14; it does not draw labels any more :( Use any of the corresponding standard demos to see that. I added this remark in sourceforge too: http://sourceforge.net/tracker/index.ph ... tid=115494

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 » Tue Nov 18, 2003 6:02 pm

It is fixed now and committed to CVS for the 0.9.15 release. You just need to change the refreshTicks(...) method as follows:

Code: Select all

    /**
     * Calculates the positions of the tick labels for the axis, storing the results in the
     * tick label list (ready for drawing).
     *
     * @param g2  the graphics device.
     * @param cursor  the cursor.
     * @param plotArea  the area in which the plot (inlcuding axes) should be drawn.
     * @param dataArea  the area in which the data should be drawn.
     * @param edge  the location of the axis.
     * 
     * @return A list of ticks.
     */
    public List refreshTicks(Graphics2D g2, 
                             AxisState state,
                             Rectangle2D plotArea, 
                             Rectangle2D dataArea,
                             RectangleEdge edge) {

        List ticks = null;
        if (RectangleEdge.isTopOrBottom(edge)) {
            ticks = refreshTicksHorizontal(g2, state.getCursor(), plotArea, dataArea, edge);
        }
        else if (RectangleEdge.isLeftOrRight(edge)) {
            ticks = refreshTicksVertical(g2, state.getCursor(), plotArea, dataArea, edge);
        }
        return ticks;

    }
Sorry for the inconvenience.
David Gilbert
JFreeChart Project Leader

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

Guest

Post by Guest » Thu Nov 20, 2003 11:11 am

I used...

java -cp jfreechart-0.9.14.jar;jfreechart-0.9.14-demo.jar org.jfree.chart.demo.Pie3DChartDemo1

...and was expecting to see the 3D pie chart like the first one on the samples page (http://www.jfree.org/jfreechart/samples.html).


But it has no depth...is this a bug or how can you give them depth?


Thanks.

dbasten
Posts: 52
Joined: Fri Jul 25, 2003 4:29 pm

Post by dbasten » Thu Nov 20, 2003 10:44 pm


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

Post by nikster » Fri Nov 21, 2003 12:56 pm

minor quibble: JavaDoc in 14 is broken.

the file URLGenerator is the problem. need to comment it back in (or delete it). then everyhting is happy.

/**
* Base interface for URL generators.
*
* @author Richard Atkinson
*/
//public interface URLGenerator {

//}

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 » Fri Nov 21, 2003 1:02 pm

Thanks for the report, it has been removed for the 0.9.15 release.
David Gilbert
JFreeChart Project Leader

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

kajtzu

Re: JFreeChart 0.9.14

Post by kajtzu » Mon Nov 24, 2003 12:03 pm

jfreechart-0.9.14.tar.gz seems to be corrupt from the jfree.org site and missing from the sourceforge mirrors. The .zip file works well, though.

Locked