From: gregor herrmann Date: Sat, 2 Jun 2018 00:34:40 +0000 (+0200) Subject: x-ticks: don't show seconds, and rotate labels (multiline doesn't seem to work) X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/commitdiff_plain/e90ddef11ee4e367df934a48012eadec3eefcbc1?ds=inline x-ticks: don't show seconds, and rotate labels (multiline doesn't seem to work) --- diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 8f09465..85a10d3 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -20,8 +20,10 @@ var chart = c3.generate({ x: { type: 'timeseries', tick: { - format: '%Y-%m-%d %H:%M:%S', - fit: false + format: '%Y-%m-%d %H:%M', + fit: false, + multiline: true, // broken? so → + rotate: -90 } }, y: {