diff --git a/src/report/report-system/html-barchart.scm b/src/report/report-system/html-barchart.scm index 39e543ce9a..9284c31b52 100644 --- a/src/report/report-system/html-barchart.scm +++ b/src/report/report-system/html-barchart.scm @@ -514,6 +514,15 @@ var plot = $.jqplot('")(push chart-id)(push"', data, options); var int_chart_width = document.getElementById(\"")(push chart-id)(push"\").getElementsByClassName(\"jqplot-zoom-canvas\")[0].width; plot.axes.xaxis.ticks = getVisualTicks(int_chart_width); plot.replot(); +var timer; +$(window).resize(function () { + clearTimeout(timer); + timer = setTimeout(function () { + plot.replot({resetAxes: true }); + plot.axes.xaxis.ticks = getVisualTicks(int_chart_width); + plot.replot(); + }, 100); + }); }); function formatTooltip(str, seriesIndex, pointIndex) {