Browse Source

set y axis class according to show_y_guide

pull/349/head
yossisal 8 years ago committed by GitHub
parent
commit
cdcdb3aab7
  1. 4
      pygal/graph/graph.py

4
pygal/graph/graph.py

@ -230,7 +230,9 @@ class Graph(PublicApi):
if not self._y_labels or not self.show_y_labels:
return
axis = self.svg.node(self.nodes['plot'], class_="axis y")
axis = self.svg.node(self.nodes['plot'], class_="axis y%s" % (
' always_show' if self.show_y_guides else ''
))
if (0 not in [label[1] for label in self._y_labels] and
self.show_y_guides):

Loading…
Cancel
Save