Browse Source

Fixed style rendering in Pie chart

pull/8/head
Jason R. Coombs 14 years ago
parent
commit
57f29bc86e
  1. 10
      readme.txt
  2. 6
      svg/charts/pie.py

10
readme.txt

@ -16,8 +16,7 @@ in SVG, originally based on the SVG::Graph Ruby package by Sean E. Russel.
<https://py-svg.svn.sourceforge.net/svnroot/py-svg/trunk/docs/license.txt>`_.
You can install it with ``easy_install svg.charts``, or from the
`subversion repository
<https://py-svg.svn.sourceforge.net/svnroot/py-svg/trunk#egg=svg.charts-dev>`_ with
`mercurial repository source <http://py-svg.hg.sourceforge.net:8000/hgroot/py-svg/py-svg#egg=svg.charts-dev>`_ 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
~~~~~

6
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

Loading…
Cancel
Save