Remove Blank Space Below And Above Google Graph?
I have used google graph on a particular page after few contents. But as the number of rows(data) in google graph increases, space between content and graph increases. I have tried
Solution 1:
I expect that your problem is here:
chartHeight =jsonData.length ;
jsonData
is a string, so you are setting the height of the chart to be equal to the number of characters in the string. Try setting the height based on the number of rows of data in the DataTable instead:
var data =new google.visualization.DataTable(jsonData);
options.height = data.getNumberOfRows() *<height perrow>+<offsetfor chart header and footer>;
Post a Comment for "Remove Blank Space Below And Above Google Graph?"