Ranking & contribution / ANNOTATION GUIDE
contribution
Sum selected values and divide by the total of all input values.
01 / EXPLORE
See it in action.
Compare parameter variations. Switch to Code to copy an example with the active theme.
02 / CONFIGURE
Make it yours.
Add this configuration to the annotations array in your chart JSON.
03 / CHART SUPPORT
Choose a supported chart.
One example for each supported chart type. The default chart is shown above; the remaining charts use the same annotation configuration.
Calculation rules & limits
- Requires nonnegative additive values. Share equals the selected sum divided by all input values; a zero total produces no annotation.
- Supply a selection, rather than a precomputed total or share.
- Tables require data.field for calculation; data.row limits candidates and data.column selects the emphasized column.