create_data_table
Generate a styled HTML data table with conditional formatting, highlighting max/min values for district statistics, budget breakdowns, or top-N listings.
Instructions
Create a styled, responsive HTML data table with conditional formatting.
Professional table with ranking indicators and value formatting. Highlights max or min value row.
Ideal for: district statistics, budget breakdowns, top-N listings.
Returns: {filepath, title, rows, total_rows, columns}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts | |
| title | No | Table title | |
| caption | No | Table caption text | |
| columns | No | Columns to include (auto-detected if None) | |
| filename | No | Output filename | data_table |
| max_rows | No | Maximum rows to display | |
| highlight_max | No | True=max, False=min | |
| format_columns | No | {column: 'number'|'pct'|'currency'} | |
| highlight_column | No | Column to highlight max/min row |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||