Search found 11 matches

by gandhi
Wed Feb 02, 2005 11:26 pm
Forum: JFreeChart
Topic: (Barchart) labels get cut off even if there's enough space
Replies: 1
Views: 3198

I had similar problems with a bar chart, plot orientation vertical (that is, the bars extending from the bottom to the top). I also played around with setMaxCategoryLabelWidthRatio(float). But what I found in the documentation didn't really help me (maybe I just didn't understand or didn't look at t...
by gandhi
Wed Jan 26, 2005 9:04 pm
Forum: JFreeChart
Topic: label background color in line chart
Replies: 1
Views: 3827

No, you can't do it. Quote from the developer's guide: In the current release of JFreeChart, labels are drawn with a transparent background. You cannot set a background color for the labels, nor can you specify that a border be drawn around the labels. This may change in the future. If you definitel...
by gandhi
Thu Jan 13, 2005 4:11 pm
Forum: JFreeChart
Topic: Distorted domain axis with DateTickMarkPosition.END
Replies: 6
Views: 7249

David, I have been able to locate the part of the code that causes this error. It is in the method previousStandardDate in the DateAxis class: case(DateTickUnit.YEAR) : if (this.tickMarkPosition == DateTickMarkPosition.START) { months = 0; } else if (this.tickMarkPosition == DateTickMarkPosition.MID...
by gandhi
Wed Jan 12, 2005 1:32 pm
Forum: JFreeChart
Topic: Distorted domain axis with DateTickMarkPosition.END
Replies: 6
Views: 7249

Ok, thanks. Do you know when you will have time to look into this ?

I could also possibly do it, although I have no idea how deep into the existing code I have to go. I you have an idea where the problem be sitting this would certainly help.
by gandhi
Fri Jan 07, 2005 5:20 pm
Forum: JFreeChart
Topic: Distorted domain axis with DateTickMarkPosition.END
Replies: 6
Views: 7249

I hope the following graphs make it easier to understand. "x" is a data value for each month. "O" is a data value for december of the year (this is actually a second series using another shape that has same values like the first series but only for december, so that december values get highlighted)....
by gandhi
Fri Jan 07, 2005 4:19 pm
Forum: JFreeChart
Topic: How to create a new renderer
Replies: 2
Views: 3241

ok, thanks so far.

I will try it by looking at existing renderers. I will make notes. If this does result in something worth sharing, I will post it here.
by gandhi
Fri Jan 07, 2005 4:00 pm
Forum: JFreeChart
Topic: Distorted domain axis with DateTickMarkPosition.END
Replies: 6
Views: 7249

Distorted domain axis with DateTickMarkPosition.END

I have a linechart based on a XYDataset (TimeSeriesCollection) containing data on a per month basis. It displays fine, if I use DateTickMarkPosition.START for the domain axis tick mark position (excerpt): ... domainAxis.setTickUnit( new DateTickUnit(DateTickUnit.YEAR, 1, axisXTickLabelDateFormat) );...
by gandhi
Fri Jan 07, 2005 3:47 pm
Forum: JFreeChart
Topic: How to create a new renderer
Replies: 2
Views: 3241

How to create a new renderer

Are there some guidelines for creating a new renderer ? I didn't find anything here nor in the developer's guide.

Of course some things can be learned from the source code (like it is a good idea to extend the AbstractRenderer). But maybe there some best practice documentation on how to do this.
by gandhi
Thu Jan 06, 2005 3:41 pm
Forum: JFreeChart
Topic: Drawing lines between datapoints for two series
Replies: 0
Views: 1777

Drawing lines between datapoints for two series

I have a linechart that has two lines (denoting lowest and highest value for each category) rendered with shapes. I want to draw a simple line showing the low/high range for each common domain value, i.e. connecting each low value with its corresponding high value. I know I could use the HighLowRend...
by gandhi
Wed Nov 17, 2004 6:09 pm
Forum: JFreeChart
Topic: Classpath Problem - Urgent
Replies: 2
Views: 3396

I'm guessing, but it might help ... Try using the latest release (jfreechart-0.9.21.jar / jcommon-0.9.6.jar). It looks like you're using (new) code that expects certain classes to be found in org.jfree.data/renderer .xy instead of org.jfree.data/renderer where they have in fact been until including ...
by gandhi
Wed Nov 17, 2004 5:31 pm
Forum: JFreeChart
Topic: customizing shapes
Replies: 1
Views: 2756

You need a real shape - one that defines an outline. Two lines will not do it. This is a java.awt requirement, nothing related two JFreeChart. You can define a star like this, for example: GeneralPath shapeStar = new GeneralPath(); shapeStar.moveTo(0f, 1f); shapeStar.lineTo(3f, 3f); shapeStar.lineTo...