Chart chooser
chart_chooserPick a chart type from the question being asked and the shape of the data. Pass question (compare, trend, distribution, part-to-whole, relationship, ranking, geography) and any of: categories (number of groups or items), points (observations or time steps), series (number of series), thirdVariable (relationship questions: a third measure to encode), hierarchy (parts nest inside parts), overTime (the question is across time), audience (general or analyst). Returns ranked chart types, each with a reason tied to your numbers, avoid (chart types that mislead for this question) and notes. Draws on the practice described by Stephen Few (Show Me the Numbers) and Alberto Cairo (The Functional Art); the rankings are our own judgment, not a formula. Pure computation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"question": "<question>"
},
"name": "chart_chooser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | Number of observations or time points. | |
| series | No | Number of series. | |
| audience | No | Who reads it. | |
| overTime | No | The question spans time. | |
| question | Yes | What the reader should be able to answer. | |
| hierarchy | No | Parts nest inside parts (part-to-whole). | |
| categories | No | Number of categories or items. | |
| thirdVariable | No | A third measure is available (relationship). |