x-ticks: don't show seconds, and rotate labels (multiline doesn't seem to work)
authorgregor herrmann <gregor@toastfreeware.priv.at>
Sat, 2 Jun 2018 00:34:40 +0000 (02:34 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Sat, 2 Jun 2018 00:34:40 +0000 (02:34 +0200)
web/static/seepark_web.js

index 8f09465a1ceb69a8360e36ae2d73f7054e6e40fc..85a10d3afc1bc1b2ce85605f3bf76bd25bb3b70d 100644 (file)
@@ -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: {