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.
Recomputing CombinedRangeCategoryPlot
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Recomputing CombinedRangeCategoryPlot
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Re: Recomputing CombinedRangeCategoryPlot
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.