summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2016-05-01 16:08:14 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2016-05-01 16:08:14 +0200
commit3c9a2a34d44aefbcd6787f825acd5a0167181e24 (patch)
tree9dfb641bac44aac3f063b24010d540513c9a1d5b
parent9771a7352e0eafb8ed011f1bee98a537e23ebaa5 (diff)
downloadkosten-3c9a2a34d44aefbcd6787f825acd5a0167181e24.tar.gz
kosten-3c9a2a34d44aefbcd6787f825acd5a0167181e24.tar.bz2
kosten-3c9a2a34d44aefbcd6787f825acd5a0167181e24.zip
Fix stat-chart layout
-rw-r--r--static/js/kosten.js18
-rw-r--r--static/js/kosten.ls12
2 files changed, 19 insertions, 11 deletions
diff --git a/static/js/kosten.js b/static/js/kosten.js
index 936e38c..7d6582c 100644
--- a/static/js/kosten.js
+++ b/static/js/kosten.js
@@ -26,7 +26,8 @@
weekdays: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
rangeSelectorFrom: 'von',
rangeSelectorTo: 'bis',
- rangeSelectorZoom: null
+ rangeSelectorZoom: null,
+ numericSymbols: null
}
});
};
@@ -152,9 +153,6 @@
var x$;
x$ = $(this);
x$.highcharts('StockChart', {
- title: {
- text: null
- },
credits: {
enabled: false
},
@@ -169,7 +167,11 @@
},
plotOptions: {
series: {
- stacking: 'normal'
+ stacking: 'normal',
+ marker: {
+ enabled: false,
+ radius: 2
+ }
}
},
chart: {
@@ -192,7 +194,10 @@
},
yAxis: {
reversedStacks: false,
- tickInterval: 250
+ labels: {
+ x: 5,
+ align: 'left'
+ }
},
series: [
{
@@ -211,7 +216,6 @@
}
],
tooltip: {
- shared: true,
formatter: function(){
var header, body, p, footer;
header = "<span style=\"font-size: 10px\">" + df('%B %Y', this.x) + "</span><br/>";
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 ''