From ff18da4cf2154717bfe193af3306764bf732a5b4 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Thu, 6 Feb 2014 16:07:11 +0100 Subject: [PATCH] Add box plot doc --- pages/chart_types.rst | 18 ++++++++++++++++++ pages/home.rst | 24 +++++++++++++----------- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/pages/chart_types.rst b/pages/chart_types.rst index b8e4752..369246e 100644 --- a/pages/chart_types.rst +++ b/pages/chart_types.rst @@ -202,6 +202,24 @@ Simple Kiviat diagram: radar_chart.add('IE', [43, 41, 59, 79, 144, 136, 34, 102]) +Box plot +-------- + +Basic +~~~~~ + +Here's some whiskers: + +.. pygal-code:: + + box_plot = pygal.Box() + box_plot.title = 'V8 benchmark results' + box_plot.add('Chrome', [6395, 8212, 7520, 7218, 12464, 1660, 2123, 8607]) + box_plot.add('Firefox', [7473, 8099, 11700, 2651, 6361, 1044, 3797, 9450]) + box_plot.add('Opera', [3472, 2933, 4203, 5229, 5810, 1828, 9013, 4669]) + box_plot.add('IE', [43, 41, 59, 79, 144, 136, 34, 102]) + + Dot charts ---------- diff --git a/pages/home.rst b/pages/home.rst index 1ba959d..e508f6a 100644 --- a/pages/home.rst +++ b/pages/home.rst @@ -5,7 +5,7 @@ Presentation ============ -pygal 1.1.0 is a dynamic SVG charting library. +pygal 1.3.0 is a dynamic SVG charting library. .. class:: thumbs @@ -42,25 +42,27 @@ pygal 1.1.0 is a dynamic SVG charting library. It features various graph types: -- `Bar charts `_ +- `Bar charts `_ -- `Line charts `_ +- `Line charts `_ -- `XY charts `_ +- `XY charts `_ -- `Pie charts `_ +- `Pie charts `_ -- `Radar charts `_ +- `Radar charts `_ -- `Dot charts `_ +- `Box plot `_ -- `Pyramid charts `_ +- `Dot charts `_ -- `Funnel charts `_ +- `Pyramid charts `_ -- `Gauge charts `_ +- `Funnel charts `_ -- `Worldmap charts `_ +- `Gauge charts `_ + +- `Worldmap charts `_