From f115fda61324a6525eae27164d02d0a215d68b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 24 Sep 2013 14:43:04 +0200 Subject: Better pie formatting --- static/css/style.css | 2 +- static/js/kosten.js | 7 ++++--- static/js/kosten.ls | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'static') 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 ] ] -- cgit v1.2.3