Browse Source

Bump 1.13.0

pull/8/head
Florian Mounier 12 years ago
parent
commit
8676150aac
  1. 2
      pygal/__init__.py
  2. 5
      pygal/graph/graph.py
  3. 7
      pygal/graph/xy.py

2
pygal/__init__.py

@ -21,7 +21,7 @@ Pygal - A python svg graph plotting library
"""
__version__ = '0.12.2'
__version__ = '0.13.0'
import sys
from pygal.config import Config
from pygal.ghost import Ghost

5
pygal/graph/graph.py

@ -101,8 +101,7 @@ class Graph(BaseGraph):
a = self.svg.node(self.nodes['tooltip'], 'a')
self.svg.node(a, 'rect',
id="tooltip-box",
rx=5, ry=5, width=0, height=0
)
rx=5, ry=5, width=0, height=0)
text = self.svg.node(a, 'text', class_='text')
self.svg.node(text, 'tspan', class_='label')
self.svg.node(text, 'tspan', class_='value')
@ -207,7 +206,7 @@ class Graph(BaseGraph):
if not truncation:
available_space = self.view.width / cols - (
self.legend_box_size + 5)
truncation = revesre_text_len(
truncation = reverse_text_len(
available_space, self.legend_font_size)
else:
x = self.margin.left + self.view.width + 10

7
pygal/graph/xy.py

@ -64,6 +64,13 @@ class XY(Line):
yvals = [val[1]
for serie in self.series
for val in serie.interpolated]
if xvals:
xmin = min(xvals)
xmax = max(xvals)
rng = (xmax - xmin)
else:
rng = None
if rng:
self._box.xmin, self._box.xmax = min(xvals), max(xvals)
self._box.ymin, self._box.ymax = min(yvals), max(yvals)

Loading…
Cancel
Save