diff options
Diffstat (limited to 'static')
-rw-r--r-- | static/css/style.css | 2 | ||||
-rw-r--r-- | static/js/kosten.js | 7 | ||||
-rw-r--r-- | static/js/kosten.ls | 5 |
3 files changed, 8 insertions, 6 deletions
diff --git a/static/css/style.css b/static/css/style.css index 99a5e06..4f3c435 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -115,7 +115,7 @@ ul.arrow { .pie { display: inline-block; width: 410px; - height: 250px; + height: 150px; } div.month_exp { diff --git a/static/js/kosten.js b/static/js/kosten.js index 279f351..627fbdf 100644 --- a/static/js/kosten.js +++ b/static/js/kosten.js @@ -47,17 +47,18 @@ backgroundColor: null, plotBorderWidth: null, plotShadow: false, - margin: [0, 0, 0, 0] + spacingTop: 0 }, credits: { enabled: false }, series: [{ type: 'pie', - size: '50%', + size: '70%', allowPointSelect: true, dataLabels: { - color: x$.css('color') + color: x$.css('color'), + distance: 20 }, data: (function(){ var ref$, results$ = []; diff --git a/static/js/kosten.ls b/static/js/kosten.ls index fa96f4a..e3be0b8 100644 --- a/static/js/kosten.ls +++ b/static/js/kosten.ls @@ -37,14 +37,15 @@ export showJS = jq -> backgroundColor: null plotBorderWidth: null plotShadow: off - margin: [0,0,0,0] + spacingTop: 0 credits: enabled: false series: [ type: \pie - size: \50% + size: \70% allowPointSelect: true dataLabels: color: ..css \color + distance: 20 data: [ {name: if v>0 then k else '' , y: v, visible: v > 0} \ for k,v of ..data \pie ] ] |