Browse Source

Fix bar label display

pull/8/head
Florian Mounier 13 years ago
parent
commit
c149b1cb91
  1. 3
      pygal/bar.py
  2. 2
      pygal/style.py

3
pygal/bar.py

@ -16,9 +16,8 @@ class Bar(BaseGraph):
x_ranges = zip(x_pos, x_pos[1:])
x_labels = self.x_labels and zip(self.x_labels, [
sum(x_range) / 2 for x_range in x_ranges])
sum(x_range) / 2. for x_range in x_ranges])
y_labels = zip(map(str, y_pos), y_pos)
self._compute_margin(x_labels, y_labels)
self.svg.set_view(ymin, ymax)
self.svg.make_graph()

2
pygal/style.py

@ -29,7 +29,7 @@ class Style(object):
DefaultStyle = Style()
LightStyle = Style(
background='transparent',
background='white',
plot_background='rgba(0, 0, 255, 0.1)',
foreground='rgba(0, 0, 0, 0.7)',
foreground_light='rgba(0, 0, 0, 0.9)',

Loading…
Cancel
Save