{"id":2074,"date":"2026-07-24T09:33:45","date_gmt":"2026-07-24T09:33:45","guid":{"rendered":"https:\/\/www.vpascode.com\/es\/docs\/uncategorized\/bar-chart-horizontal-layout-and-label-optimization-guide\/"},"modified":"2026-07-24T09:33:45","modified_gmt":"2026-07-24T09:33:45","slug":"bar-chart-horizontal-layout-and-label-optimization-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/","title":{"rendered":"Gr\u00e1fico de barras: dise\u00f1o horizontal y optimizaci\u00f3n de etiquetas"},"content":{"rendered":"<p>Horizontal<strong>Gr\u00e1ficos de barras<\/strong>son ideales para mostrar datos de clasificaci\u00f3n, nombres de categor\u00edas alargados o m\u00e9tricas de progreso. Al extender las barras a lo largo del eje X, esta estructura visual proporciona suficiente espacio horizontal para las etiquetas de categor\u00eda, eliminando la necesidad de inclinar o acortar el texto. Ya sea que est\u00e9 creando tablas de clasificaci\u00f3n de los 10 primeros, desgloses de respuestas de encuestas o comparaciones de rendimiento horizontales, los gr\u00e1ficos de barras ofrecen una legibilidad clara en pantallas tanto de escritorio como m\u00f3viles.<\/p>\n<h2>La mec\u00e1nica de las barras horizontales<\/h2>\n<p>En Apache ECharts, los gr\u00e1ficos de columnas y de barras utilizan exactamente el mismo<code>'bar'<\/code>tipo de serie. La transici\u00f3n a un dise\u00f1o horizontal ocurre asignando los datos de categor\u00eda directamente al eje vertical (<code>yAxis<\/code>) y definiendo el eje horizontal (<code>xAxis<\/code>) como un eje de valores num\u00e9ricos. El motor del gr\u00e1fico rota la direcci\u00f3n de renderizado, dibujando las barras horizontalmente de izquierda a derecha.<\/p>\n<h3>1. Configuraci\u00f3n esencial<\/h3>\n<p>Para crear un gr\u00e1fico de barras horizontal b\u00e1sico, establezca<code>type: 'category'<\/code> en el<code>yAxis<\/code> y proporcione su matriz de datos, mientras establece<code>type: 'value'<\/code> en el<code>xAxis<\/code>:<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">ECharts<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp1kD8LwjAQxXfB73BblgzGCkrFoTq5CeJUOpw21IOSlCT+qdLvbmorTQdvCLx3v7t3RFeOtIINvKcT8OW0Lh1V8U9\/PUNFIU0MDJ9kGR86rT5oUq7tvsHVlfSUvWKuHwyaDmz6gWfi6fHijr9jeZNsDNf\/4As6WWhTh2fk6DCGlG0NvqhkHNhe5VpJS9iK0zHpvU7vrqSQZeNAKw1Jn5gOa4Pw4IAzmjA7yJ+LBYf5MuIQRYKDiFYz\/y6EyAa8\/xPvNOsPIJ5aQg==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\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><br \/>\n<span>Editar ECharts en VPasCode<\/span><br \/>\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:eNp1kDELwjAQhXfB\/3BbliDGFpSKg4qDm4uTOJw2tAclKUnUFul\/N7WVpoMZAu\/dl3uP6NKRVrCB93QC\/jitC0dl8tNfz1CWSZMAw4os48Ok1SdNyrXTN7i6lJ6yOab6xaDpwKZ\/UG09PV7c8U8sHpKN4foffEcnM23qsEaKDhO4sJ1BSwXjwI4q1UpawlYcDjM4n2e933n7nBSy6zjUSkPSp16G1UGBoMQNTZgfdFiImMNiGXGIIsFBRKu5v2MhrgPe\/4t3mvUHgyRbAg==\" \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    tooltip: {\r\n        trigger: 'axis',\r\n        axisPointer: { type: 'shadow' }\r\n    },\r\n    xAxis: {\r\n        type: 'value'\r\n    },\r\n    yAxis: {\r\n        type: 'category',\r\n        data: ['Brasil', 'Indonesia', 'EE. UU.', 'India', 'China']\r\n    },\r\n    series: [\r\n        {\r\n            type: 'bar',\r\n            data: [214, 273, 331, 1380, 1411]\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:eNp1kDELwjAQhXfB\/3BbliDGFpSKg4qDm4uTOJw2tAclKUnUFul\/N7WVpoMZAu\/dl3uP6NKRVrCB93QC\/jitC0dl8tNfz1CWSZMAw4os48Ok1SdNyrXTN7i6lJ6yOab6xaDpwKZ\/UG09PV7c8U8sHpKN4foffEcnM23qsEaKDhO4sJ1BSwXjwI4q1UpawlYcDjM4n2e933n7nBSy6zjUSkPSp16G1UGBoMQNTZgfdFiImMNiGXGIIsFBRKu5v2MhrgPe\/4t3mvUHgyRbAg==\" \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><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp1kD8LwjAQxXfB73BblgzGCkrFoTq5CeJUOpw21IOSlCT+qdLvbmorTQdvCLx3v7t3RFeOtIINvKcT8OW0Lh1V8U9\/PUNFIU0MDJ9kGR86rT5oUq7tvsHVlfSUvWKuHwyaDmz6gWfi6fHijr9jeZNsDNf\/4As6WWhTh2fk6DCGlG0NvqhkHNhe5VpJS9iK0zHpvU7vrqSQZeNAKw1Jn5gOa4Pw4IAzmjA7yJ+LBYf5MuIQRYKDiFYz\/y6EyAa8\/xPvNOsPIJ5aQg==\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\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><br \/>\n<span>Editar ECharts en VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"YmJxmmY\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-1281\" decoding=\"async\" fetchpriority=\"high\" height=\"1283\" sizes=\"(max-width: 1314px) 100vw, 1314px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81.png 1314w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81-300x293.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81-1024x1000.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81-768x750.png 768w\" width=\"1314\"\/><\/p>\n<p>\u00a0<\/p>\n<h2>T\u00e9cnicas estructurales avanzadas<\/h2>\n<p>Los gr\u00e1ficos de barras horizontales admiten m\u00faltiples grupos de datos, resaltado dirigido y tratamientos personalizados de esquinas para dise\u00f1os modernos de paneles.<\/p>\n<h3>1. Comparaci\u00f3n horizontal m\u00faltiple de series<\/h3>\n<p>Coloque m\u00faltiples objetos en el<code>series<\/code> matriz para crear barras horizontales agrupadas por etiqueta de categor\u00eda:<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">ECharts<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNqVkL8KgzAQxvdC3+G2LBmKIP4pHWz7AB26iUOqh1iskRiLUnz3JqiYWArtLZcv+bjvd+G1LHgFB3htN6CqxByrLJylroxJFkJMnJ3jwpWJHCWhMMoolS0rSTK6Bzr2LuqKxpoh+xpDIE9Wtkhsc\/\/NnDKJORc9oZ8sF8HvmEqINMksjqY4meK8JmxQFKhS42W0AaCrYg8NYS1tOybMGxPrl4nS31EIXAqe6r6bLJ6B\/hQ7fe7fsSoyUJGe7o4ZOx7VzbB\/A4HJb\/I=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\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><br \/>\n<span>Editar ECharts en VPasCode<\/span><br \/>\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:eNqdkE0KwjAQhfeCd5hdNlmUQlErLvzZK64UcZG2g6TUTolBEOmRPIUXMyFqmyoIzmbykse8b0KVllTCBK79Hpgq8IJlJuKXtpUJTacYdmyZ5KjlmSAMwohxYGsUhRN7Z6+565jjxpuhZUUxsLMoSLEP7\/abNxUaD6TuN8H4F5iVogummmBqSd5q5qm5pxZdzBMqiXZaM7\/FYaukY6LQ0HR2911P4kQoJbpvL+BhwGEUcRiYPoz2janmv9Obj\/4n2aSOTOrA9rCd7I7mph4\/AOGjeBo=\" \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    leyenda: {\r\n        datos: ['Objetivo 2025', 'Real 2025']\r\n    },\r\n    ejeX: {\r\n        tipo: 'valor'\r\n    },\r\n    ejeY: {\r\n        tipo: 'categor\u00eda',\r\n        datos: ['Proyecto A', 'Proyecto B', 'Proyecto C', 'Proyecto D']\r\n    },\r\n    series: [\r\n        {\r\n            nombre: 'Objetivo 2025',\r\n            tipo: 'barra',\r\n            datos: [80, 95, 70, 85]\r\n        },\r\n        {\r\n            nombre: 'Real 2025',\r\n            tipo: 'barra',\r\n            datos: [85, 90, 75, 92]\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:eNqdkE0KwjAQhfeCd5hdNlmUQlErLvzZK64UcZG2g6TUTolBEOmRPIUXMyFqmyoIzmbykse8b0KVllTCBK79Hpgq8IJlJuKXtpUJTacYdmyZ5KjlmSAMwohxYGsUhRN7Z6+565jjxpuhZUUxsLMoSLEP7\/abNxUaD6TuN8H4F5iVogummmBqSd5q5qm5pxZdzBMqiXZaM7\/FYaukY6LQ0HR2911P4kQoJbpvL+BhwGEUcRiYPoz2janmv9Obj\/4n2aSOTOrA9rCd7I7mph4\/AOGjeBo=\" \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><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNqVkL8KgzAQxvdC3+G2LBmKIP4pHWz7AB26iUOqh1iskRiLUnz3JqiYWArtLZcv+bjvd+G1LHgFB3htN6CqxByrLJylroxJFkJMnJ3jwpWJHCWhMMoolS0rSTK6Bzr2LuqKxpoh+xpDIE9Wtkhsc\/\/NnDKJORc9oZ8sF8HvmEqINMksjqY4meK8JmxQFKhS42W0AaCrYg8NYS1tOybMGxPrl4nS31EIXAqe6r6bLJ6B\/hQ7fe7fsSoyUJGe7o4ZOx7VzbB\/A4HJb\/I=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\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><br \/>\n<span>Editar ECharts en VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"UyfmcyD\"><img alt=\"\" class=\"alignnone size-full wp-image-1282\" decoding=\"async\" height=\"1363\" sizes=\"(max-width: 1299px) 100vw, 1299px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331b658091.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331b658091.png 1299w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331b658091-286x300.png 286w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331b658091-976x1024.png 976w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331b658091-768x806.png 768w\" width=\"1299\"\/><\/p>\n<p>\u00a0<\/p>\n<h3>2. Bordes redondeados y estilo de resaltado<\/h3>\n<p>Aplicar esquinas redondeadas en el lado derecho usando<code>borderRadius<\/code> en las barras horizontales (especificando<code>[superior-derecho, inferior-derecho, inferior-izquierdo, superior-izquierdo]<\/code>):<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">ECharts<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp9kUFPgzAUx+8mfoeXeOiFZGwRRYwHox5NzDguHN7aJ7wEKCnFjCx8d+nmHAjznya0P17bX1tdWdYlPMH++gr67J53XEenkYttK4pAfGHekDjizjt+20vFEi2l2rTCO\/9SaDGCjXhlQ9JCTGhkJjwQbwVyDi9YVMhpWTsUa8mYwzspRjf+QFanGcnYoSbD1EtszjsNfAZOWzRDnYHSGLosV743pSt\/ju6nyOVwXxHcBnNzXNhSEds2p+jSEi5S59r09jefKMMgFPOV3RR3cwcI\/TFM\/hT97\/Tr8rCU8j4QMztstVFk1qi4cW\/ie3B3aH4CiwWsdVMq0GXegs0IDKeZBeqRxKoeLzY40U+3f\/fu8RtrLpAO\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\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><br \/>\n<span>Editar ECharts en VPasCode<\/span><br \/>\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:eNqNUrFOwzAQ3ZH4h5MYvERqWlEoQSwgfqATCGW42tdi5OaC7bJU+SQGxMaaH8MO0CQkSDx5sJ+f757vjkuvuYAr2B8fQQA90V32c4jwuuQMxAsatuKLrpKD9n5MK9HThm39iiJpLxV6dhk8iOv6wz3vSCEobUn6oAJxg9sS6zd0oAgkW0sMZMKtrd8LLTlqlqTIgWOp0ZCLTBuqxA0qFHnfoSOrKSZtbXTsdiyv0Nqe267jPhsxnaXJkJ2lY+x+SEU0Bc3gdD72pqmu89rwraEtFZ6zv+JESG5iiZM1ysV8IcaV1ZCuxn6xSPtk\/kv0D2MHQxdTKc\/nYiTNiq0iu0Sld7HGaQJnzUpzmEwgtJoLRWhDuw2DCXNBodO6aAbEBEJx2ITxeeR+7M4vv7dhJqrLTwuPqi0=\" \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    ejeX: {\r\n        tipo: 'valor'\r\n    },\r\n    ejeY: {\r\n        tipo: 'categor\u00eda',\r\n        datos: ['B\u00fasqueda directa', 'Campa\u00f1as de correo electr\u00f3nico', 'Redes sociales', 'B\u00fasqueda pagada']\r\n    },\r\n    series: [\r\n        {\r\n            tipo: 'barra',\r\n            datos: [\r\n                120,\r\n                200,\r\n                {\r\n                    valor: 450,\r\n                    estiloElemento: {\r\n                        color: '#fac858'\r\n                    }\r\n                },\r\n                280\r\n            ],\r\n            estiloElemento: {\r\n                color: '#91cc75',\r\n                borderRadius: [0, 6, 6, 0] \/\/ Redondear solo las esquinas del lado derecho\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:eNqNUrFOwzAQ3ZH4h5MYvERqWlEoQSwgfqATCGW42tdi5OaC7bJU+SQGxMaaH8MO0CQkSDx5sJ+f757vjkuvuYAr2B8fQQA90V32c4jwuuQMxAsatuKLrpKD9n5MK9HThm39iiJpLxV6dhk8iOv6wz3vSCEobUn6oAJxg9sS6zd0oAgkW0sMZMKtrd8LLTlqlqTIgWOp0ZCLTBuqxA0qFHnfoSOrKSZtbXTsdiyv0Nqe267jPhsxnaXJkJ2lY+x+SEU0Bc3gdD72pqmu89rwraEtFZ6zv+JESG5iiZM1ysV8IcaV1ZCuxn6xSPtk\/kv0D2MHQxdTKc\/nYiTNiq0iu0Sld7HGaQJnzUpzmEwgtJoLRWhDuw2DCXNBodO6aAbEBEJx2ITxeeR+7M4vv7dhJqrLTwuPqi0=\" \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><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp9kUFPgzAUx+8mfoeXeOiFZGwRRYwHox5NzDguHN7aJ7wEKCnFjCx8d+nmHAjznya0P17bX1tdWdYlPMH++gr67J53XEenkYttK4pAfGHekDjizjt+20vFEi2l2rTCO\/9SaDGCjXhlQ9JCTGhkJjwQbwVyDi9YVMhpWTsUa8mYwzspRjf+QFanGcnYoSbD1EtszjsNfAZOWzRDnYHSGLosV743pSt\/ju6nyOVwXxHcBnNzXNhSEds2p+jSEi5S59r09jefKMMgFPOV3RR3cwcI\/TFM\/hT97\/Tr8rCU8j4QMztstVFk1qi4cW\/ie3B3aH4CiwWsdVMq0GXegs0IDKeZBeqRxKoeLzY40U+3f\/fu8RtrLpAO\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\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><br \/>\n<span>Editar ECharts en VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"hKmtGsW\"><img alt=\"\" class=\"alignnone size-full wp-image-1283\" decoding=\"async\" height=\"1280\" sizes=\"(max-width: 1388px) 100vw, 1388px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331c446077.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331c446077.png 1388w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331c446077-300x277.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331c446077-1024x944.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331c446077-768x708.png 768w\" width=\"1388\"\/><\/p>\n<p>\u00a0<\/p>\n<h2>Ajuste fino del dise\u00f1o y el espaciado<\/h2>\n<p>Dado que las etiquetas de categor\u00eda horizontales var\u00edan en longitud de texto, ajustar los m\u00e1rgenes izquierdos y la alineaci\u00f3n de las etiquetas evita que se corten.<\/p>\n<h3>1. M\u00e1rgenes de la cuadr\u00edcula del contenedor<\/h3>\n<p>Utilice el bloque de configuraci\u00f3n<code>grid<\/code> para asignar suficiente espacio a las etiquetas largas del eje Y:<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">ECharts<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp1UU1Lw0AQvQv+h7lILoVGMX5EPBQVKVgsXjxID5tkullId8Nkookl\/93ZfpCm0oGF3Xlv3ryZdSUbZ+ER1udnIKHJZPH+4aPAJccQXEYXwQhgPIapTQlVhRsEVoq0sbB0JG+rOW8hVYzaUQuMDfdCZHTule5EqM8mjtmtfINwkE+dZWXsm0qwiIGpxi3W7TjNpDHVwCi3JYrOtypqDIbk9hR5b\/Wwc6ZYxfDVJ3wEL5aRSjIy99QuSVViKeWaEGYuQ7LmV\/lFHgpt6p4KV2cwM5o2OMxzv7qrf7xn6Zp46F0+ZHVKbTKfwqt4\/lEtfGCGldE26DmL4dgVksFqMMt6KLhbQ6LouNVuC7fRCG7CEdzLuQ4XRySp+zQZ5yIRyff1YLe9ip\/u4Q+OaJTm\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\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><br \/>\n<span>Editar ECharts en VPasCode<\/span><br \/>\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:eNptUU1LA0EMvQv+h1xkLwWrWD8qHiooeBDFkyI9ZGdjO2V2ZpuZEWnpT\/Ig\/oT+MTN263ZbAwvZ5OW9l4yrgnYWrmC+vwcSKmLBy08VDfbXtRR6No2auJBqdtQ7yDoAh4cwiCXZgAxkoEQekf0DOqiQEQJ9BAdGeg4KAoWBRk4EsKEuiEmNE\/G58DZ1zHHikly3VVbOBk2WboKeRgoyFzjSqr+ocTSh55b9oKtE9Y7GcbaDffkP21jdVC8wON+H16aSIrt3soXVM1R6+W3TpgZB2zdG8mJPhSi3oLJi8sgazSblikCPuB7GNGtjTnCLnuB4B\/sgb1ZuauWC8yn5dbeDf6JCe1p+udpXFYkDph+yBhWlbPB4lzVjw\/aJPLGm9tbztkZ9sxyZcVt\/fbKzXgdOux24kO+kO9xCoVVjd53mhacnT960F6tUTC0ufwCuY7T7\" \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    cuadr\u00edcula: {\r\n        izquierda: '15%',  \/\/ Aumentar el margen izquierdo para texto largo de categor\u00eda\r\n        derecha: '8%',\r\n        abajo: '10%',\r\n        contieneEtiqueta: true\r\n    },\r\n    ejeX: {\r\n        tipo: 'valor'\r\n    },\r\n    ejeY: {\r\n        tipo: 'categor\u00eda',\r\n        datos: [\r\n            'Modernizaci\u00f3n de la infraestructura empresarial',\r\n            'Migraci\u00f3n a la nube Fase 2',\r\n            'Optimizaci\u00f3n de bases de datos',\r\n            'Redise\u00f1o de la puerta de enlace de API'\r\n        ]\r\n    },\r\n    series: [\r\n        {\r\n            tipo: 'barra',\r\n            datos: [75, 60, 90, 40],\r\n            anchoBarra: '50%'\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:eNptUU1LA0EMvQv+h1xkLwWrWD8qHiooeBDFkyI9ZGdjO2V2ZpuZEWnpT\/Ig\/oT+MTN263ZbAwvZ5OW9l4yrgnYWrmC+vwcSKmLBy08VDfbXtRR6No2auJBqdtQ7yDoAh4cwiCXZgAxkoEQekf0DOqiQEQJ9BAdGeg4KAoWBRk4EsKEuiEmNE\/G58DZ1zHHikly3VVbOBk2WboKeRgoyFzjSqr+ocTSh55b9oKtE9Y7GcbaDffkP21jdVC8wON+H16aSIrt3soXVM1R6+W3TpgZB2zdG8mJPhSi3oLJi8sgazSblikCPuB7GNGtjTnCLnuB4B\/sgb1ZuauWC8yn5dbeDf6JCe1p+udpXFYkDph+yBhWlbPB4lzVjw\/aJPLGm9tbztkZ9sxyZcVt\/fbKzXgdOux24kO+kO9xCoVVjd53mhacnT960F6tUTC0ufwCuY7T7\" \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><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#echarts:eNp1UU1Lw0AQvQv+h7lILoVGMX5EPBQVKVgsXjxID5tkullId8Nkookl\/93ZfpCm0oGF3Xlv3ryZdSUbZ+ER1udnIKHJZPH+4aPAJccQXEYXwQhgPIapTQlVhRsEVoq0sbB0JG+rOW8hVYzaUQuMDfdCZHTule5EqM8mjtmtfINwkE+dZWXsm0qwiIGpxi3W7TjNpDHVwCi3JYrOtypqDIbk9hR5b\/Wwc6ZYxfDVJ3wEL5aRSjIy99QuSVViKeWaEGYuQ7LmV\/lFHgpt6p4KV2cwM5o2OMxzv7qrf7xn6Zp46F0+ZHVKbTKfwqt4\/lEtfGCGldE26DmL4dgVksFqMMt6KLhbQ6LouNVuC7fRCG7CEdzLuQ4XRySp+zQZ5yIRyff1YLe9ip\/u4Q+OaJTm\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\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><br \/>\n<span>Editar ECharts en VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"IrYjuNm\"><img loading=\"lazy\" alt=\"\" class=\"alignnone size-full wp-image-1284\" decoding=\"async\" height=\"1251\" loading=\"lazy\" sizes=\"auto, (max-width: 1213px) 100vw, 1213px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331d10f292.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331d10f292.png 1213w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331d10f292-291x300.png 291w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331d10f292-993x1024.png 993w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331d10f292-768x792.png 768w\" width=\"1213\"\/><\/p>\n<p>\u00a0<\/p>\n<h2>Pr\u00e1cticas recomendadas estrat\u00e9gicas<\/h2>\n<ul>\n<li><strong>Organice los datos intencionalmente:<\/strong>Organice las barras horizontales en orden ascendente o descendente siempre que sea posible. Las listas clasificadas hacen que los mejores resultados sean inmediatamente evidentes para los lectores.<\/li>\n<li><strong>Use<code>containLabel: true<\/code>:<\/strong> Siempre incluir <code>containLabel: true<\/code> dentro del <code>cuadr\u00edcula<\/code> configuraci\u00f3n para evitar que los t\u00edtulos largos de categor\u00eda se salgan del borde de la superficie de dibujo.<\/li>\n<li><strong>Etiquetas de valor directo:<\/strong> Para tablas de clasificaci\u00f3n limpias, considere mostrar los valores de datos directamente al final de cada barra utilizando <code>label: { show: true, position: 'right' }<\/code> y ocultando completamente el eje num\u00e9rico inferior.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>HorizontalGr\u00e1ficos de barrasson ideales para mostrar datos de clasificaci\u00f3n, nombres de categor\u00edas alargados o m\u00e9tricas de progreso. Al extender las barras a lo largo del eje X, esta estructura visual proporciona suficiente espacio horizontal para las etiquetas de categor\u00eda, eliminando&#8230;<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":2,"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-2074","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 Bar Chart Guide | VPasCode Text to Diagram Tool<\/title>\n<meta name=\"description\" content=\"Render horizontal bar graphs from code using ECharts in VPasCode, an agile 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\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ECharts Bar Chart Guide | VPasCode Text to Diagram Tool\" \/>\n<meta property=\"og:description\" content=\"Render horizontal bar graphs from code using ECharts in VPasCode, an agile diagram-as-code tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-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_6a6331aa83b81.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/\",\"name\":\"ECharts Bar Chart Guide | VPasCode Text to Diagram Tool\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a6331aa83b81.png\",\"datePublished\":\"2026-07-24T09:33:45+00:00\",\"description\":\"Render horizontal bar graphs from code using ECharts in VPasCode, an agile diagram-as-code tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a6331aa83b81.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/img_6a6331aa83b81.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Gr\u00e1fico de barras: dise\u00f1o horizontal y optimizaci\u00f3n de etiquetas\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/es\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ECharts Bar Chart Guide | VPasCode Text to Diagram Tool","description":"Render horizontal bar graphs from code using ECharts in VPasCode, an agile 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\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/","og_locale":"es_ES","og_type":"article","og_title":"ECharts Bar Chart Guide | VPasCode Text to Diagram Tool","og_description":"Render horizontal bar graphs from code using ECharts in VPasCode, an agile diagram-as-code tool.","og_url":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"3 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/","url":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/","name":"ECharts Bar Chart Guide | VPasCode Text to Diagram Tool","isPartOf":{"@id":"https:\/\/www.vpascode.com\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81.png","datePublished":"2026-07-24T09:33:45+00:00","description":"Render horizontal bar graphs from code using ECharts in VPasCode, an agile diagram-as-code tool.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/07\/img_6a6331aa83b81.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/es\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/es\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/es\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Gr\u00e1fico de barras: dise\u00f1o horizontal y optimizaci\u00f3n de etiquetas"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/es\/#website","url":"https:\/\/www.vpascode.com\/es\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/es\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.vpascode.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/es\/wp-content\/uploads\/sites\/5\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/es\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/ld_docs\/2074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/users\/3"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/media?parent=2074"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/es\/wp-json\/wp\/v2\/ld_collection?post=2074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}