{# Widget partial: Pivot table (cross-tab) Expects: widget (dict), data (dict with columns/rows), widget_id (int), config (dict), pivot_data (dict with row_headers, col_headers, pivot_rows) #} {% if error %}
| {{ config.row_field if config and config.row_field else "Row" }} | {% for ch in pivot_data.col_headers %}{{ ch }} | {% endfor %}
|---|---|
| {{ rh }} | {% set row_idx = loop.index0 %} {% for val in pivot_data.pivot_rows[row_idx] %}{% if val == 0 %}-{% else %}{{ val }}{% endif %} | {% endfor %}
No data