From 60c073a6ed451cf91d9877a3305407756b9ffdce Mon Sep 17 00:00:00 2001 From: Tomasz Mieszkowski Date: Thu, 28 Aug 2014 08:54:15 +0200 Subject: Tipboard got open-sourced! --- doc/tile__bar_chart.rst | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 doc/tile__bar_chart.rst (limited to 'doc/tile__bar_chart.rst') diff --git a/doc/tile__bar_chart.rst b/doc/tile__bar_chart.rst new file mode 100644 index 0000000..47dfd32 --- /dev/null +++ b/doc/tile__bar_chart.rst @@ -0,0 +1,61 @@ +============= +``bar_chart`` +============= + +.. image:: img/smaller/bar-chart.png + +**Description** + +Tile displaying data in the form of horizontal bar charts. Each cart may +consist of one or more series of data - in the latter case, such bars are +grouped respectively. There are no "hard" limits when it comes to the number of +charts/series, although we suggest to keep them down to 3 charts of 2 series +each. + +**Content** + +:: + + data = { + "title": "", + "subtitle": "<subtitle>", + "ticks": ["<label1>", "<label2>", "<label3>" ...], + "series_list": [[<val1>, <val2>, <val3>, ...], + [<val1>, <val2>, <val3>, ...]] + } + +where: + +.. describe:: title, subtitle + + Title and subtitle displayed on the top of the tile. + +.. describe:: ticks + + Labels to be displayed on the left side of the charts. + +.. describe:: series_list + + List of series, as name suggests. ``[[1, 2]]`` will give one chart of two + bars, ``[[3, 4, 5], [6, 7, 8]]`` will give two charts of three bars each. + +Example:: + + curl http://localhost:7272/api/v0.1/<api_key>/push + -X POST + -d "tile=bar_chart" + -d "key=<tile_id>" + -d 'data={"title": "The A-Team", + "subtitle": "Velocity (Last tree sprints)", + "ticks": ["n-2", "n-1", "Last (n)"], + "series_list": [[49, 50, 35], [13, 45, 9]]}' + +**Configuration** + +This tile does not offer any configuration options. + +.. note:: + + In case of displaying more than one charts on the same tile, the number of + values in ``series_list`` for every chart should be the same (and they + should be equal to the number of ``ticks``. -- cgit v1.2.3