Browse Source

Differentiates title style classses

The main plot title is given an additional class (plot_title) to
differentiate it from from the axis titles, so the it could for example
be styled in boldface using CSS.
pull/102/head
James Dominy 11 years ago
parent
commit
2b11e16466
  1. 2
      pygal/graph/graph.py

2
pygal/graph/graph.py

@ -404,7 +404,7 @@ class Graph(BaseGraph):
if self.title:
for i, title_line in enumerate(self.title, 1):
self.svg.node(
self.nodes['title'], 'text', class_='title',
self.nodes['title'], 'text', class_='title plot_title',
x=self.width / 2,
y=i * (self.title_font_size + self.spacing)
).text = title_line

Loading…
Cancel
Save