From 57f29bc86ef31135b6218f9a25c6597efd76b49f Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 29 Mar 2011 22:36:17 -0400 Subject: [PATCH] Fixed style rendering in Pie chart --- readme.txt | 10 ++++++++-- svg/charts/pie.py | 6 ++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/readme.txt b/readme.txt index c9fc994..18cc89e 100644 --- a/readme.txt +++ b/readme.txt @@ -16,8 +16,7 @@ in SVG, originally based on the SVG::Graph Ruby package by Sean E. Russel. `_. You can install it with ``easy_install svg.charts``, or from the -`subversion repository -`_ with +`mercurial repository source `_ with ``easy_install svg.charts==dev``. Acknowledgements @@ -81,6 +80,13 @@ reporting bugs and requesting help. Patches are also welcome. Changes ------- +2.0.7 +~~~~~ + +* Fixed bug in rendering of Pie Chart styles. +* Improved testing framework. Now samples are at least generated as part + of the test suite. + 2.0.6 ~~~~~ diff --git a/svg/charts/pie.py b/svg/charts/pie.py index e1235db..7e4cd32 100644 --- a/svg/charts/pie.py +++ b/svg/charts/pie.py @@ -1,7 +1,3 @@ -#!python - -# $Id$ - import math from operator import add from lxml import etree @@ -76,6 +72,8 @@ class Pie(Graph): "The font size of the data point labels" datapoint_font_size = 12 + stylesheet_names = Graph.stylesheet_names + ['pie.css'] + def add_data(self, data_descriptor): """ Add a data set to the graph