X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/69dcdf06c711cabe6f4688f046c406131d475271..e19d429d019f88828333d9a306b2b323aacef29e:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index b2e5a32..e4bd8d6 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -60,6 +60,12 @@ function dayschart(element, title, days, xtickformat) { size: { width: document.getElementById(element).parentElement.clientWidth * 80 / 100 }, + onresized: function () { + chart.resize({ + width: document.getElementById(element).parentElement.clientWidth * 80 / 100 + }); + // chart.flush(); + }, transition: { duration: null },