X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/6d184c0177af1000cac5ff6c4edf6a754f827577..e19d429d019f88828333d9a306b2b323aacef29e:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 75c362b..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 }, @@ -94,6 +100,7 @@ function dayschart(element, title, days, xtickformat) { }, zoom: { enabled: true, + /* onzoomend: function (domain) { // UNIX epoch var start = domain[0].getTime()/1000; @@ -106,6 +113,7 @@ function dayschart(element, title, days, xtickformat) { loaddays(this, element, days); // this = chart } } + */ }, tooltip: { format: {