Elger van Boxtel Report post Posted September 16, 2013 Hi, Is is possible to control the height of the Gantt chart dynamically? I'm using the Gantt chart with pagination, so one time I have multiple processes to show and the other time I have just 1 process to show. In JavaScript I create the Gantt chart as follows: var chart = new FusionCharts( "Gantt", "ganttID", "100%", "100%"); // height = 100% When I have 12 processes (rows) then the chart will render at 611px, when I select only one row it will not alter the height. See attached screenshots to clarify my problem. Is it possible to let the chart determine it's own height depending on it's content? So something like height: auto... P.s. I know I can use some callbacks of the chart (like BeforeDataUpdate) where I can determine the number of rows myself and adjust the height of the chart manually. But I would like that to be some default functionality supported by FusionCharts... Share this post Link to post Share on other sites
Haritha Report post Posted October 29, 2013 Hi, Apologies for delay. It is not possible to let the chart determine it's own height depending on it's content, as of now. As you said, you need to use your mechanism to determine the number of rows and adjust the height of the chart before rendering the chart. Hope this helps. Share this post Link to post Share on other sites