{"id":2071,"date":"2026-07-24T09:00:08","date_gmt":"2026-07-24T09:00:08","guid":{"rendered":"https:\/\/www.vpascode.com\/vn\/docs\/uncategorized\/column-chart-core-setup-styling-and-layout-guide\/"},"modified":"2026-07-24T09:00:08","modified_gmt":"2026-07-24T09:00:08","slug":"column-chart-core-setup-styling-and-layout-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide","title":{"rendered":"Bi\u1ec3u \u0111\u1ed3 c\u1ed9t: C\u00e0i \u0111\u1eb7t c\u1ed1t l\u00f5i, \u0111\u1ecbnh d\u1ea1ng v\u00e0 b\u1ed1 c\u1ee5c"},"content":{"rendered":"<p>Trong l\u0129nh v\u1ef1c tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u v\u00e0 b\u00e1o c\u00e1o, <strong>Bi\u1ec3u \u0111\u1ed3 c\u1ed9t<\/strong> (m\u1ed9t bi\u1ec3u \u0111\u1ed3 c\u1ed9t th\u1eb3ng \u0111\u1ee9ng) l\u00e0 c\u00f4ng c\u1ee5 ch\u00ednh \u0111\u1ec3 so s\u00e1nh c\u00e1c danh m\u1ee5c r\u1eddi r\u1ea1c theo m\u1ed9t ho\u1eb7c nhi\u1ec1u ch\u1ec9 s\u1ed1. Kh\u00e1c v\u1edbi bi\u1ec3u \u0111\u1ed3 c\u1ed9t ngang ph\u00f9 h\u1ee3p v\u1edbi c\u00e1c nh\u00e3n v\u0103n b\u1ea3n d\u00e0i, bi\u1ec3u \u0111\u1ed3 c\u1ed9t th\u1eb3ng \u0111\u1ee9ng s\u1eed d\u1ee5ng s\u1ef1 kh\u00e1c bi\u1ec7t v\u1ec1 chi\u1ec1u cao \u0111\u1ec3 ngay l\u1eadp t\u1ee9c truy\u1ec1n \u0111\u1ea1t <em>kh\u1ed1i l\u01b0\u1ee3ng, t\u0103ng tr\u01b0\u1edfng v\u00e0 \u0111\u1ed9 bi\u1ebfn thi\u00ean<\/em>. D\u00f9 b\u1ea1n \u0111ang hi\u1ec3n th\u1ecb s\u1ed1 li\u1ec7u doanh thu theo qu\u00fd, c\u00e1c \u0111\u1ee3t t\u0103ng \u0111\u1ed9t bi\u1ebfn s\u1eed d\u1ee5ng CPU c\u1ee7a m\u00e1y ch\u1ee7 hay l\u01b0u l\u01b0\u1ee3ng truy c\u1eadp web theo k\u00eanh, bi\u1ec3u \u0111\u1ed3 c\u1ed9t \u0111\u1ec1u cung c\u1ea5p m\u1ed9t chu\u1ea9n h\u00ecnh \u1ea3nh r\u00f5 r\u00e0ng cho c\u00e1c ch\u1ec9 s\u1ed1 d\u1ef1a tr\u00ean danh m\u1ee5c.<\/p>\n<h2>C\u01a1 ch\u1ebf c\u1ee7a c\u00e1c c\u1ed9t th\u1eb3ng \u0111\u1ee9ng<\/h2>\n<p>Trong Apache ECharts, c\u1ea3 bi\u1ec3u \u0111\u1ed3 c\u1ed9t ngang v\u00e0 bi\u1ec3u \u0111\u1ed3 c\u1ed9t th\u1eb3ng \u0111\u1ee9ng \u0111\u1ec1u d\u1ef1a v\u00e0o lo\u1ea1i chu\u1ed7i <code>'bar'<\/code> lo\u1ea1i chu\u1ed7i. Y\u1ebfu t\u1ed1 then ch\u1ed1t t\u1ea1o n\u00ean bi\u1ec3u \u0111\u1ed3 c\u1ed9t l\u00e0 \u0111\u1eb7t c\u00e1c nh\u00e3n danh m\u1ee5c tr\u00ean tr\u1ee5c ngang (<code>xAxis<\/code>) trong khi \u0111\u1eb7t tr\u1ee5c \u0111\u1ee9ng (<code>yAxis<\/code>) th\u00e0nh c\u00e1c gi\u00e1 tr\u1ecb s\u1ed1. B\u1ed9 x\u1eed l\u00fd bi\u1ec3u \u0111\u1ed3 \u0111\u1ecdc m\u1ea3ng d\u1eef li\u1ec7u v\u00e0 thay \u0111\u1ed5i chi\u1ec1u cao c\u1ee7a t\u1eebng c\u1ed9t th\u1eb3ng \u0111\u1ee9ng m\u1ed9t c\u00e1ch \u0111\u1ed9ng theo thang s\u1ed1.<\/p>\n<h3>1. C\u00e0i \u0111\u1eb7t c\u01a1 b\u1ea3n<\/h3>\n<p>\u0110\u1ec3 x\u00e2y d\u1ef1ng bi\u1ec3u \u0111\u1ed3 c\u1ed9t c\u01a1 b\u1ea3n, h\u00e3y x\u00e1c \u0111\u1ecbnh tr\u1ee5c X d\u1ef1a tr\u00ean danh m\u1ee5c v\u00e0 \u00e1nh x\u1ea1 t\u1eadp d\u1eef li\u1ec7u c\u1ee7a b\u1ea1n v\u00e0o m\u1ed9t \u0111\u1ed1i t\u01b0\u1ee3ng chu\u1ed7i v\u1edbi <code>type: 'bar'<\/code>:<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">ECharts<\/span>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eq++XnqOgrqIaWpICo8NQXMyygFUW5FmSAqOLEETJXmqcdCDKiFGlSJy8ayxByggaiKi1OLMlOBqqMRqpE0ImlOSixCdimSaw2NDHQUjAyAhKEpkLAAYnMQxxBEGBvEIjTVQphAkVprAPvmQWA=\" rel=\"noopener noreferrer\" target=\"_blank\">\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><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>\n<span>Ch\u1ec9nh s\u1eeda ECharts trong VPasCode<\/span>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\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\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eohGQ93r1TwSMxU11GAcpwSEeyQYxsQHL8jzbkIXvDhhaVImh7uWlwJ4joDucsV\/DIe7lpboh4LsbAWanElLheWJeaUpqqjKi5OLcpMBaqORqhG0oikOSmxCNlnSL4zNDLQUTAyABKGpkDCAojNQRxDEGFsEIvQVAthAkVqrQH04F0k\" \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 class=\"language-echarts\" data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    xAxis: {\r\n        type: 'category',\r\n        data: ['Th\u1ee9 Hai', 'Th\u1ee9 Ba', 'Th\u1ee9 T\u01b0', 'Th\u1ee9 N\u0103m', 'Th\u1ee9 S\u00e1u', 'Th\u1ee9 B\u1ea3y', 'Ch\u1ee7 Nh\u1eadt']\r\n    },\r\n    yAxis: {\r\n        type: 'value'\r\n    },\r\n    series: [\r\n        {\r\n            type: 'bar',\r\n            data: [120, 200, 150, 80, 70, 110, 130]\r\n        }\r\n    ]\r\n};<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eohGQ93r1TwSMxU11GAcpwSEeyQYxsQHL8jzbkIXvDhhaVImh7uWlwJ4joDucsV\/DIe7lpboh4LsbAWanElLheWJeaUpqqjKi5OLcpMBaqORqhG0oikOSmxCNlnSL4zNDLQUTAyABKGpkDCAojNQRxDEGFsEIvQVAthAkVqrQH04F0k\" \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             <\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eq++XnqOgrqIaWpICo8NQXMyygFUW5FmSAqOLEETJXmqcdCDKiFGlSJy8ayxByggaiKi1OLMlOBqqMRqpE0ImlOSixCdimSaw2NDHQUjAyAhKEpkLAAYnMQxxBEGBvEIjTVQphAkVprAPvmQWA=\" rel=\"noopener noreferrer\" target=\"_blank\">\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><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>\n<span>Ch\u1ec9nh s\u1eeda ECharts trong VPasCode<\/span>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"VUWYTPJ\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-1265\" decoding=\"async\" fetchpriority=\"high\" height=\"1289\" sizes=\"(max-width: 1342px) 100vw, 1342px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09.png 1342w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09-300x288.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09-1024x984.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09-768x738.png 768w\" width=\"1342\"\/><\/p>\n<p>\u00a0<\/p>\n<h2>C\u00e1c k\u1ef9 thu\u1eadt c\u1ea5u tr\u00fac n\u00e2ng cao<\/h2>\n<p>Khi x\u00e2y d\u1ef1ng b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n, c\u00e1c bi\u1ec3u \u0111\u1ed3 \u0111\u01a1n gi\u1ea3n m\u1ed9t chu\u1ed7i th\u01b0\u1eddng kh\u00f4ng \u0111\u1ee7. ECharts cung c\u1ea5p c\u00e1c t\u00f9y ch\u1ecdn c\u00fa ph\u00e1p s\u1ea1ch \u0111\u1ec3 qu\u1ea3n l\u00fd so s\u00e1nh \u0111a chu\u1ed7i, c\u00e1c chi\u1ec1u t\u00f9y ch\u1ec9nh v\u00e0 kho\u1ea3ng c\u00e1ch b\u1ed1 c\u1ee5c.<\/p>\n<h3>So s\u00e1nh \u0111a chu\u1ed7i<\/h3>\n<p>\u0110\u1ec3 so s\u00e1nh nhi\u1ec1u t\u1eadp d\u1eef li\u1ec7u c\u1ea1nh nhau (v\u00ed d\u1ee5 nh\u01b0 doanh thu theo n\u0103m), h\u00e3y th\u00eam nhi\u1ec1u \u0111\u1ed1i t\u01b0\u1ee3ng b\u00ean trong m\u1ea3ng <code>series<\/code>m\u1ea3ng. B\u1ed9 \u0111\u1ed9ng l\u1ef1c b\u1ed1 c\u1ee5c s\u1ebd nh\u00f3m c\u00e1c c\u1ed9t li\u00ean quan theo t\u1eebng danh m\u1ee5c d\u1ecdc theo tr\u1ee5c X:<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">ECharts<\/span>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eqBhuo6CuqBRmDSGEyaqMdC1NVC1VfiMrgsMac0VR1VcXFqUWYqUHU0QjWSRhDIS8wFaTYyMDJVCEotS80DmqGDqgRqflJiEboM1N3GRgY6CsbGRkDCwBDEMolFqKvVIcJuM7LtNgLZbWgBtNvQEmi3EardECZQpNYaANjuVxw=\" rel=\"noopener noreferrer\" target=\"_blank\">\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><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>\n<span>Ch\u1ec9nh s\u1eeda ECharts trong VPasCode<\/span>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\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\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eqBhuo6CuqBRmDSGEyaqMdC1NVC1VfiMrgsMac0VR1VcXFqUWYqUHU0QjWSRhDIS8wFaXbJT8zLUCjJKFUwMjAyRXYbkg1JiUXoMlCXGxsZ6CgYGxsBCQNDEMskFqGuVock281Itt0IZLuhBdB2Q0ug7UaotkOYQJFaawBsxFge\" \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 class=\"language-echarts\" data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    xAxis: {\r\n        type: 'category',\r\n        data: ['Q1', 'Q2', 'Q3', 'Q4']\r\n    },\r\n    yAxis: {\r\n        type: 'value'\r\n    },\r\n    series: [\r\n        {\r\n            name: 'Doanh thu 2025',\r\n            type: 'bar',\r\n            data: [320, 332, 301, 334]\r\n        },\r\n        {\r\n            name: 'Doanh thu 2026',\r\n            type: 'bar',\r\n            data: [220, 182, 191, 234]\r\n        }\r\n    ]\r\n};<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eqBhuo6CuqBRmDSGEyaqMdC1NVC1VfiMrgsMac0VR1VcXFqUWYqUHU0QjWSRhDIS8wFaXbJT8zLUCjJKFUwMjAyRXYbkg1JiUXoMlCXGxsZ6CgYGxsBCQNDEMskFqGuVock281Itt0IZLuhBdB2Q0ug7UaotkOYQJFaawBsxFge\" \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             <\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eqBhuo6CuqBRmDSGEyaqMdC1NVC1VfiMrgsMac0VR1VcXFqUWYqUHU0QjWSRhDIS8wFaTYyMDJVCEotS80DmqGDqgRqflJiEboM1N3GRgY6CsbGRkDCwBDEMolFqKvVIcJuM7LtNgLZbWgBtNvQEmi3EardECZQpNYaANjuVxw=\" rel=\"noopener noreferrer\" target=\"_blank\">\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><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>\n<span>Ch\u1ec9nh s\u1eeda ECharts trong VPasCode<\/span>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"tbJKJqG\"><img alt=\"\" class=\"alignnone size-full wp-image-1266\" decoding=\"async\" height=\"1290\" sizes=\"(max-width: 1342px) 100vw, 1342px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632aae648d0.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632aae648d0.png 1342w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632aae648d0-300x288.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632aae648d0-1024x984.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632aae648d0-768x738.png 768w\" width=\"1342\"\/><\/p>\n<p>\u00a0<\/p>\n<h3>Phong c\u00e1ch c\u1ed9t t\u00f9y ch\u1ec9nh v\u00e0 l\u00e0m n\u1ed5i b\u1eadt t\u1eebng \u0111i\u1ec3m d\u1eef li\u1ec7u ri\u00eang l\u1ebb<\/h3>\n<p>B\u1ea1n c\u00f3 th\u1ec3 \u00e1p d\u1ee5ng c\u00e1c phong c\u00e1ch to\u00e0n c\u1ee5c cho to\u00e0n b\u1ed9 chu\u1ed7i ho\u1eb7c nh\u1eafm tr\u1ef1c ti\u1ebfp \u0111\u1ebfn c\u00e1c \u0111i\u1ec3m d\u1eef li\u1ec7u c\u1ee5 th\u1ec3. \u0110i\u1ec1u n\u00e0y \u0111\u1eb7c bi\u1ec7t h\u1eefu \u00edch \u0111\u1ec3 l\u00e0m n\u1ed5i b\u1eadt c\u00e1c s\u1ef1 ki\u1ec7n quan tr\u1ecdng, c\u00e1c \u0111i\u1ec3m ngo\u1ea1i l\u1ec7 ho\u1eb7c c\u00e1c m\u1ee5c ti\u00eau c\u1ee5 th\u1ec3.<\/p>\n<ul>\n<li><code>m\u00e0u s\u1eafc<\/code>: Thi\u1ebft l\u1eadp m\u00e0u \u0111\u1ed5 (hex, RGB ho\u1eb7c gradient tuy\u1ebfn t\u00ednh).<\/li>\n<li><code>b\u00e1n k\u00ednh vi\u1ec1n<\/code>: Th\u00eam vi\u1ec1n bo tr\u00f2n cho c\u00e1c c\u1ed9t (v\u00ed d\u1ee5: <code>[5, 5, 0, 0]<\/code> cho c\u00e1c g\u00f3c tr\u00ean).<\/li>\n<li><code>\u0111\u1ed9 m\u1edd<\/code>: \u0110i\u1ec1u ch\u1ec9nh \u0111\u1ed9 trong su\u1ed1t c\u1ee7a c\u1ed9t.<\/li>\n<li><code>m\u1edd \u0111\u1ed5 b\u00f3ng<\/code> &amp; <code>m\u00e0u \u0111\u1ed5 b\u00f3ng<\/code>: Th\u00eam \u0111\u1ed9 n\u00e2ng cao v\u00e0 b\u00f3ng \u0111\u1ed5 cho c\u00e1c c\u1ed9t.<\/li>\n<\/ul>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">ECharts<\/span>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp9ULFqwzAQ3Qv9h4MMWgRREjelLh0MLXTq0ECX4EGxDkdEtowstzHB\/14pTRs7kfs4ge7p3ene6cpKXcITHG5vwGGf7GUd\/2Yetq0wBpJxi7k2LaHnJ8Etj2FNnqXBzBIK5KXgUvlLIuAN7Zc2u9qnH1KghkQckxVyk21J+tOoOzVsx37+5KpBMhTXaCQ69fqs7hX2ijfc9CfuTT0kPRZzRgPsYh5gD9eUx3HWGCI2o2HBdAqvMt8qdyxwqGWZK4QK+Q4yrZqiDJdJi8XKtgrjsZ89XAdtnOkJ4tKB0HHpRhuB5p0L2fg1Lim4YC7ScE13TXfBZUUh9oENyfRC9L+9P1t30T3LgrYu7EQUoqCdno3T1Qm6x2+mrpw7\" rel=\"noopener noreferrer\" target=\"_blank\">\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><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>\n<span>Ch\u1ec9nh s\u1eeda ECharts trong VPasCode<\/span>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\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\/editor\/#echarts:eNp9ULFOwzAQ3ZH4h5MYvFhqaEMRQQwMbDAA3aoMbmIViyQurlM1qvIBjAwMbFSsMLAmA0MR\/+E\/wS6FJq3Dk2Wfn9+d7x0fScYTOIHZ7g5oTE+nbOz93gxkNqIeoIBIOuQiQ3j9FBJJPOijnlDlewCSqeJjhDCgs5iwyAQXqpgnQ7hLVfGiz2Ax54a+rNxhwkK6ZHuL1xhuTZEY+T+\/5Kvfsqa2JiRKKaqLx1QwqtX9tbqSWEkeEFG1U7FUJw06bQdb2E7bws62KYNlrx64zj62C1otOF88x5Co8pHBQBVvEmJVPkkIlvvngyrvkxt9fs0TiFRR2uswSeNrmUXUa2rFIOARF3oKe5R2NRBulg64CKm4IiFLzVy7GPRy9PLtOfk2nVun59rYI6dO+hui\/+392TpwD53AamvDjovBtdqp2FiFWpAffwMI7r3q\" \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 class=\"language-echarts\" data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    xAxis: {\r\n        type: 'category',\r\n        data: ['Tr\u1ef1c ti\u1ebfp', 'Email', 'M\u1ea1ng qu\u1ea3ng c\u00e1o', 'Qu\u1ea3ng c\u00e1o video', 'T\u00ecm ki\u1ebfm']\r\n    },\r\n    yAxis: {\r\n        type: 'value'\r\n    },\r\n    series: [\r\n        {\r\n            type: 'bar',\r\n            data: [\r\n                320,\r\n                332,\r\n                {\r\n                    value: 401,\r\n                    \/\/ L\u00e0m n\u1ed5i b\u1eadt m\u1ed9t c\u1ed9t \u0111\u1ec9nh \u0111\u01a1n l\u1ebb\r\n                    itemStyle: {\r\n                        color: '#ee6666',\r\n                        borderRadius: [6, 6, 0, 0]\r\n                    }\r\n                },\r\n                334,\r\n                390\r\n            ],\r\n            itemStyle: {\r\n                color: '#5470c6',\r\n                borderRadius: [4, 4, 0, 0]\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\/editor\/#echarts:eNp9ULFOwzAQ3ZH4h5MYvFhqaEMRQQwMbDAA3aoMbmIViyQurlM1qvIBjAwMbFSsMLAmA0MR\/+E\/wS6FJq3Dk2Wfn9+d7x0fScYTOIHZ7g5oTE+nbOz93gxkNqIeoIBIOuQiQ3j9FBJJPOijnlDlewCSqeJjhDCgs5iwyAQXqpgnQ7hLVfGiz2Ax54a+rNxhwkK6ZHuL1xhuTZEY+T+\/5Kvfsqa2JiRKKaqLx1QwqtX9tbqSWEkeEFG1U7FUJw06bQdb2E7bws62KYNlrx64zj62C1otOF88x5Co8pHBQBVvEmJVPkkIlvvngyrvkxt9fs0TiFRR2uswSeNrmUXUa2rFIOARF3oKe5R2NRBulg64CKm4IiFLzVy7GPRy9PLtOfk2nVun59rYI6dO+hui\/+392TpwD53AamvDjovBtdqp2FiFWpAffwMI7r3q\" \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             <\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp9ULFqwzAQ3Qv9h4MMWgRREjelLh0MLXTq0ECX4EGxDkdEtowstzHB\/14pTRs7kfs4ge7p3ene6cpKXcITHG5vwGGf7GUd\/2Yetq0wBpJxi7k2LaHnJ8Etj2FNnqXBzBIK5KXgUvlLIuAN7Zc2u9qnH1KghkQckxVyk21J+tOoOzVsx37+5KpBMhTXaCQ69fqs7hX2ijfc9CfuTT0kPRZzRgPsYh5gD9eUx3HWGCI2o2HBdAqvMt8qdyxwqGWZK4QK+Q4yrZqiDJdJi8XKtgrjsZ89XAdtnOkJ4tKB0HHpRhuB5p0L2fg1Lim4YC7ScE13TXfBZUUh9oENyfRC9L+9P1t30T3LgrYu7EQUoqCdno3T1Qm6x2+mrpw7\" rel=\"noopener noreferrer\" target=\"_blank\">\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><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>\n<span>Ch\u1ec9nh s\u1eeda ECharts trong VPasCode<\/span>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"cHxaMni\"><img alt=\"\" class=\"alignnone size-full wp-image-1267\" decoding=\"async\" height=\"1288\" sizes=\"(max-width: 1342px) 100vw, 1342px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632abcbd233.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632abcbd233.png 1342w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632abcbd233-300x288.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632abcbd233-1024x983.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632abcbd233-768x737.png 768w\" width=\"1342\"\/><\/p>\n<p>\u00a0<\/p>\n<h2>Tinh ch\u1ec9nh b\u1ed1 c\u1ee5c v\u00e0 k\u00edch th\u01b0\u1edbc<\/h2>\n<p>K\u00edch th\u01b0\u1edbc c\u1ed9t v\u00e0 kho\u1ea3ng c\u00e1ch gi\u1eefa c\u00e1c c\u1ed9t \u1ea3nh h\u01b0\u1edfng \u0111\u00e1ng k\u1ec3 \u0111\u1ebfn \u0111\u1ed9 d\u1ec5 \u0111\u1ecdc, \u0111\u1eb7c bi\u1ec7t khi hi\u1ec3n th\u1ecb bi\u1ec3u \u0111\u1ed3 tr\u00ean c\u00e1c m\u00e0n h\u00ecnh ph\u1ea3n h\u1ed3i ho\u1eb7c b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n d\u00e0y \u0111\u1eb7c.<\/p>\n<h3>1. Ki\u1ec3m so\u00e1t chi\u1ec1u r\u1ed9ng v\u00e0 gi\u1edbi h\u1ea1n<\/h3>\n<p>M\u1eb7c \u0111\u1ecbnh, chi\u1ec1u r\u1ed9ng c\u1ed9t thay \u0111\u1ed5i \u0111\u1ed9ng d\u1ef1a tr\u00ean k\u00edch th\u01b0\u1edbc khung bi\u1ec3u \u0111\u1ed3. B\u1ea1n c\u00f3 th\u1ec3 ki\u1ec3m so\u00e1t c\u00e1c t\u1ef7 l\u1ec7 n\u00e0y b\u1eb1ng c\u00e1ch s\u1eed d\u1ee5ng c\u00e1c thu\u1ed9c t\u00ednh \u0111\u1ecbnh k\u00edch th\u01b0\u1edbc:<\/p>\n<ul>\n<li><code>barWidth<\/code>: X\u00e1c \u0111\u1ecbnh chi\u1ec1u r\u1ed9ng c\u1ed9t b\u1eb1ng pixel c\u1ed1 \u0111\u1ecbnh ho\u1eb7c ph\u1ea7n tr\u0103m chi\u1ec1u r\u1ed9ng danh m\u1ee5c (v\u00ed d\u1ee5: <code>'30%'<\/code>).<\/li>\n<li><code>barMaxWidth<\/code>: Thi\u1ebft l\u1eadp gi\u1edbi h\u1ea1n tr\u00ean cho chi\u1ec1u r\u1ed9ng \u0111\u1ec3 c\u00e1c c\u1ed9t kh\u00f4ng b\u1ecb k\u00e9o d\u00e0i qu\u00e1 m\u1ee9c tr\u00ean m\u00e0n h\u00ecnh r\u1ed9ng.<\/li>\n<li><code>chi\u1ec1u cao t\u1ed1i thi\u1ec3u thanh<\/code>: \u00c1p d\u1ee5ng chi\u1ec1u cao t\u1ed1i thi\u1ec3u theo pixel \u0111\u1ec3 c\u00e1c gi\u00e1 tr\u1ecb g\u1ea7n b\u1eb1ng kh\u00f4ng v\u1eabn c\u00f3 th\u1ec3 nh\u1ea5p v\u00e0o v\u00e0 hi\u1ec3n th\u1ecb r\u00f5 r\u00e0ng.<\/li>\n<\/ul>\n<h3>2. Kho\u1ea3ng c\u00e1ch c\u1ed9t v\u00e0 c\u00e1c \u0111\u01b0\u1eddng n\u1ec1n \u0111\u1ea7y \u0111\u1ee7 chi\u1ec1u cao<\/h3>\n<p>\u0110\u1ec3 c\u00e1c c\u1ed9t c\u1ee7a b\u1ea1n c\u00f3 v\u1ebb ngo\u00e0i hi\u1ec7n \u0111\u1ea1i nh\u01b0 b\u1ea3ng \u0111i\u1ec1u khi\u1ec3n, h\u00e3y \u0111i\u1ec1u ch\u1ec9nh kho\u1ea3ng c\u00e1ch b\u00ean trong ho\u1eb7c b\u1eadt c\u00e1c \u0111\u01b0\u1eddng n\u1ec1n \u0111\u1ea7y \u0111\u1ee7 chi\u1ec1u cao:<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">ECharts<\/span>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp1UMFqwzAMvQ\/2D7oMbxCKU1o2PHpYD731sg16KDm4sUjMQlwUu2sY+ffJXUvSlAlbstB7Tw+7vbeuhgX83N8Bx\/HtaBt16WL4do8KRK49Fo5akfQjo71WsBVrV4sExGfAWDZoTl0ZYlmRFdkfpTtT2\/92HHTFEtfgBskio7c9ekAckHeaht4G\/tKpTGAqOaVzTi98n2U2wjJ9Y40vWWkmH8ZKTem+lzr\/KsiF2ijwFPBG4DL+8G2FamwzRu4qR7yBip1+TKORPslJOn8a7z0JOzJI79rYEP9hlgCfSMiusV3fnp8M6F5\/AdZQatk=\" rel=\"noopener noreferrer\" target=\"_blank\">\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><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>\n<span>Ch\u1ec9nh s\u1eeda ECharts trong VPasCode<\/span>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\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\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eohGQ93r1TwSMxU11GAcpwSEeyQYxsQHL8jzbkIXvDhhaXqsRATa6EmV+JyQlliTmmqOqri4tSizFSg6miEaiSNSJqTEouQnY7kfEMjAx0FIwMgYWgKJCyA2NwgFk0tUHt4ZkpJBtAkEwNVdJOKM\/LLnRKTs9OL8kvzUqwUSopKUzEMgEkHl1TmpFqhOxMEkvNz8ouANhSlJyVqGIIcgiAM9AxNNdHtBRucX5SSWhSUmJJZCgoHEx0FIAJpiEVVW4vgQplABbXWALPDfGE=\" \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 class=\"language-echarts\" data-language=\"echarts\" class=\"language-echarts\">option = {\r\n    xAxis: {\r\n        type: 'category',\r\n        data: ['Th\u1ee9 Hai', 'Th\u1ee9 Ba', 'Th\u1ee9 T\u01b0', 'Th\u1ee9 N\u0103m', 'Th\u1ee9 S\u00e1u']\r\n    },\r\n    yAxis: {\r\n        type: 'value'\r\n    },\r\n    series: [\r\n        {\r\n            type: 'bar',\r\n            data: [120, 200, 150, 80, 70],\r\n            barWidth: '40%',\r\n            showBackground: true,\r\n            backgroundStyle: {\r\n                color: 'rgba(180, 180, 180, 0.15)',\r\n                borderRadius: [4, 4, 0, 0]\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\/editor\/#echarts:eNrLLyjJzM9TsFWo5uVSAIIKx4rMYisYDwRKKgtSrRTUkxNLUtPziyrVdRBSKYkliVYK0eohGQ93r1TwSMxU11GAcpwSEeyQYxsQHL8jzbkIXvDhhaXqsRATa6EmV+JyQlliTmmqOqri4tSizFSg6miEaiSNSJqTEouQnY7kfEMjAx0FIwMgYWgKJCyA2NwgFk0tUHt4ZkpJBtAkEwNVdJOKM\/LLnRKTs9OL8kvzUqwUSopKUzEMgEkHl1TmpFqhOxMEkvNz8ouANhSlJyVqGIIcgiAM9AxNNdHtBRucX5SSWhSUmJJZCgoHEx0FIAJpiEVVW4vgQplABbXWALPDfGE=\" \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             <\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp1UMFqwzAMvQ\/2D7oMbxCKU1o2PHpYD731sg16KDm4sUjMQlwUu2sY+ffJXUvSlAlbstB7Tw+7vbeuhgX83N8Bx\/HtaBt16WL4do8KRK49Fo5akfQjo71WsBVrV4sExGfAWDZoTl0ZYlmRFdkfpTtT2\/92HHTFEtfgBskio7c9ekAckHeaht4G\/tKpTGAqOaVzTi98n2U2wjJ9Y40vWWkmH8ZKTem+lzr\/KsiF2ijwFPBG4DL+8G2FamwzRu4qR7yBip1+TKORPslJOn8a7z0JOzJI79rYEP9hlgCfSMiusV3fnp8M6F5\/AdZQatk=\" rel=\"noopener noreferrer\" target=\"_blank\">\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><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>\n<span>Ch\u1ec9nh s\u1eeda ECharts trong VPasCode<\/span>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"BHRqcrl\"><img loading=\"lazy\" alt=\"\" class=\"alignnone size-full wp-image-1268\" decoding=\"async\" height=\"1289\" loading=\"lazy\" sizes=\"auto, (max-width: 1342px) 100vw, 1342px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632acbc8d7d.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632acbc8d7d.png 1342w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632acbc8d7d-300x288.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632acbc8d7d-1024x984.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632acbc8d7d-768x738.png 768w\" width=\"1342\"\/><\/p>\n<p>\u00a0<\/p>\n<h2>C\u00e1c th\u1ef1c h\u00e0nh t\u1ed1t chi\u1ebfn l\u01b0\u1ee3c<\/h2>\n<ul>\n<li><strong>Duy tr\u00ec kho\u1ea3ng c\u00e1ch c\u00e2n b\u1eb1ng:<\/strong>Tr\u00e1nh \u0111\u1eb7t<code>barWidth<\/code>qu\u00e1 r\u1ed9ng (tr\u00ean 60%) \u0111\u1ec3 tr\u00e1nh b\u1ed1 c\u1ee5c h\u00ecnh \u1ea3nh c\u1ea3m gi\u00e1c qu\u00e1 ch\u1eadt ch\u1ed9i.<\/li>\n<li><strong>Quy\u1ebft \u0111\u1ecbnh theo h\u01b0\u1edbng ngang hay d\u1ecdc:<\/strong>S\u1eed d\u1ee5ng bi\u1ec3u \u0111\u1ed3 c\u1ed9t khi nh\u00e3n danh m\u1ee5c ng\u1eafn (v\u00ed d\u1ee5: th\u00e1ng, qu\u00fd, m\u00e3). N\u1ebfu nh\u00e3n c\u1ee7a b\u1ea1n l\u00e0 m\u00f4 t\u1ea3 d\u00e0i ho\u1eb7c t\u00ean, h\u00e3y c\u00e2n nh\u1eafc chuy\u1ec3n d\u1eef li\u1ec7u danh m\u1ee5c sang tr\u1ee5c <code>yAxis<\/code>\u0111\u1ec3 t\u1ea1o bi\u1ec3u \u0111\u1ed3 c\u1ed9t ngang thay v\u00ec bi\u1ec3u \u0111\u1ed3 c\u1ed9t d\u1ecdc.<\/li>\n<li><strong>T\u00ednh to\u00e0n v\u1eb9n \u0111\u01b0\u1eddng c\u01a1 s\u1edf b\u1eb1ng kh\u00f4ng:<\/strong>Lu\u00f4n gi\u1eef tr\u1ee5c s\u1ed1 b\u1eaft \u0111\u1ea7u t\u1eeb zero (<code>0<\/code>). C\u1eaft b\u1ecf ph\u1ea7n thang \u0111o ph\u00eda d\u01b0\u1edbi trong bi\u1ec3u \u0111\u1ed3 c\u1ed9t s\u1ebd l\u00e0m m\u00e9o l\u1ec7ch t\u1ef7 l\u1ec7 chi\u1ec1u cao v\u00e0 g\u00e2y hi\u1ec3u l\u1ea7m cho ng\u01b0\u1eddi xem.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"Trong l\u0129nh v\u1ef1c tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u v\u00e0 b\u00e1o c\u00e1o, Bi\u1ec3u \u0111\u1ed3 c\u1ed9t (m\u1ed9t bi\u1ec3u \u0111\u1ed3 c\u1ed9t th\u1eb3ng \u0111\u1ee9ng) l\u00e0 c\u00f4ng c\u1ee5 ch\u00ednh \u0111\u1ec3 so s\u00e1nh c\u00e1c danh m\u1ee5c r\u1eddi r\u1ea1c theo m\u1ed9t ho\u1eb7c nhi\u1ec1u ch\u1ec9 s\u1ed1. Kh\u00e1c v\u1edbi&#8230;","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"template":"","meta":{"_yoast_wpseo_title":"ECharts Column Chart Guide | VPasCode Text to Diagram Tool","_yoast_wpseo_metadesc":"Convert JSON data into vertical column charts with ECharts in VPasCode, your free diagram-as-code tool. Turn text to diagram models fast.","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":""}},"source_url":"","fifu_image_url":"","fifu_image_alt":"","_fifu_image_alt":"","fifu_alt":"","_fifu_alt":"","fifu_image_title":"","_fifu_image_title":"","fifu_input_alt":"","vp_image_hash":""},"ld_collection":[14],"class_list":["post-2071","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 Column Chart Guide | VPasCode Text to Diagram Tool<\/title>\n<meta name=\"description\" content=\"Convert JSON data into vertical column charts with ECharts in VPasCode, your free diagram-as-code tool. Turn text to diagram models fast.\" \/>\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\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ECharts Column Chart Guide | VPasCode Text to Diagram Tool\" \/>\n<meta property=\"og:description\" content=\"Convert JSON data into vertical column charts with ECharts in VPasCode, your free diagram-as-code tool. Turn text to diagram models fast.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 ph\u00fat\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/column-chart-core-setup-styling-and-layout-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/column-chart-core-setup-styling-and-layout-guide\\\/\",\"name\":\"ECharts Column Chart Guide | VPasCode Text to Diagram Tool\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/column-chart-core-setup-styling-and-layout-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/column-chart-core-setup-styling-and-layout-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a632a9e0db09.png\",\"datePublished\":\"2026-07-24T09:00:08+00:00\",\"description\":\"Convert JSON data into vertical column charts with ECharts in VPasCode, your free diagram-as-code tool. Turn text to diagram models fast.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/column-chart-core-setup-styling-and-layout-guide\\\/#breadcrumb\"},\"inLanguage\":\"vi\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/column-chart-core-setup-styling-and-layout-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/column-chart-core-setup-styling-and-layout-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a632a9e0db09.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a632a9e0db09.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/vpascode-docs\\\/echarts-playbook\\\/column-chart-core-setup-styling-and-layout-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bi\u1ec3u \u0111\u1ed3 c\u1ed9t: C\u00e0i \u0111\u1eb7t c\u1ed1t l\u00f5i, \u0111\u1ecbnh d\u1ea1ng v\u00e0 b\u1ed1 c\u1ee5c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"vi\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/wp-content\\\/uploads\\\/sites\\\/12\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/wp-content\\\/uploads\\\/sites\\\/12\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/vn\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ECharts Column Chart Guide | VPasCode Text to Diagram Tool","description":"Convert JSON data into vertical column charts with ECharts in VPasCode, your free diagram-as-code tool. Turn text to diagram models fast.","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\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/","og_locale":"vi_VN","og_type":"article","og_title":"ECharts Column Chart Guide | VPasCode Text to Diagram Tool","og_description":"Convert JSON data into vertical column charts with ECharts in VPasCode, your free diagram-as-code tool. Turn text to diagram models fast.","og_url":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"3 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/","url":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/","name":"ECharts Column Chart Guide | VPasCode Text to Diagram Tool","isPartOf":{"@id":"https:\/\/www.vpascode.com\/vn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09.png","datePublished":"2026-07-24T09:00:08+00:00","description":"Convert JSON data into vertical column charts with ECharts in VPasCode, your free diagram-as-code tool. Turn text to diagram models fast.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/"]}]},{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a632a9e0db09.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/vn\/docs\/vpascode-docs\/echarts-playbook\/column-chart-core-setup-styling-and-layout-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/vn\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/vn\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Bi\u1ec3u \u0111\u1ed3 c\u1ed9t: C\u00e0i \u0111\u1eb7t c\u1ed1t l\u00f5i, \u0111\u1ecbnh d\u1ea1ng v\u00e0 b\u1ed1 c\u1ee5c"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/vn\/#website","url":"https:\/\/www.vpascode.com\/vn\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/vn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/vn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/vn\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/vn\/","logo":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/www.vpascode.com\/vn\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/vn\/wp-content\/uploads\/sites\/12\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/vn\/wp-content\/uploads\/sites\/12\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/vn\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/vn\/wp-json\/wp\/v2\/ld_docs\/2071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/vn\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/vn\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/vn\/wp-json\/wp\/v2\/users\/3"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/vn\/wp-json\/wp\/v2\/media?parent=2071"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/vn\/wp-json\/wp\/v2\/ld_collection?post=2071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}