diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2016-05-01 16:08:14 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2016-05-01 16:08:14 +0200 |
commit | 3c9a2a34d44aefbcd6787f825acd5a0167181e24 (patch) | |
tree | 9dfb641bac44aac3f063b24010d540513c9a1d5b /static/js/kosten.ls | |
parent | 9771a7352e0eafb8ed011f1bee98a537e23ebaa5 (diff) | |
download | kosten-3c9a2a34d44aefbcd6787f825acd5a0167181e24.tar.gz kosten-3c9a2a34d44aefbcd6787f825acd5a0167181e24.tar.bz2 kosten-3c9a2a34d44aefbcd6787f825acd5a0167181e24.zip |
Fix stat-chart layout
Diffstat (limited to '')
-rw-r--r-- | static/js/kosten.ls | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/static/js/kosten.ls b/static/js/kosten.ls index 699fcd4..ea433a4 100644 --- a/static/js/kosten.ls +++ b/static/js/kosten.ls @@ -25,6 +25,7 @@ set-lang = !-> range-selector-from: \von range-selector-to: \bis range-selector-zoom: null + numeric-symbols: null extend-date = (input) !-> if input.val! is //^ @@ -125,8 +126,7 @@ export statJS = jq !-> <-! $ \.stats .each $ @ - ..highcharts 'StockChart' do - title: text: null + ..highcharts \StockChart do credits: enabled: false range-selector: buttons: [] @@ -141,6 +141,9 @@ export statJS = jq !-> plot-options: series: stacking: \normal + marker: + enabled: false + radius: 2 chart: events: click: !-> @@ -153,7 +156,9 @@ export statJS = jq !-> min-range: month y-axis: reversed-stacks: false - tick-interval: 250 + labels: + x: 5 + align: \left series: [ # const * data: ..data \consts @@ -166,7 +171,6 @@ export statJS = jq !-> step: \left ] tooltip: - shared: true formatter: -> header = "<span style=\"font-size: 10px\">#{df '%B %Y' @x}</span><br/>" body = ["#{p.series.name}: <b>#{p.point.y} €</b><br/>" for p in @points] .join '' |