{"id":1289,"date":"2026-07-27T01:13:45","date_gmt":"2026-07-27T01:13:45","guid":{"rendered":"https:\/\/www.vpascode.com\/pl\/docs\/uncategorized\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown\/"},"modified":"2026-07-30T01:26:45","modified_gmt":"2026-07-30T01:26:45","slug":"stacked-bar-chart-horizontal-part-to-whole-breakdown-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/","title":{"rendered":"Stacked Bar Chart: Horizontal Part-to-Whole Breakdown"},"content":{"rendered":"<p>For analyzing component breakdowns across items with long category titles, the <strong>Stacked Bar Chart<\/strong> is the ideal choice. By stacking data segments horizontally from left to right along the Y-axis, this visualization maintains long label clarity while showing <em>both the overall category totals and the internal proportional breakdown<\/em>. It works exceptionally well for survey demographic results, project resource allocation by department, or multi-channel conversion pipelines.<\/p>\n<h2>The Mechanics of Stacked Horizontal Bars<\/h2>\n<p>Creating a horizontal stacked chart involves using the same <code>stack<\/code> property as stacked column charts, paired with a category-based Y-axis. When multiple <code>type: 'bar'<\/code> series share an identical <code>stack<\/code> key on a horizontal orientation, the rendering engine accumulates values left-to-right along the X-axis.<\/p>\n<h3>1. Essential Setup<\/h3>\n<p>To build a basic stacked bar chart, set <code>yAxis<\/code> to <code>type: 'category'<\/code>, <code>xAxis<\/code> to <code>type: 'value'<\/code>, and assign a matching <code>stack<\/code> string to every series:<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">ECharts<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNq1kj1rwzAQhvdC\/4M2LR4iuYHWpUNKSqdC9pBBtQ9FjSwZWWljgv97T\/6oo0ApgVSDuI9X0nN3spVX1pAncry9Ibi8tdqrKhv9LuaUlOAyQsVB1TSZMsFfWWV8yB6JbypAVb0Vhf2ipO2F7XBAgwRTRDcXwouMrOmLkcoAOGUkTQhdOVvscx\/MJdRKmmC9CbcDHxSb+N7DAili4J7jU+g90Fjc\/CbOhQdpXXNa3oiHPB+Qe7LQ1VYMgF3gGXzkv4qyjAJL0Kg4A66xUECI9fTSCU9YRpSBKWpLrBio34U7z9Re5LswK60tFoXTPVcMZaV8lpB0xsPGcEvvNpOuTf6C+xnS1cFYAGMpgrEAxi4EG7\/M1bl4x3UfuB6Qi1\/INX3gf2jZHNE4QzTetWweofUmRtrHbyQN6ag=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-echarts\"><code data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    tooltip: {\r\n        trigger: 'axis',\r\n        axisPointer: { type: 'shadow' }\r\n    },\r\n    legend: {\r\n        data: ['Engineering', 'Product', 'Design', 'Marketing']\r\n    },\r\n    xAxis: {\r\n        type: 'value'\r\n    },\r\n    yAxis: {\r\n        type: 'category',\r\n        data: ['Project Alpha', 'Project Beta', 'Project Gamma', 'Project Delta']\r\n    },\r\n    series: [\r\n        {\r\n            name: 'Engineering',\r\n            type: 'bar',\r\n            stack: 'allocation',\r\n            data: [320, 302, 301, 334]\r\n        },\r\n        {\r\n            name: 'Product',\r\n            type: 'bar',\r\n            stack: 'allocation',\r\n            data: [120, 132, 101, 134]\r\n        },\r\n        {\r\n            name: 'Design',\r\n            type: 'bar',\r\n            stack: 'allocation',\r\n            data: [220, 182, 191, 234]\r\n        },\r\n        {\r\n            name: 'Marketing',\r\n            type: 'bar',\r\n            stack: 'allocation',\r\n            data: [150, 212, 201, 154]\r\n        }\r\n    ]\r\n};<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNq1kj1rwzAQhvdC\/4M2LR4iuYHWpUNKSqdC9pBBtQ9FjSwZWWljgv97T\/6oo0ApgVSDuI9X0nN3spVX1pAncry9Ibi8tdqrKhv9LuaUlOAyQsVB1TSZMsFfWWV8yB6JbypAVb0Vhf2ipO2F7XBAgwRTRDcXwouMrOmLkcoAOGUkTQhdOVvscx\/MJdRKmmC9CbcDHxSb+N7DAili4J7jU+g90Fjc\/CbOhQdpXXNa3oiHPB+Qe7LQ1VYMgF3gGXzkv4qyjAJL0Kg4A66xUECI9fTSCU9YRpSBKWpLrBio34U7z9Re5LswK60tFoXTPVcMZaV8lpB0xsPGcEvvNpOuTf6C+xnS1cFYAGMpgrEAxi4EG7\/M1bl4x3UfuB6Qi1\/INX3gf2jZHNE4QzTetWweofUmRtrHbyQN6ag=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"sQHyoCX\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1377\" height=\"1363\" class=\"alignnone size-full wp-image-1291 \" src=\"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe.png 1377w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe-300x297.png 300w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe-1024x1014.png 1024w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe-768x760.png 768w\" sizes=\"(max-width: 1377px) 100vw, 1377px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Advanced Structural Techniques<\/h2>\n<p>Stacked horizontal bars can be configured for absolute volume comparison or normalized to show percentage ratios across categories.<\/p>\n<h3>1. 100% Normalized Horizontal Bar Chart<\/h3>\n<p>To evaluate relative ratios rather than absolute counts across long-form categories, normalize your series data to sum to 100% per row:<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">ECharts<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNqtUj1PwzAQ3Sv1P9xSeUmlpFBAQQwI2CggdUQMl+QSrCZxZLulVZT\/jp1+JA4wINVL7u69nN87n6g0FyXcQT0egTlaiFzzKjzmbU3yLCMZAsMtV8zrEJu\/CV5qi9agdxUZlvrERHwxaHrMVMgCdctjddSMRzX6jfkn9puJTYI2CfbJrE1mzYTtGxwb5ZRRmTjaEtQYwjtbouYq5ZQwD9gLrbXE3IaPXKkT9OG2294b+a7TvYEN5mvq+yx4GYLfL+A2hMD3B7N4xohyOwnHbtvOmIHGvX\/31\/0xasqE3PUlHIx2BXvYkx19JbkieFgrLQqSsFzHMSnnnVrugifTBcoVaUOpKiHNl+SGG\/IP7pLydGpRgtcyEigTXmasIw0mqUhyUo682u1YYmGd9Z7JxQ\/OI5RDRGmMVwZKiZLIhEP8MJjruQdXvgeX848O72\/g74JOq3JmOcGNBzMj6eJ\/cpx1PfuIPAiMpJnfl7QPTaW5\/Qa1bfYL\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-echarts\"><code data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    tooltip: {\r\n        trigger: 'axis',\r\n        axisPointer: { type: 'shadow' },\r\n        formatter: '{b}\r\n{a0}: {c0}%\r\n{a1}: {c1}%\r\n{a2}: {c2}%'\r\n    },\r\n    legend: {\r\n        data: ['Satisfied', 'Neutral', 'Dissatisfied']\r\n    },\r\n    xAxis: {\r\n        type: 'value',\r\n        min: 0,\r\n        max: 100,\r\n        axisLabel: { formatter: '{value}%' }\r\n    },\r\n    yAxis: {\r\n        type: 'category',\r\n        data: [\r\n            'Enterprise Customer Success',\r\n            'Mid-Market Support Services',\r\n            'Self-Serve Onboarding'\r\n        ]\r\n    },\r\n    series: [\r\n        {\r\n            name: 'Satisfied',\r\n            type: 'bar',\r\n            stack: 'feedback',\r\n            data: [75, 60, 45]\r\n        },\r\n        {\r\n            name: 'Neutral',\r\n            type: 'bar',\r\n            stack: 'feedback',\r\n            data: [18, 25, 35]\r\n        },\r\n        {\r\n            name: 'Dissatisfied',\r\n            type: 'bar',\r\n            stack: 'feedback',\r\n            data: [7, 15, 20]\r\n        }\r\n    ]\r\n};<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNqtUj1PwzAQ3Sv1P9xSeUmlpFBAQQwI2CggdUQMl+QSrCZxZLulVZT\/jp1+JA4wINVL7u69nN87n6g0FyXcQT0egTlaiFzzKjzmbU3yLCMZAsMtV8zrEJu\/CV5qi9agdxUZlvrERHwxaHrMVMgCdctjddSMRzX6jfkn9puJTYI2CfbJrE1mzYTtGxwb5ZRRmTjaEtQYwjtbouYq5ZQwD9gLrbXE3IaPXKkT9OG2294b+a7TvYEN5mvq+yx4GYLfL+A2hMD3B7N4xohyOwnHbtvOmIHGvX\/31\/0xasqE3PUlHIx2BXvYkx19JbkieFgrLQqSsFzHMSnnnVrugifTBcoVaUOpKiHNl+SGG\/IP7pLydGpRgtcyEigTXmasIw0mqUhyUo682u1YYmGd9Z7JxQ\/OI5RDRGmMVwZKiZLIhEP8MJjruQdXvgeX848O72\/g74JOq3JmOcGNBzMj6eJ\/cpx1PfuIPAiMpJnfl7QPTaW5\/Qa1bfYL\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"vRYIsAC\"><img decoding=\"async\" width=\"1412\" height=\"1363\" class=\"alignnone size-full wp-image-1292 \" src=\"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b12c08f4d.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b12c08f4d.png 1412w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b12c08f4d-300x290.png 300w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b12c08f4d-1024x988.png 1024w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b12c08f4d-768x741.png 768w\" sizes=\"(max-width: 1412px) 100vw, 1412px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Fine-Tuning Layout and Styling<\/h2>\n<p>Clean visual boundaries and rounded outer ends give horizontal stacked bars a polished, modern feel.<\/p>\n<h3>1. Segment Separation and Outer End Rounding<\/h3>\n<p>Apply thin vertical border lines to delineate inner segments, and restrict corner radius styling to the final segment on the right:<\/p>\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">ECharts<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNrNVMFqg0AQvRf6DwuleBHiGm0SSw9tSk+9JIX2EHJYdydmqXHDupZI8d+7ExOighRCCh1kcHYeM8+3zqitkSojD+T7+opYS7QU0TFAS2FlIuLQ8NZxT6daJuv9sdc65iozTGavLIY0IkYXUOeqA2b3uJN5q7wpt2DrfLG0AKcNLvvAnBlIlC6bnQUzLCILZ0bJUyESMI5LnJnfDIbNIDgGy3bTHLQE23VxKt0ggJaxDZJ4kTsQZKpykzd5NGjGTHczuWH8E1MHIu3s4RsCz3NJ4KOj6IbesgOUBjZvpkwh6pKrLyFV2ja5CYORx++6XdBipQXo6RG42ls\/8EMKs44IbeerU1i5v8n1zrRkcQp\/opiPivkhOpTNH5+r2IRyPgr\/h2LPMucacDpZ+1e\/gGAUBaMoGB2im5wr2IrxcTi+oGC9gDkTssDBtHzv9o+3JIMBmasiE3YSudIZ6JzYZWbWUC8oAplNsG3\/LdSvdgdU9z+n+h8F\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-echarts\"><code data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    grid: {\r\n        left: '15%',\r\n        right: '10%',\r\n        containLabel: true\r\n    },\r\n    xAxis: {\r\n        type: 'value'\r\n    },\r\n    yAxis: {\r\n        type: 'category',\r\n        data: ['Q1 Budget', 'Q2 Budget', 'Q3 Budget', 'Q4 Budget']\r\n    },\r\n    series: [\r\n        {\r\n            name: 'Fixed Costs',\r\n            type: 'bar',\r\n            stack: 'budget',\r\n            data: [400, 420, 410, 430],\r\n            itemStyle: {\r\n                color: '#5470c6',\r\n                borderColor: '#ffffff',\r\n                borderWidth: 1\r\n            }\r\n        },\r\n        {\r\n            name: 'Variable Costs',\r\n            type: 'bar',\r\n            stack: 'budget',\r\n            data: [200, 250, 220, 280],\r\n            itemStyle: {\r\n                color: '#91cc75',\r\n                borderColor: '#ffffff',\r\n                borderWidth: 1\r\n            }\r\n        },\r\n        {\r\n            name: 'Discretionary',\r\n            type: 'bar',\r\n            stack: 'budget',\r\n            data: [100, 150, 130, 190],\r\n            itemStyle: {\r\n                color: '#fac858',\r\n                borderColor: '#ffffff',\r\n                borderWidth: 1,\r\n                borderRadius: [0, 6, 6, 0] \/\/ Rounded corners on the right end cap\r\n            }\r\n        }\r\n    ]\r\n};<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/#echarts:eNrNVMFqg0AQvRf6DwuleBHiGm0SSw9tSk+9JIX2EHJYdydmqXHDupZI8d+7ExOighRCCh1kcHYeM8+3zqitkSojD+T7+opYS7QU0TFAS2FlIuLQ8NZxT6daJuv9sdc65iozTGavLIY0IkYXUOeqA2b3uJN5q7wpt2DrfLG0AKcNLvvAnBlIlC6bnQUzLCILZ0bJUyESMI5LnJnfDIbNIDgGy3bTHLQE23VxKt0ggJaxDZJ4kTsQZKpykzd5NGjGTHczuWH8E1MHIu3s4RsCz3NJ4KOj6IbesgOUBjZvpkwh6pKrLyFV2ja5CYORx++6XdBipQXo6RG42ls\/8EMKs44IbeerU1i5v8n1zrRkcQp\/opiPivkhOpTNH5+r2IRyPgr\/h2LPMucacDpZ+1e\/gGAUBaMoGB2im5wr2IrxcTi+oGC9gDkTssDBtHzv9o+3JIMBmasiE3YSudIZ6JzYZWbWUC8oAplNsG3\/LdSvdgdU9z+n+h8F\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit ECharts in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<p id=\"xgcMIVQ\"><img decoding=\"async\" width=\"1195\" height=\"1243\" class=\"alignnone size-full wp-image-1293 \" src=\"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b13bdc4f2.png\" alt=\"\" srcset=\"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b13bdc4f2.png 1195w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b13bdc4f2-288x300.png 288w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b13bdc4f2-984x1024.png 984w, https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b13bdc4f2-768x799.png 768w\" sizes=\"(max-width: 1195px) 100vw, 1195px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>Strategic Best Practices<\/h2>\n<ul>\n<li><strong>First Segment Baseline:<\/strong> The segment closest to the Y-axis baseline is the easiest to compare across categories. Always place your most critical component as the first series object.<\/li>\n<li><strong>Limit Stacked Components:<\/strong> Keep the total number of stacked segments to 5 or fewer per bar to maintain clear visual analysis without overwhelming the viewer.<\/li>\n<li><strong>In-Bar Text Labels:<\/strong> For horizontal stacked bars with wide segments, consider enabling <code>label: { show: true, position: 'inside' }<\/code> to make individual segment values readable without relying on hover tooltips.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>For analyzing component breakdowns across items with long category titles, the Stacked Bar Chart is the ideal choice. By stacking data segments horizontally from left to right along the Y-axis, this visualization maintains long label clarity while showing both the&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":1254,"menu_order":4,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-1289","ld_docs","type-ld_docs","status-publish","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ECharts Stacked Bar Chart | VPasCode Text to Diagram Guide<\/title>\n<meta name=\"description\" content=\"Script stacked horizontal bar visuals from raw data with ECharts in VPasCode, a diagram-as-code tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ECharts Stacked Bar Chart | VPasCode Text to Diagram Guide\" \/>\n<meta property=\"og:description\" content=\"Script stacked horizontal bar visuals from raw data with ECharts in VPasCode, a diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-30T01:26:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\\\/\",\"name\":\"ECharts Stacked Bar Chart | VPasCode Text to Diagram Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/wp-content\\\/uploads\\\/sites\\\/9\\\/2026\\\/07\\\/img_6a66b11b508fe.png\",\"datePublished\":\"2026-07-27T01:13:45+00:00\",\"dateModified\":\"2026-07-30T01:26:45+00:00\",\"description\":\"Script stacked horizontal bar visuals from raw data with ECharts in VPasCode, a diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\\\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/wp-content\\\/uploads\\\/sites\\\/9\\\/2026\\\/07\\\/img_6a66b11b508fe.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/wp-content\\\/uploads\\\/sites\\\/9\\\/2026\\\/07\\\/img_6a66b11b508fe.png\",\"width\":1377,\"height\":1363},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ECharts Playbook\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Stacked Bar Chart: Horizontal Part-to-Whole Breakdown\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/wp-content\\\/uploads\\\/sites\\\/9\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/wp-content\\\/uploads\\\/sites\\\/9\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/pl\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ECharts Stacked Bar Chart | VPasCode Text to Diagram Guide","description":"Script stacked horizontal bar visuals from raw data with ECharts in VPasCode, a diagram-as-code tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/","og_locale":"pl_PL","og_type":"article","og_title":"ECharts Stacked Bar Chart | VPasCode Text to Diagram Guide","og_description":"Script stacked horizontal bar visuals from raw data with ECharts in VPasCode, a diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/","og_site_name":"VPasCode","article_modified_time":"2026-07-30T01:26:45+00:00","og_image":[{"url":"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Szacowany czas czytania":"2 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/","url":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/","name":"ECharts Stacked Bar Chart | VPasCode Text to Diagram Guide","isPartOf":{"@id":"https:\/\/www.vpascode.com\/pl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe.png","datePublished":"2026-07-27T01:13:45+00:00","dateModified":"2026-07-30T01:26:45+00:00","description":"Script stacked horizontal bar visuals from raw data with ECharts in VPasCode, a diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe.png","contentUrl":"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/07\/img_6a66b11b508fe.png","width":1377,"height":1363},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/stacked-bar-chart-horizontal-part-to-whole-breakdown-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/pl\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/pl\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"ECharts Playbook","item":"https:\/\/www.vpascode.com\/pl\/docs\/vpascode-docs\/echarts-playbook\/"},{"@type":"ListItem","position":4,"name":"Stacked Bar Chart: Horizontal Part-to-Whole Breakdown"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/pl\/#website","url":"https:\/\/www.vpascode.com\/pl\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/pl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/pl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/pl\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/pl\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.vpascode.com\/pl\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/pl\/wp-content\/uploads\/sites\/9\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/pl\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/ld_docs\/1289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/users\/3"}],"up":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/ld_docs\/1254"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/media?parent=1289"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/pl\/wp-json\/wp\/v2\/ld_collection?post=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}