Displays
chart and map — how a node is drawn. Always a node’s last step.
chart
trend:
chart: { from: affordability, type: line, x: year, y: years_of_salary, unit: years }
| Option | Meaning |
|---|
from | The node drawn (or the node’s own table when it has earlier steps). |
type | kpi, line, bar, column, area, scatter, table or heatmap. |
x | The column along the horizontal axis. |
y | One column or a list along the vertical axis; a KPI’s value; a heatmap’s rows. |
group | One line or set of bars per value of this column. |
color, value | A heatmap’s colour column. |
at | A KPI’s row, ordered by x: last (default) or first. |
unit | Shown after values. |
title | The chart’s title. |
map
where:
map: { from: cells, level: cell, area: AM01, color: heat }
| Option | Meaning |
|---|
from | The node drawn. |
level | marz, district, community or cell. |
area | For cells: AM or AM01; for regions, a marz to show alone. |
code | The column holding place codes (default code). Cells also need lat and lon. |
color | The column that colours each place. |
time | A time column becomes a slider. |
title | The map’s title. |