Browse Source

Pie graph: Do not show static values on slices with small angles.

The value of 0.3 radians is arbitrary and could be tweaked a bit.
pull/12/head
Simon Sapin 12 years ago
parent
commit
e2448601b3
  1. 1
      pygal/svg.py

1
pygal/svg.py

@ -181,6 +181,7 @@ class Svg(object):
(radius + small_radius) / 2, start_angle + angle / 2))
self.graph._tooltip_data(node, val, x, y, classes="centered")
if angle >= 0.3: # 0.3 radians is about 17 degrees
self.graph._static_value(serie_node, val, x, y)
def pre_render(self):

Loading…
Cancel
Save