combo/combo/apps/dataviz
Valentin Deniaud 66b12b846a misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
..
migrations misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
static dataviz: add new widget to select multiple filter values (#74061) 2023-02-28 10:00:11 +01:00
templates/combo dataviz: do not rely on self.data on filters cell refresh (#74997) 2023-03-09 17:45:59 +01: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 misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
fields.py dataviz: refresh overridden filters in filters cell (#75324) 2023-03-15 10:39:02 +01:00
forms.py dataviz: skip choices computation for boolean field in filters cell (#75322) 2023-03-15 11:13:12 +01:00
models.py misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +02:00
urls.py replaced urls.url with url.re_path equivalent (#68183) 2022-08-29 09:35:13 +02:00
utils.py dataviz: handle deprecated statistic (#74735) 2023-02-27 09:44:15 +01:00
views.py dataviz: fallback to cell's height while configurating chart (#62282) 2023-03-27 11:33:38 +02:00
widgets.py misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 16:14:41 +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/