summarise_hk_data
Summarise Hong Kong spatial datasets by grouping features and calculating counts, sums, or averages, then return an aligned text table and chart URL for analysis.
Instructions
Answer a question about a dataset in TEXT (and a bar chart), without putting features in the chat.
group_byempty: an overview — feature count, geometry, which fields are worth grouping by.group_by="NAME_OF_DISTRICT_COUNCIL_DISTRICT_EN"withagg="count": how many features per group.agg="sum"/"avg"withvalue_field="MEDIUM_IEC62196_no": totals or averages per group. Returns an aligned text table, the same rows as data, and a chart URL served on localhost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agg | No | count | |
| top | No | ||
| group_by | No | ||
| dataset_id | Yes | ||
| value_field | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |