From a856665824ece73a050cc1e316d27c06e510954e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 30 Mar 2011 21:27:19 +0900 Subject: [PATCH] give the pie a background again --- anki/graphs.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/anki/graphs.py b/anki/graphs.py index d385684de..3364e11e2 100644 --- a/anki/graphs.py +++ b/anki/graphs.py @@ -46,7 +46,7 @@ class Graphs(object): h1 { margin-bottom: 0; margin-top: 1em; } body { font-size: 14px; } table * { font-size: 14px; } -.pielabel { text-align:center; padding:2px; color:white; } +.pielabel { text-align:center; padding:0px; color:white; } """ @@ -446,8 +446,12 @@ from cards where 1 %s""" % self._limit()) stroke=dict(color="#fff", width=5), label=dict( show=True, - radius=0.7, - threshold=0.01)) + radius=0.8, + threshold=0.01, + background=dict( + opacity=0.5, + color="#000" + ))) #conf['legend'] = dict(show=False) return (