diff --git a/tests/performance/api/graph.template.html b/tests/performance/api/graph.template.html index a69c5936328..7f54796ba12 100644 --- a/tests/performance/api/graph.template.html +++ b/tests/performance/api/graph.template.html @@ -119,6 +119,14 @@ var chart = new google.charts.Bar(chart_div); chart.draw(transposeDataTable(data), options); } + + /* Auto scale chart elements to display full SVG. */ + google.visualization.events.addListener(chart, 'ready', function () { + var allSvg = document.getElementsByTagName("svg"); + for (var index = 0; index < allSvg.length; index++) { + allSvg[index].setAttribute('height', allSvg[index].getBBox().height); + } + }); } }