-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gantt chart bars are drawn incorrectly when orientation of plot is vertical #235
Comments
I see the same effect with v1.5.3. For reference,
|
Does this fix it for you? Index: src/main/java/org/jfree/chart/renderer/category/GanttRenderer.java
|
Thanks for the feedback, I committed that fix for the next release. |
Confirmed using latest JFreeChart 1.5.4-SNAPSHOT. |
Using this example (or any other for that matter)
https://www.boraji.com/jfreechart-gantt-chart-example
add this line after the
JFreeChart chart = ChartFactory.createGanttChart
callchart.getPlot().setOrientation(PlotOrientation.VERTICAL)
You'll see that the first two bars (Requirement bars) are the same size and touching the axis, rather than the Actual bar being smaller than the Estimated bar, and the third bar (Design Actual) is very wrong, touching the axis and shorter than it should be. And others are wrong as well.
Horizontal:
Vertical:
This is a problem in both 1.0 and 1.5 versions of JFree. Hoping someone can point me to a fix in the renderer I can do myself before the fix is in an offical JFree release.
Thanks!
Dan
The text was updated successfully, but these errors were encountered: