Search found 13 matches

by hookumsnivy
Mon Jul 30, 2007 9:20 pm
Forum: JFreeChart
Topic: Exctracting and showing only Legend
Replies: 5
Views: 9287

There's another way to do it that I am currently working on: Create a new implementation of the Plot class that does nothing in the draw methods (I didn't include the code). This will obviously prevent the plot from being drawn. Creating the Legend Only chart is then very straightforward: JFreeChart...
by hookumsnivy
Thu May 03, 2007 4:38 pm
Forum: JFreeChart
Topic: Bug in DateAxis?
Replies: 6
Views: 7616

Thanks for taking a look at it. I obviously missed some test cases. I didn't take into account that the date passed in would be at the end of the month while the tick mark position would be at the beginning. In my code, the resulting date would actually be 2 dates prior to the passed in date in the ...
by hookumsnivy
Wed May 02, 2007 7:17 pm
Forum: JFreeChart
Topic: Bug in DateAxis?
Replies: 6
Views: 7616

Bug in DateAxis?

David, please correct me if I am wrong: The method previousStandardDate is supposed to do the following: Given a date and a tick unit, return a date that is unit.getCount() units (month, day, hour, etc) before the date. It should also take into account the tick mark position. So for instance if you ...
by hookumsnivy
Tue May 01, 2007 5:14 pm
Forum: JFreeChart
Topic: Quarterly Stacked Area Chart
Replies: 1
Views: 2986

To simplify things:

The Y value at the origin does not have a tick label, and every label afterwards is 1 off.
ie. The first label should be at the origin, the 2nd label should be where the first label is, and so on.

Any help would be appreciated.
by hookumsnivy
Mon Apr 30, 2007 10:33 pm
Forum: JFreeChart
Topic: Quarterly Stacked Area Chart
Replies: 1
Views: 2986

Quarterly Stacked Area Chart

I'm trying to create a Stacked Area Chart over quarterly periods. I'm using a TimeTableXYDataset and I create Quarter objects based on the following dates: March 31, 2004 June 30, 2004 September 30, 2004 December 31, 2004 March 31, 2005 June 30, 2005 September 30, 2005 December 31, 2005 March 31, 20...
by hookumsnivy
Thu Nov 16, 2006 11:23 pm
Forum: JFreeChart
Topic: Overlapping symbols in scatter chart
Replies: 6
Views: 8888

This is an abstract class and would need a subclass that implements the fixOverlap method. This way you deal with the overlapping shapes any way you want. One thing you can do is make the shape translucent. Unfortunately, I had to copy the code from XYLineAndShapeRenderer to do what I wanted. As gre...
by hookumsnivy
Tue Oct 17, 2006 10:00 pm
Forum: JFreeChart
Topic: Legend Superscripts
Replies: 5
Views: 7774

Thanks for the info. Unfortunately this doesn't work for me so I'm back at square 1. I'm looking into other options. It might be interesting to see if I can change the code to use JLabels to display the text which would then allow me to use basic HTML. I looked into AttributedString, but it is buggy...
by hookumsnivy
Tue Oct 17, 2006 7:25 pm
Forum: JFreeChart
Topic: Legend Superscripts
Replies: 5
Views: 7774

There are 2 problems here:

1. Only certain fonts will work (easy enough to use a different font).
2. The superscript numbers 1-3 look significantly smaller than 4-9,0 in SansSerif and Serif.
by hookumsnivy
Tue Oct 17, 2006 5:14 pm
Forum: JFreeChart
Topic: Legend Superscripts
Replies: 5
Views: 7774

Thanks.

Doesn't get much easier than that since I'm only using numbers in this case.
by hookumsnivy
Mon Oct 16, 2006 9:21 pm
Forum: JFreeChart
Topic: Legend Superscripts
Replies: 5
Views: 7774

Legend Superscripts

I have a need to have some text formatted as a superscript in a legend label. Basically I want to do this for footnoting purposes.
Is this currently supported?
If not, how would I go about implementing this?
If it makes it easier, the superscript text could be at the end of the label.
by hookumsnivy
Wed Oct 11, 2006 5:01 pm
Forum: JFreeChart
Topic: Overlapping symbols in scatter chart
Replies: 6
Views: 8888

Thanks, I was able to do a basic implementation (when I fill it out a bit more, I'll post some code). If I keep track of the shapes drawn, then I can easily determine if they overlap (at least if their rectangular bounds overlap). I'm not worried about lines right now (that's for another day), so it...
by hookumsnivy
Mon Oct 09, 2006 7:40 pm
Forum: JFreeChart
Topic: Overlapping symbols in scatter chart
Replies: 6
Views: 8888

Overlapping symbols in scatter chart

I would like to take special action if 2 symbols overlap. For example, if the same exact point appears twice, I would like to make the 2nd symbol translucent or the first symbol twice the normal size. Basically I want both symbols to appear even though they have the same coordinates. How would I go ...
by hookumsnivy
Mon Aug 14, 2006 9:17 pm
Forum: JFreeChart
Topic: export chart as PDF,SVG or EPS
Replies: 14
Views: 42450

When exporting to SVG don't forget this VERY important line:

Code: Select all

svgGenerator.setSVGCanvasSize(new Dimension(width, height));
Otherwise renderers will not know the size of the image. It will be drawn to the correct rectangle, but the image will not have a correct default size.