tooltip_fields adds extra rows to a chart’s hover tooltip without dropping to custom_echart. Each field is an aggregate (or GROUP BY–safe) SQL expression that Evidence appends to the chart’s query and renders as an extra row under the primary value.
Example
Fields
Syntax
This is Markdoc, not JSON — the separator rules differ:
- Object properties are separated by spaces, not commas:
{ value="sum(x)" label="X" fmt="usd" }
- Array elements are separated by commas:
[{ … }, { … }]
- Strings use double quotes; booleans are bare (
color_by_sign=true).
Do not put commas between properties inside an object — { value="x", label="y" } will fail to parse. Commas belong only between array elements.
Map layers
point_layer and area_layer take a simpler form — an array of column-name strings: