Recomputing CombinedRangeCategoryPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mrbcuda
Posts: 3
Joined: Sat Sep 19, 2009 10:16 pm
antibot: No, of course not.

Recomputing CombinedRangeCategoryPlot

Post by mrbcuda » Mon Oct 05, 2009 2:22 am

API question. I'm using a CombinedRangeCategoryPlot with two Gantt charts. The category labels for all series are clipped by the frame. In my example using a horizontal orientation the labels are clipped on the left hand side. Is there a way to make the chart recompute and refresh the area allocated to the labels? I don't see anything about this in the manual.

This clipping does not happen when using a single Gantt chart without the combined range axis.

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

Re: Recomputing CombinedRangeCategoryPlot

Post by david.gilbert » Mon Oct 05, 2009 9:33 pm

It sounds like a bug. Can you post a small self-contained demo that reproduces it, with JFreeChart and JRE version numbers if you think they are significant?
David Gilbert
JFreeChart Project Leader

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

mrbcuda
Posts: 3
Joined: Sat Sep 19, 2009 10:16 pm
antibot: No, of course not.

Re: Recomputing CombinedRangeCategoryPlot

Post by mrbcuda » Mon Oct 12, 2009 5:33 pm

A bit more information about the scenario. It seems the initial rendering is okay and computes the axis space correctly; in my case the initial plot has no data. When the data sets and categories change (owing to a new selection in my case) the resulting axis space does not seem to reflect the new category labels but rather the original labels. I tried removing the old plots and adding new plots to the same chart, and forcing redraws, without success. I was able to produce the desired result by creating a completely new chart (negligible performance penalty), so the issue is resolved for my needs. I'd hesitate to call it a bug, but I will note that this behavior is a bit different from other charts. Using JRE 1.5 and JFreeChart 1.0.13.

Locked