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
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 | |||