combo/combo/apps/dataviz
Frédéric Péters 4e60a9753c dataviz: add migration to finalize removal of cubes (#12743) 2019-04-04 14:32:12 +02:00
..
migrations dataviz: add migration to finalize removal of cubes (#12743) 2019-04-04 14:32:12 +02:00
static/js dataviz: set responsiveMinHeight to 300px (fixes #10221) 2016-03-07 12:46:07 +01:00
templates/combo general: mark cells as a block so they can be extended (#24773) 2018-06-29 17:02:41 +02:00
README dataviz: add cells to display data from cubes using barcharts and HTML tables (#9098) 2015-11-26 17:20:42 +01:00
__init__.py dataviz: remove legacy cubes code (#12743) 2018-03-26 11:33:18 +02:00
forms.py dataviz: remove legacy cubes code (#12743) 2018-03-26 11:33:18 +02:00
models.py dataviz: allow setting a template URL in gauges (#29753) 2019-01-15 23:12:39 +01:00
urls.py misc: remove usage of django.conf.urls.patterns (#15993) 2017-05-02 15:52:05 +02:00
views.py dataviz: use requests wrapper in gauge counter (#23862) 2018-05-16 14:43:22 +02:00

README

Data visualization cells
========================

Gauge cell
----------

FIXME

Cubes cells
-----------

Those cells are activated by setting the CUBES_URL setting to the root URL of a
Cubes[1] 1.1 server.

Cubes server is accessed using the requests library, you can define custom
parameters for the requests.get() calls by setting CUBES_REQUESTS_PARAMS, for
example to disable SSL certificate validation:

    CUBES_REQUESTS_PARAMS = {'verify': False}

The CubesBarChart cell use the Chart.js library (through the XStatic-Chart.js
package) to render bar charts of the selected aggregated data. The y axis
measure the aggregate which is computed, the x axis is the dimension chosen
for the first drill-down axis. The second drilldown axis will be used to
generate multiple datasets, one by dimension point, i.e. results generated for
the second axis will be grouped along the first drilldown axis.

Ordering by drilldown axis is automatically done using implicit ordering defined
by the Cubes model.

The CubesTable render the same data as CubesBarChart but by using HTML tables.
The first drilldown axis is used for the row headers and the second drilldown
axis for the column headers. By using the two axis at the same time you can make
pivot tables.

[1]: https://pythonhosted.org/cubes/