Display totals directly on stacked bar charts with configurable positioning and formatting.
Data labels show the aggregate total value above each full stack on stacked bar charts. They let users read exact values without cross-referencing the Y axis.
Enabling data labels
Open the Style tab and enable the Data labels toggle.
Label settings
Setting
Description
Format
Auto by default: each label uses its measure’s number format from the data model, such as a percentage. Pick Number, Percentage or Currency to override it, and Auto to go back
Font size
Size of the label text
Position
Outside end, Inside end, Inside center, or Inside base
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cube Documentation","colors":{"primary":"#5339CF","light":"#A5A3FF","dark":"#716EEE"},"logo":{"light":"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/logo/light.svg?fit=max\u0026auto=format\u0026n=wCTntgEXVYYYnx4l\u0026q=85\u0026s=8bbf45ba64eac6116629064fac55aad7","dark":"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/logo/dark.svg?fit=max\u0026auto=format\u0026n=wCTntgEXVYYYnx4l\u0026q=85\u0026s=d8fa230950c8c63b3c2f88d2768694d0"},"favicon":"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/favicon.svg?fit=max\u0026auto=format\u0026n=wCTntgEXVYYYnx4l\u0026q=85\u0026s=3b0cb7aa770d2abd546ef19463fbba8c","navbar":{"links":[{"href":"https://cube.dev/demos","label":"Demos"},{"href":"https://cube.dev/changelog","label":"Changelog"},{"href":"https://slack.cube.dev","label":"Community"}],"primary":{"type":"button","label":"Get Started","href":"https://cubecloud.dev/auth/signup"}},"footer":{"socials":{"x":"https://x.com/the_cube_dev","github":"https://github.com/cube-js/cube","linkedin":"https://www.linkedin.com/company/cube-dev"},"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://cube.dev/legal/privacy-policy"},{"label":"Cookie Preferences","href":"#cookie-preferences"}]}]},"seo":{"metatags":{"og:type":"website","og:site_name":"Cube Documentation"},"indexing":"navigable"},"icons":{"library":"tabler"},"styling":{"codeblocks":"dark","latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cubed3","hasAudioNarration":false,"actualSubdomain":"cubed3","customDomains":["docs.cube.dev"],"gitSource":{"type":"github","owner":"cube-js","repo":"cube","deployBranch":"master","contentDirectory":"docs-mintlify","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0f2c4e3bf2af4bfc98d272","clientVersion":"0.0.4389","searchFilterCounts":[{"language":"default","tag":"API","count":244},{"language":"default","tag":"Platform Endpoints","count":237},{"language":"default","tag":"Documentation","count":113},{"language":"default","tag":"Admin","count":102},{"language":"default","tag":"Data Modeling","count":68},{"language":"default","tag":"Reference","count":48},{"language":"default","tag":"Recipes","count":47},{"language":"default","tag":"Topics","count":47},{"language":"default","tag":"Explore \u0026 Analyze","count":36},{"language":"default","tag":"Connect to data","count":32}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#content-area table,.mdx-content table{width:100%!important}.cube-consent{position:fixed;right:16px;bottom:16px;z-index:2147483000;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;width:min(440px, calc(100vw - 32px));padding:16px;background:#fff;color:#111827;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 24px rgb(0 0 0 / 12%);font-size:14px;line-height:1.5}html.dark .cube-consent{background:#111318;color:#f3f4f6;border-color:#2b2f38}.cube-consent__title{margin:0;padding-right:24px;font-size:16px;font-weight:600}.cube-consent__text,.cube-consent__status{margin:0;color:#4b5563}html.dark .cube-consent__text,html.dark .cube-consent__status{color:#b6bcc8}.cube-consent__link{color:inherit;text-decoration:underline}.cube-consent__actions{display:flex;gap:8px}.cube-consent__button{flex:1;padding:8px 16px;border:1px solid #111827;border-radius:6px;background:#111827;color:#fff;font:inherit;font-weight:500;cursor:pointer}html.dark .cube-consent__button{border-color:#f3f4f6;background:#f3f4f6;color:#111318}.cube-consent__button:hover{opacity:0.88}.cube-consent__button:focus-visible,.cube-consent__close:focus-visible,.cube-consent__link:focus-visible{outline:2px solid #111827;outline-offset:2px}html.dark .cube-consent :focus-visible{outline-color:#f3f4f6}.cube-consent__close{position:absolute;top:8px;right:8px;width:24px;height:24px;padding:0;border:0;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer}.frame:has([data-ramka-trigger] img){padding:0;background:transparent;border-radius:6px}.frame:has([data-ramka-trigger] img)>div{border-radius:6px}.frame [data-ramka-trigger] img{border:1px solid rgb(0 0 0 / 0.1);border-radius:6px!important}.dark .frame [data-ramka-trigger] img{border-color:rgb(255 255 255 / 0.1)}.zoom-image-content [data-ramka-media] img{border:1px solid rgb(0 0 0 / 0.1);border-radius:6px;box-shadow:0 8px 32px rgb(0 0 0 / 0.12)}.dark .zoom-image-content [data-ramka-media] img{border-color:rgb(255 255 255 / 0.1)}svg[id^=\"mermaid-\"]{--d-tile: #f3f3fb;--d-ink: #141446;--d-line: #6f6f7b;--d-violet: #7a77ff;--d-orange: #f4982b;--d-ask: #fff;--d-bg: #fff}html.dark svg[id^=\"mermaid-\"]{--d-tile: #22223a;--d-ink: #e6e6f4;--d-line: #9a9aaa;--d-ask: #0c0c10;--d-bg: #0c0c10}svg[id^=\"mermaid-\"] .node:is(.tile,.hub,.start,.out) :is(rect,polygon,path){stroke:none!important}svg[id^=\"mermaid-\"] .node.tile :is(rect,polygon,path){fill:var(--d-tile)!important}svg[id^=\"mermaid-\"] .node:is(.start,.out) :is(rect,polygon,path){fill:var(--d-violet)!important}svg[id^=\"mermaid-\"] .node.ask :is(rect,polygon,path){fill:var(--d-ask)!important;stroke:var(--d-ink)!important;stroke-width:1px!important}svg[id^=\"mermaid-\"] .nodeLabel,svg[id^=\"mermaid-\"] .edgeLabel{color:var(--d-ink)!important}svg[id^=\"mermaid-\"] .node:is(.start,.out) .nodeLabel{color:#fff!important;font-weight:700}svg[id^=\"mermaid-\"] .flowchart-link{stroke:var(--d-line)!important;stroke-width:1.2px!important}svg[id^=\"mermaid-\"] .flowchart-link[class*=\"dotted\"]{stroke:var(--d-ink)!important;stroke-width:1.5px!important;stroke-dasharray:0.1 5!important;stroke-linecap:round}svg[id^=\"mermaid-\"] marker path{fill:var(--d-ink)!important;stroke:none!important}svg[id^=\"mermaid-\"] :is(.labelBkg,.edgeLabel,.edgeLabel p){background:var(--d-bg)!important}svg[id^=\"mermaid-\"] .edgeLabel rect{fill:var(--d-bg)!important}svg[id^=\"mermaid-\"] foreignObject{overflow:visible}svg[id^=\"mermaid-\"] :is(.yes,.no){display:inline-block;margin:2px;padding:3px 9px;border-radius:6px;color:#fff}svg[id^=\"mermaid-\"] .yes{background:var(--d-violet)}svg[id^=\"mermaid-\"] .no{background:var(--d-orange)}svg[id^=\"mermaid-\"] code{font-size:0.85em;padding:0;background:none;border:0;color:inherit;white-space:nowrap}svg[id^=\"mermaid-\"] .node:is(.tile,.hub,.out) rect{rx:10px;ry:10px}svg[id^=\"mermaid-\"] .node .label div{max-width:360px!important}svg[id^=\"mermaid-\"] .node.tile img{display:inline-block!important;width:26px!important;height:26px!important;margin:0 10px 0 0;vertical-align:middle}svg[id^=\"mermaid-\"] .node.hub img{display:block!important;width:44px!important;height:44px!important;margin:4px auto 6px}svg[id^=\"mermaid-\"] .node.hub rect{fill:var(--d-tile)!important}svg[id^=\"mermaid-\"] .node img.on-dark,html.dark svg[id^=\"mermaid-\"] .node img.on-light{display:none!important}html.dark svg[id^=\"mermaid-\"] .node.hub img.on-dark{display:block!important}html.dark svg[id^=\"mermaid-\"] .node.tile img.on-dark{display:inline-block!important}svg[id^=\"mermaid-\"] .node.hub .nodeLabel{display:block;padding:14px 18px}"}]}
{"page":{"pagePath":"docs/explore-analyze/charts/configuration/data-labels","slug":"/docs/explore-analyze/charts/configuration/data-labels","pageMetadata":{"title":"Data labels","description":"Display totals directly on stacked bar charts with configurable positioning and formatting.","href":"/docs/explore-analyze/charts/configuration/data-labels"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Display totals directly on stacked bar charts with configurable positioning and formatting.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Frame,Heading,OptimizedImage,Table}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Data labels show the aggregate total value above each full stack on stacked bar charts. They let users read exact values without cross-referencing the Y axis.`}),`\n`,_jsx(Heading,{level:`2`,id:`enabling-data-labels`,children:`Enabling data labels`}),`\n`,_jsxs(_components.p,{children:[`Open the `,_jsx(_components.strong,{children:`Style`}),` tab and enable the `,_jsx(_components.strong,{children:`Data labels`}),` toggle.`]}),`\n`,_jsx(Heading,{level:`2`,id:`label-settings`,children:`Label settings`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Format`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Auto`}),` by default: each label uses its measure’s number format from the data model, such as a percentage. Pick `,_jsx(_components.strong,{children:`Number`}),`, `,_jsx(_components.strong,{children:`Percentage`}),` or `,_jsx(_components.strong,{children:`Currency`}),` to override it, and `,_jsx(_components.strong,{children:`Auto`}),` to go back`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Font size`})}),_jsx(_components.td,{children:`Size of the label text`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Position`})}),_jsx(_components.td,{children:`Outside end, Inside end, Inside center, or Inside base`})]})]})]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://static.cube.dev/docs/explore-analyze/charts/data-labels/format-picker-auto-v2.png`,alt:`Style tab with the Data labels section and the Format picker open on Auto: percentage, next to a bar chart with percent labels`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"dark","config":{},"pageMetadata":{"title":"Data labels","description":"Display totals directly on stacked bar charts with configurable positioning and formatting.","href":"/docs/explore-analyze/charts/configuration/data-labels"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Enabling data labels","slug":"enabling-data-labels","depth":2,"children":[]},{"title":"Label settings","slug":"label-settings","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cubed3/73c42f6b43b9b3b0/scripts/extract-chat.js","/_mintlify/custom/cubed3/08d502537a7bd0d7/scripts/extract-core-data.js","/_mintlify/custom/cubed3/476a9fa93e98d93b/consent.js"],"subdomain":"cubed3","siteName":"Cube Documentation","title":"Data labels - Cube Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T11:50:13.562Z","originalFileLocation":"docs/explore-analyze/charts/configuration/data-labels.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Display totals directly on stacked bar charts with configurable positioning and formatting.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cube Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Data labels - Cube Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Display totals directly on stacked bar charts with configurable positioning and formatting.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cube Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cubed3.mintlify.site/_mintlify/api/og/v2?division=Configure+charts\u0026amp;title=Data+labels\u0026amp;description=Display+totals+directly+on+stacked+bar+charts+with+configurable+positioning+and+formatting.\u0026amp;theme=6d1e003873cec4de62649d7c\u0026amp;signature=3e192e9601baa5c4b0c6eaa787a1ccac11799ff897963b58860bd6b1764ba90a\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Data labels - Cube Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Display totals directly on stacked bar charts with configurable positioning and formatting.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cubed3.mintlify.site/_mintlify/api/og/v2?division=Configure+charts\u0026amp;title=Data+labels\u0026amp;description=Display+totals+directly+on+stacked+bar+charts+with+configurable+positioning+and+formatting.\u0026amp;theme=6d1e003873cec4de62649d7c\u0026amp;signature=3e192e9601baa5c4b0c6eaa787a1ccac11799ff897963b58860bd6b1764ba90a\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cubed3/JtLYPWhDFrYGSK8W/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cube Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5339CF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/explore-analyze/charts/configuration/data-labels.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cube.dev/#organization\",\"name\":\"Cube Documentation\",\"url\":\"https://docs.cube.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cubed3/wCTntgEXVYYYnx4l/logo/light.svg?fit=max\u0026auto=format\u0026n=wCTntgEXVYYYnx4l\u0026q=85\u0026s=8bbf45ba64eac6116629064fac55aad7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cube.dev#website\",\"name\":\"Cube Documentation\",\"url\":\"https://docs.cube.dev\",\"publisher\":{\"@id\":\"https://docs.cube.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels#webpage\",\"url\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels\",\"name\":\"Data labels\",\"description\":\"Display totals directly on stacked bar charts with configurable positioning and formatting.\",\"dateModified\":\"2026-11-30T11:50:13.562Z\",\"isPartOf\":{\"@id\":\"https://docs.cube.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Explore \u0026 Analyze\",\"item\":\"https://docs.cube.dev/docs/explore-analyze/workbooks/querying-data\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Charts\",\"item\":\"https://docs.cube.dev/docs/explore-analyze/charts\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Configure charts\",\"item\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Data labels\",\"item\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels#article\",\"headline\":\"Data labels\",\"name\":\"Data labels\",\"description\":\"Display totals directly on stacked bar charts with configurable positioning and formatting.\",\"url\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cube.dev/docs/explore-analyze/charts/configuration/data-labels#webpage\"},\"dateModified\":\"2026-11-30T11:50:13.562Z\",\"publisher\":{\"@id\":\"https://docs.cube.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cube.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cube Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cube Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/explore-analyze/charts/configuration/data-labels.md","siteName":"Cube Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/docs/introduction"},{"title":"Preferences","href":"/docs/preferences"},{"title":"Inbox","href":"/docs/inbox"},{"group":"Getting Started","pages":[{"title":"Connect your data","href":"/docs/getting-started/connect-your-data"},{"title":"Use analytics chat","href":"/docs/getting-started/use-analytics-chat"},{"title":"Create workbooks and dashboards","href":"/docs/getting-started/create-workbooks-and-dashboards"},{"title":"Develop in IDE","href":"/docs/getting-started/develop-in-ide"},{"title":"Embed analytics","href":"/docs/getting-started/embed-analytics"}]},{"group":"Migrate from Cube Core","pages":[{"title":"Import a local project to Cube Cloud with CLI","href":"/docs/getting-started/migrate-from-core/upload-with-cli"},{"title":"Import a GitHub repository","href":"/docs/getting-started/migrate-from-core/import-github-repository"},{"title":"Import a GitLab repository","href":"/docs/getting-started/migrate-from-core/import-gitlab-repository-via-ssh"},{"title":"Import a Git repository","href":"/docs/getting-started/migrate-from-core/import-git-repository-via-ssh"},{"title":"Import a Bitbucket repository","href":"/docs/getting-started/migrate-from-core/import-bitbucket-repository-via-ssh"}]}]},{"group":"Explore \u0026 Analyze","pages":[{"group":"Workbooks","root":{"title":"Workbooks","href":"/docs/explore-analyze/workbooks/index"},"pages":[{"title":"Querying data","href":"/docs/explore-analyze/workbooks/querying-data"},{"title":"Calculated fields","href":"/docs/explore-analyze/workbooks/calculated-fields"},{"title":"SQL parameters","href":"/docs/explore-analyze/workbooks/sql-parameters"},{"title":"Source SQL Tabs","href":"/docs/explore-analyze/workbooks/source-sql-tabs"},{"title":"Python analysis","href":"/docs/explore-analyze/workbooks/python-analysis"},{"title":"Workbook Agent","href":"/docs/explore-analyze/workbooks/workbook-agent"}]},{"title":"Explore","href":"/docs/explore-analyze/explore"},{"group":"Charts","root":{"title":"Charts","href":"/docs/explore-analyze/charts/index"},"pages":[{"group":"Chart types","root":{"title":"Chart types","href":"/docs/explore-analyze/charts/chart-types/index"},"pages":[{"title":"Bar","href":"/docs/explore-analyze/charts/chart-types/bar"},{"title":"Line","href":"/docs/explore-analyze/charts/chart-types/line"},{"title":"Area","href":"/docs/explore-analyze/charts/chart-types/area"},{"title":"Scatter","href":"/docs/explore-analyze/charts/chart-types/scatter"},{"title":"Pie \u0026 donut","href":"/docs/explore-analyze/charts/chart-types/pie"},{"title":"Funnel","href":"/docs/explore-analyze/charts/chart-types/funnel"},{"title":"Sankey","href":"/docs/explore-analyze/charts/chart-types/sankey"},{"title":"Heatmap","href":"/docs/explore-analyze/charts/chart-types/heatmap"},{"title":"Boxplot","href":"/docs/explore-analyze/charts/chart-types/boxplot"},{"title":"Table","href":"/docs/explore-analyze/charts/chart-types/table"},{"title":"KPI","href":"/docs/explore-analyze/charts/chart-types/kpi"},{"title":"Bullet","href":"/docs/explore-analyze/charts/chart-types/bullet"},{"title":"Map","href":"/docs/explore-analyze/charts/chart-types/map"},{"title":"HTML","href":"/docs/explore-analyze/charts/chart-types/html"}]},{"title":"Custom visualizations","href":"/docs/explore-analyze/charts/custom"},{"group":"Configure charts","root":{"title":"Configure charts","href":"/docs/explore-analyze/charts/configuration/index"},"pages":[{"title":"Series mapping","href":"/docs/explore-analyze/charts/configuration/series-mapping"},{"title":"Series configuration","href":"/docs/explore-analyze/charts/configuration/series-configuration"},{"title":"Color \u0026 stacking","href":"/docs/explore-analyze/charts/configuration/color-and-stacking"},{"title":"Small multiples","href":"/docs/explore-analyze/charts/configuration/small-multiples"},{"title":"Axes","href":"/docs/explore-analyze/charts/configuration/axes"},{"title":"Tooltips","description":"Control which fields appear when a user hovers over a chart mark.","href":"/docs/explore-analyze/charts/configuration/tooltips"},{"title":"Data labels","href":"/docs/explore-analyze/charts/configuration/data-labels"}]}]},{"title":"Analytics Chat","description":"Conversational analytics interface for asking plain-language questions and getting trusted, AI-powered insights from your semantic layer.","href":"/docs/explore-analyze/analytics-chat"},{"title":"Scheduled Tasks","href":"/docs/explore-analyze/scheduled-tasks"},{"title":"Agent skills","href":"/docs/explore-analyze/skills"}]},{"group":"Present \u0026 Share","pages":[{"group":"Dashboards","root":{"title":"Dashboards","href":"/docs/explore-analyze/dashboards/index"},"pages":[{"group":"Widgets","root":{"title":"Widgets","href":"/docs/explore-analyze/dashboards/widgets/index"},"pages":[{"title":"Charts","href":"/docs/explore-analyze/dashboards/widgets/charts"},{"title":"Text","href":"/docs/explore-analyze/dashboards/widgets/text"},{"title":"Controls","href":"/docs/explore-analyze/dashboards/widgets/controls"},{"title":"Analysis","href":"/docs/explore-analyze/dashboards/widgets/analysis"},{"title":"Spacer, Divider, Stack, Grid \u0026 Tabs","href":"/docs/explore-analyze/dashboards/widgets/layout"}]},{"title":"Cross-filtering","href":"/docs/explore-analyze/dashboards/cross-filtering"},{"title":"Drill-through","href":"/docs/explore-analyze/dashboards/drill-through"},{"title":"Styling","href":"/docs/explore-analyze/dashboards/styling"},{"title":"Dashboards as code","href":"/docs/explore-analyze/dashboards/dashboards-as-code"},{"title":"Dashboard Agent","href":"/docs/explore-analyze/dashboards/dashboard-agent"},{"title":"Comments","href":"/docs/explore-analyze/dashboards/comments"},{"title":"Reviews","href":"/docs/explore-analyze/dashboards/reviews"}]},{"title":"Apps","href":"/docs/explore-analyze/apps"},{"title":"Refreshes, deliveries and alerts","href":"/docs/explore-analyze/dashboard-deliveries"},{"title":"Alerts","href":"/docs/explore-analyze/alerts"},{"title":"Report deliveries","href":"/docs/explore-analyze/report-deliveries"}]},{"group":"Organize content","pages":[{"title":"Folders","href":"/docs/organize-content/folders"},{"title":"Share content","href":"/docs/organize-content/sharing"}]},{"group":"Data Modeling","pages":[{"title":"Getting started","href":"/docs/data-modeling/overview"},{"group":"Views","root":{"title":"Views","href":"/docs/data-modeling/views"},"pages":[{"title":"Multi-fact views","href":"/docs/data-modeling/multi-fact-views"},{"title":"View groups","href":"/docs/data-modeling/view-groups"}]},{"group":"Cubes","root":{"title":"Cubes","href":"/docs/data-modeling/cubes"},"pages":[{"title":"Extending cubes and views","href":"/docs/data-modeling/extending-cubes"}]},{"title":"Joins","href":"/docs/data-modeling/joins"},{"title":"Measures","href":"/docs/data-modeling/measures"},{"title":"Dimensions","href":"/docs/data-modeling/dimensions"},{"title":"Calendar cubes","href":"/docs/data-modeling/concepts/calendar-cubes"},{"title":"AI context","href":"/docs/data-modeling/ai-context"},{"title":"Syntax","href":"/docs/data-modeling/concepts/syntax"},{"group":"Access Control","pages":[{"title":"Access Control","sidebarTitle":"Overview","href":"/docs/data-modeling/access-control/index"},{"title":"Access policies","href":"/docs/data-modeling/data-access-policies"},{"title":"Row-level security","href":"/docs/data-modeling/access-control/row-level-security"},{"title":"Member-level security","href":"/docs/data-modeling/access-control/member-level-security"},{"title":"Security context","href":"/docs/data-modeling/access-control/context"}]},{"group":"Dynamic Data Models","root":{"title":"Dynamic Data Models","href":"/docs/data-modeling/dynamic/index"},"pages":[{"title":"Data modeling with YAML, Jinja, and Python","href":"/docs/data-modeling/dynamic/jinja"},{"title":"Data modeling with JavaScript","href":"/docs/data-modeling/dynamic/javascript"},{"title":"Export and import","href":"/docs/data-modeling/dynamic/code-reusability-export-and-import"},{"title":"Execution Environment (JavaScript)","href":"/docs/data-modeling/dynamic/schema-execution-environment"}]},{"title":"Configuration","href":"/docs/data-modeling/configuration"},{"group":"Developing Model","pages":[{"title":"Visual Model","href":"/docs/data-modeling/visual-modeler"},{"title":"Data Model IDE","href":"/docs/data-modeling/data-model-ide"},{"title":"Development mode","href":"/docs/data-modeling/dev-mode"},{"title":"Access Policies viewer","href":"/docs/data-modeling/access-policies-viewer"},{"title":"Content Validator","href":"/docs/data-modeling/content-validator"}]}]},{"group":"Pre-aggregations","pages":[{"title":"Overview","href":"/docs/pre-aggregations/index"},{"title":"Getting started with pre-aggregations","href":"/docs/pre-aggregations/getting-started-pre-aggregations"},{"title":"Using pre-aggregations","href":"/docs/pre-aggregations/using-pre-aggregations"},{"title":"Matching queries with pre-aggregations","href":"/docs/pre-aggregations/matching-pre-aggregations"},{"title":"Refreshing pre-aggregations","href":"/docs/pre-aggregations/refreshing-pre-aggregations"},{"title":"Lambda pre-aggregations","href":"/docs/pre-aggregations/lambda-pre-aggregations"},{"title":"Cube Store architecture","href":"/docs/pre-aggregations/cube-store-architecture"}]},{"group":"Integrations","pages":[{"title":"Slack","href":"/docs/integrations/slack"},{"title":"Tableau Integration","sidebarTitle":"Tableau","hidden":true,"href":"/docs/integrations/tableau"},{"title":"Microsoft Power BI","hidden":true,"href":"/docs/integrations/power-bi/index"},{"title":"Cube for Excel","href":"/docs/integrations/microsoft-excel"},{"title":"Cube for Sheets","href":"/docs/integrations/google-sheets"},{"title":"Snowflake Semantic Views Integration","sidebarTitle":"Snowflake Semantic Views","href":"/docs/integrations/snowflake-semantic-views"},{"title":"Databricks Metric Views","href":"/docs/integrations/databricks-metric-views"},{"title":"Apache Ossie","href":"/docs/integrations/apache-ossie"},{"title":"dbt Integration","sidebarTitle":"dbt","href":"/docs/integrations/dbt"},{"group":"Semantic Layer Sync","root":{"title":"Semantic Layer Sync","hidden":true,"href":"/docs/integrations/semantic-layer-sync/index"},"pages":[{"title":"Semantic Layer Sync with Apache Superset","sidebarTitle":"Superset","hidden":true,"href":"/docs/integrations/semantic-layer-sync/superset"},{"title":"Semantic Layer Sync with Preset","sidebarTitle":"Preset","hidden":true,"href":"/docs/integrations/semantic-layer-sync/preset"},{"title":"Semantic Layer Sync with Tableau","sidebarTitle":"Tableau","hidden":true,"href":"/docs/integrations/semantic-layer-sync/tableau"}]},{"title":"MCP server","href":"/docs/integrations/mcp-server"},{"title":"Cube agent skills","href":"/docs/integrations/agent-skills"}]}]},{"tab":"Admin","pages":[{"title":"Admin","href":"/admin/connect-to-data"}]},{"tab":"Embedding","pages":[{"title":"Embedding","href":"/embedding"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference/data-modeling/cube"}]},{"tab":"Cube Core","pages":[{"title":"Cube Core","href":"/cube-core"}]},{"tab":"Recipes","pages":[{"title":"Recipes","href":"/recipes"}]},{"tab":"API","pages":[{"title":"API","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Data labels - Cube Documentation","deploymentId":"dpl_4DWa5VHHws8GyZotTfaG5njNqY1w","buildId":"dpl_4DWa5VHHws8GyZotTfaG5njNqY1w","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DVvU6i_-.js","DynamicMarkdown-ChHD_AmO.js","zoom-image-lightbox-ZK10YGZc.js","lightbox-handle-r17bVUz3.js"]}