Thanks for watching and responding. I use Google Chart (TimeLine) to display information from a database. But in the Google Chart help system, only the installation height for the chart is indicated. While I would like to change the height of the chart depending on the number of rows that I get from the data. So I made the code:
var graph = $('#chart_timeLine').children()[0].children[0].children[1]; $(graph).css('height',graph.scrollHeight); $(graph).css('overflow-y','auto');
Now the chart does not have a vertical scrollbar, and I am satisfied. But I found that the scale bar, which shows the timeline scale, is missing. (She actually hides under the chart, and does not appear at the bottom of the chart).
So, I changed the position of the scale to absolute and set it at the bottom of the chart. Then it is ugly because it has a height of 200 pixels and the scale is at the bottom of this 200px, leaving a huge gap between my chart and the scale.
Is there a fix for this? Thanks.
source share