mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add code to keep the chart dynamically resizable when exported
This commit is contained in:
parent
85e9c64b13
commit
feee7ca6a4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user