Gantt Chart - Horizontal Scrollbar

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
POruganti
Posts: 10
Joined: Tue May 08, 2007 1:09 pm
Location: LONDON

Gantt Chart - Horizontal Scrollbar

Post by POruganti » Tue Jun 26, 2007 3:56 pm

Hi,

I am trying to create horizontal scrollbar for Gantt Chart.
I have searched the forum, but was not able to find a suitable solution for Gantt Chart - Horizontal Scrollbar.
Please give me pointers.

Thanks,
Pavani.

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

Post by david.gilbert » Wed Jun 27, 2007 9:30 am

Put the ChartPanel into a JScrollPane, then set the preferred size for the ChartPanel. This puts the whole chart inside the scrollpane which may or may not be what you want.
David Gilbert
JFreeChart Project Leader

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

POruganti
Posts: 10
Joined: Tue May 08, 2007 1:09 pm
Location: LONDON

Post by POruganti » Wed Jun 27, 2007 10:43 am

Hi David,

Thank you for your response.

But my requirement is I want to fix the date tick units to fixed values based on data and then I want horizontal scrolbar so that the user can scroll to view the entire task details in the Gantt Chart.

Please suggest me how to achieve this.

Thanks,
Pavani Oruganti.

Locked