From b1ab79fc996c2a3db7fc179d6436deb44f404297 Mon Sep 17 00:00:00 2001 From: Taylor Date: Wed, 27 Jul 2016 14:38:32 -0700 Subject: [PATCH 1/2] Describe bar chart --- docs/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.rst b/docs/index.rst index 34f32e4..a16f3c8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -9,6 +9,7 @@ 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]) From 282a4b222756e3ce1a39ff82b16a9b8a737e39ee Mon Sep 17 00:00:00 2001 From: Taylor Date: Wed, 27 Jul 2016 14:45:48 -0700 Subject: [PATCH 2/2] Describe line, pie, and radar charts --- docs/index.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/index.rst b/docs/index.rst index a16f3c8..e384e25 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -17,6 +17,7 @@ Sexy python charting .. 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]) @@ -24,6 +25,7 @@ Sexy python charting .. 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]) @@ -31,6 +33,7 @@ Sexy python charting .. 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])