enhance_chart_tooltips
Enhance Plotly chart tooltips by adding formatted values, deviation from mean, and rank for contextual data insights.
Instructions
Add rich contextual tooltips to any Plotly figure.
Enriches hover with formatted values, deviation from mean, and rank. Without: 'Value: 7150000'. With: 'Value: 7.15M / Prosečno: 4.2M / Rank: #1'.
Returns: Enhanced figure dict
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": {
"figure": "<figure>"
},
"name": "enhance_chart_tooltips"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit suffix (e.g., ' stanovnika', ' RSD') | |
| figure | Yes | Plotly figure dict from create_chart() | |
| show_mean | No | Show average and deviation | |
| show_rank | No | Show rank position | |
| value_column | No | Name of the value axis | value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||