diff --git a/pygal/bar.py b/pygal/bar.py index 08b7cf1..0df6ac7 100644 --- a/pygal/bar.py +++ b/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() diff --git a/pygal/style.py b/pygal/style.py index 8570f62..8bd1368 100644 --- a/pygal/style.py +++ b/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)',