Browse Source

Adds an extra class (axis) to horizontal guides if the label is "0"

pull/147/head
James Dominy 10 years ago
parent
commit
a0979befd2
  1. 3
      pygal/graph/graph.py

3
pygal/graph/graph.py

@ -229,7 +229,8 @@ class Graph(BaseGraph):
self.svg.node(
guides, 'path',
d='M%f %f h%f' % (0, y, self.view.width),
class_='%s%sline' % (
class_='%s%s%sline' % (
'axis ' if label == "0" else '',
'major ' if major else '',
'guide ' if position != 0 else ''))
text = self.svg.node(

Loading…
Cancel
Save