BUG(?) Having only one TimeAllocation does not show

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Gin

BUG(?) Having only one TimeAllocation does not show

Post by Gin » Fri Jun 14, 2002 2:09 pm

Hi

First of all want to praise and congratulate you on a job well done on this JFree Chart and releasing a new version in such short time. I don't know how you do it!

I tried out the new version. I'm happy to say that the Gantt chart isn't cut anymore. The end time allocations show up nicely.

But I noticed that when there is only one time allocation, the gantt chart does not display the series. The titles show but there is no bar whatsoever. I'm left with a blank chart.

I tested this with my own code, and using the gantt demo that you have provided.

Hope this help. Keep up the good work!

Gin

Re: BUG(?) Having only one TimeAllocation does not show

Post by Gin » Sat Jun 15, 2002 3:45 pm

I think I used the wrong terms in describing the bug(?) I found. Let's just say that each activity, no matter how many bars are there, is a "time series" in the gantt chart. When there are 2 or more time series, the gantt chart works alright. If there is only one time series nothing shows.

Hope I was clear on that. If there is any need for clarification or help, please let me know, I'm willing to help!

Thanks!

David Gilbert

Re: BUG(?) Having only one TimeAllocation does not show

Post by David Gilbert » Tue Jun 18, 2002 4:54 pm

There was a problem in the drawCategoryItem method of the HorizontalIntervalBarRenderer class, a divide by zero when there is only one category. This has been fixed and the change committed to CVS on SourceForge.

Regards,

DG.

Locked