Appearance
Are you an LLM? You can read better optimized documentation at /embed/docs/configuration/labels.md for this page in Markdown format
Labels
Three different things look like "the numbers on the chart." They are not the same key.
| What you mean | What it is | Key |
|---|---|---|
| Legend / series names | Legend chrome | legend.visible / seriesLabels |
| Numbers on each segment | Data labels (off unless you turn them on) | annotations.dataLabels |
| Numbers on the bar / stack | Totals (on by default) | annotations.totals.visible |
Hide the numbers on the bars
js
{
chartType: 'clusteredBar',
isDataTransposed: true,
seriesData: [/* … */],
annotations: { totals: { visible: false } },
}That is the control. Totals default on for clustered bar, stacked bar, mekko, bar mekko, and waterfall.
Do not invent these
These keys do not hide totals. validateChartData accepts them (valid: true) and emits an unknown-key warning with suggestion: "annotations.totals.visible":
annotations.showTotalLabelsannotations.showTotals/showTotalannotations.dataLabels.showTotal- top-level
showTotalLabelsordataLabels
seriesLabels is series-name chrome, not bar totals.
Data labels vs totals
annotations.dataLabels paints a number inside each segment. It is a per-series visibility array (or a boolean). Leave it alone unless you want in-bar labels.
annotations.totals paints one number on top of the category (clustered) or the stack (stacked / mekko / waterfall).
Format those numbers with annotations.totals.numberFormat and annotations.dataLabels.numberFormat. See Number formats.