diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-09-24 14:43:04 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-09-24 14:43:04 +0200 |
commit | f115fda61324a6525eae27164d02d0a215d68b5d (patch) | |
tree | dd92e99078723564509b870af4738543928454b5 /static/js | |
parent | c6f4dd24adee00828f0b54cf99fb3c51302c0c9c (diff) | |
download | kosten-f115fda61324a6525eae27164d02d0a215d68b5d.tar.gz kosten-f115fda61324a6525eae27164d02d0a215d68b5d.tar.bz2 kosten-f115fda61324a6525eae27164d02d0a215d68b5d.zip |
Better pie formatting
Diffstat (limited to 'static/js')
-rw-r--r-- | static/js/kosten.js | 7 | ||||
-rw-r--r-- | static/js/kosten.ls | 5 |
2 files changed, 7 insertions, 5 deletions
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 ] ] |