Skip to content

Commit

Permalink
Merge pull request Kozea#334 from jkdf2/master
Browse files Browse the repository at this point in the history
Give charts a descriptive title.
  • Loading branch information
paradoxxxzero authored Aug 5, 2016
2 parents a7eccd1 + 282a4b2 commit 67ff494
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,31 @@ Sexy python charting
.. pygal:: 300 200

chart = pygal.HorizontalBar(y_label_rotation=-25)
chart.title = 'Horizontal Bar Chart with Rotated Y Labels'
chart.x_labels = 'one', 'two', 'three', 'four', 'five'
chart.add('alpha', [1, 2, 3, 1, 2])
chart.add('beta', [4, 3, 0, 1, 2])

.. pygal:: 300 200

chart = pygal.Line(x_label_rotation=25, fill=True, interpolate='cubic')
chart.title = 'Line Chart with Rotated X Labels, Fill, and Cubic Interpolation'
chart.x_labels = 'one', 'two', 'three', 'four', 'five'
chart.add('alpha', [1, 2, 3, 1, 2])
chart.add('beta', [4, 3, 0, 1, 2])

.. pygal:: 300 200

chart = pygal.Pie()
chart.title = 'An Ordinary Pie Chart'
chart.x_labels = 'one', 'two', 'three', 'four', 'five'
chart.add('alpha', [1, 2, 3, 1, 2])
chart.add('beta', [4, 3, 0, 1, 2])

.. pygal:: 300 200

chart = pygal.Radar(fill=True)
chart.title = 'Radar Chart with Fill'
chart.x_labels = 'one', 'two', 'three', 'four', 'five'
chart.add('alpha', [1, 2, 3, 1, 2])
chart.add('beta', [4, 3, 0, 1, 2])
Expand Down

0 comments on commit 67ff494

Please sign in to comment.