{"id":2076,"date":"2026-07-24T09:33:45","date_gmt":"2026-07-24T09:33:45","guid":{"rendered":"https:\/\/www.vpascode.com\/fr\/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\/fr\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/","title":{"rendered":"Diagramme en barres : disposition horizontale et optimisation des \u00e9tiquettes"},"content":{"rendered":"<p>Horizontal <strong>Diagrammes en barres<\/strong> sont id\u00e9aux pour afficher des donn\u00e9es de classement, des noms de cat\u00e9gories longs ou des m\u00e9triques de progression. En \u00e9tirant les barres le long de l&#8217;axe X, cette structure visuelle offre aux \u00e9tiquettes des cat\u00e9gories une ample place horizontale, \u00e9liminant ainsi la n\u00e9cessit\u00e9 de pencher ou de tronquer le texte. Que vous construisiez des tableaux de classement des dix premiers, des analyses des r\u00e9ponses aux sondages ou des comparaisons de performance horizontales, les diagrammes en barres offrent une lisibilit\u00e9 claire sur les \u00e9crans de bureau comme sur les \u00e9crans mobiles.<\/p>\n<h2>Le fonctionnement des barres horizontales<\/h2>\n<p>Dans Apache ECharts, les diagrammes en colonnes et les diagrammes en barres utilisent exactement le m\u00eame <code>'bar'<\/code> type de s\u00e9rie. La transition vers une disposition horizontale s&#8217;effectue en attribuant directement les donn\u00e9es de cat\u00e9gorie \u00e0 l&#8217;axe vertical (<code>yAxis<\/code>) et en d\u00e9finissant l&#8217;axe horizontal (<code>xAxis<\/code>) comme axe de valeurs num\u00e9riques. Le moteur de graphique change la direction d&#8217;affichage, dessinant les barres horizontalement de gauche \u00e0 droite.<\/p>\n<h3>1. Configuration essentielle<\/h3>\n<p>Pour cr\u00e9er un diagramme en barres horizontal de base, d\u00e9finissez <code>type: 'category'<\/code> sur le <code>yAxis<\/code> et fournissez votre tableau de donn\u00e9es, tout en d\u00e9finissant <code>type: 'value'<\/code> sur le <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>Modifier ECharts dans 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:eNp1kLEKwjAURXfBf3hblgimEZSKgzq5uTiJQ7ShBkpSkqe2SD\/AT\/E7\/DGTqjQdzBC49568d4kpURkNC7gPB+APGlOgKtOfbj2r8lzaFIiolCO0S4LeGqUxpHfAupSecmeRmRuB5gM23wfV0tP9wR\/+KoqLJH24\/gefBMrc2DqukQkUKezJyr6eThWEAtnozOigZFCvBwp0o50O9duwtddnpSU59Dc7aZX0q\/fd\/KhF1OQobFwiKpKwCYVkyilwzigwPhv7e8LYocO\/n+OdZv4GwWdf2w==\" \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: ['Br\u00e9sil', 'Indon\u00e9sie', '\u00c9tats-Unis', 'Inde', 'Chine']\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:eNp1kLEKwjAURXfBf3hblgimEZSKgzq5uTiJQ7ShBkpSkqe2SD\/AT\/E7\/DGTqjQdzBC49568d4kpURkNC7gPB+APGlOgKtOfbj2r8lzaFIiolCO0S4LeGqUxpHfAupSecmeRmRuB5gM23wfV0tP9wR\/+KoqLJH24\/gefBMrc2DqukQkUKezJyr6eThWEAtnozOigZFCvBwp0o50O9duwtddnpSU59Dc7aZX0q\/fd\/KhF1OQobFwiKpKwCYVkyilwzigwPhv7e8LYocO\/n+OdZv4GwWdf2w==\" \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>Modifier ECharts dans 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>Techniques structurelles avanc\u00e9es<\/h2>\n<p>Les diagrammes en barres horizontales prennent en charge plusieurs groupes de donn\u00e9es, un surbrillance cibl\u00e9e et des traitements personnalis\u00e9s des coins pour les conceptions modernes de tableaux de bord.<\/p>\n<h3>1. Comparaison horizontale multi-s\u00e9ries<\/h3>\n<p>Placez plusieurs objets dans le <code>s\u00e9rie<\/code> tableau pour cr\u00e9er des barres horizontales group\u00e9es par \u00e9tiquette de cat\u00e9gorie :<\/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>Modifier ECharts dans 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:eNrLLyjJzM9TsFWo5uVSAIKcwyvTU\/NSUq1gAiCQkp+Xd3hlarGVQrS6f1JWanJJZpqCkYGRqbqOgnrQ4ZWJOZnFiWBzwIKxEJ21OhA6sSI1AsW4ksoCoPnqZYk5qaVF6hiKI7EpTk4sAbosvygzVV0Hu8MCivKzUksUHEFugrKdkNjOSGwXdCcWH14JNBloCsJoJCeAQF5+LtAVaJ5HVQJ1aVJiUVEquhySQy0MdBQsTXUUzIG0hWksQl2tDgHbMUOaTBcAbbcE2m4Ooo2QXQBhAkVqrQG6VoN4\" \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    l\u00e9gende: {\r\n        donn\u00e9es: ['Objectif 2025', 'R\u00e9alisation 2025']\r\n    },\r\n    axeX: {\r\n        type: 'valeur'\r\n    },\r\n    axeY: {\r\n        type: 'cat\u00e9gorie',\r\n        donn\u00e9es: ['Projet A', 'Projet B', 'Projet C', 'Projet D']\r\n    },\r\n    s\u00e9rie: [\r\n        {\r\n            nom: 'Objectif 2025',\r\n            type: 'barre',\r\n            donn\u00e9es: [80, 95, 70, 85]\r\n        },\r\n        {\r\n            nom: 'R\u00e9alisation 2025',\r\n            type: 'barre',\r\n            donn\u00e9es: [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:eNrLLyjJzM9TsFWo5uVSAIKcwyvTU\/NSUq1gAiCQkp+Xd3hlarGVQrS6f1JWanJJZpqCkYGRqbqOgnrQ4ZWJOZnFiWBzwIKxEJ21OhA6sSI1AsW4ksoCoPnqZYk5qaVF6hiKI7EpTk4sAbosvygzVV0Hu8MCivKzUksUHEFugrKdkNjOSGwXdCcWH14JNBloCsJoJCeAQF5+LtAVaJ5HVQJ1aVJiUVEquhySQy0MdBQsTXUUzIG0hWksQl2tDgHbMUOaTBcAbbcE2m4Ooo2QXQBhAkVqrQG6VoN4\" \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>Modifier ECharts dans 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. Extr\u00e9mit\u00e9s arrondies et style de mise en \u00e9vidence<\/h3>\n<p>Appliquer des coins arrondis \u00e0 droite en utilisant <code>borderRadius<\/code> sur les barres horizontales (en sp\u00e9cifiant <code>[haut-droit, bas-droit, bas-gauche, haut-gauche]<\/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>Modifier ECharts dans 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:eNqNUtFOgzAUfTfxH27iQ18wY4voxPhg\/AOeNGYPXbmbTViLt8VAFj7AT+E7+DFbphsMTDyBAKeHc06bq3MrtYJH2F9egAMv8SX+\/fCwVY4xsE+eYUHswNfBUfw6JRbcts1Wk0QWnBZTrVTboInhjSUo3pHcDakkFNYJgT3zXc63Cg3knACvd1xmnk\/axiAvSjBaSPfsuKNBzivnylbDaqZtXLyLOuX3eva6rjnRoOZZ1eGCx3wRBmN2EU6x+zHlcTjNGG6iqZ+6\/rbKsP3K2maHysZ\/GXkIXRzc2NWGi2W0ZNPaekzXUxtZhkNydSb6R7Vepfu5EHcRmwhaa0qREp7Kwh90GMBtd4UrmM3giUgrNxxQKPlRoI+CzI0GlpZcsnQTZiAlLS2aoXdvnz+vbjbqh28yvLCj\" \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    axeX: {\r\n        type: 'valeur'\r\n    },\r\n    axeY: {\r\n        type: 'cat\u00e9gorie',\r\n        donn\u00e9es: ['Recherche directe', 'Campagnes par e-mail', 'R\u00e9seaux sociaux', 'Recherche pay\u00e9e']\r\n    },\r\n    s\u00e9rie: [\r\n        {\r\n            type: 'barre',\r\n            donn\u00e9es: [\r\n                120,\r\n                200,\r\n                {\r\n                    valeur: 450,\r\n                    style\u00c9l\u00e9ment: {\r\n                        couleur: '#fac858'\r\n                    }\r\n                },\r\n                280\r\n            ],\r\n            style\u00c9l\u00e9ment: {\r\n                couleur: '#91cc75',\r\n                borderRadius: [0, 6, 6, 0] \/\/ Arrondir uniquement les extr\u00e9mit\u00e9s droites\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:eNqNUtFOgzAUfTfxH27iQ18wY4voxPhg\/AOeNGYPXbmbTViLt8VAFj7AT+E7+DFbphsMTDyBAKeHc06bq3MrtYJH2F9egAMv8SX+\/fCwVY4xsE+eYUHswNfBUfw6JRbcts1Wk0QWnBZTrVTboInhjSUo3pHcDakkFNYJgT3zXc63Cg3knACvd1xmnk\/axiAvSjBaSPfsuKNBzivnylbDaqZtXLyLOuX3eva6rjnRoOZZ1eGCx3wRBmN2EU6x+zHlcTjNGG6iqZ+6\/rbKsP3K2maHysZ\/GXkIXRzc2NWGi2W0ZNPaekzXUxtZhkNydSb6R7Vepfu5EHcRmwhaa0qREp7Kwh90GMBtd4UrmM3giUgrNxxQKPlRoI+CzI0GlpZcsnQTZiAlLS2aoXdvnz+vbjbqh28yvLCj\" \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>Modifier ECharts dans 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>Affinage du layout et de l&#8217;espacement<\/h2>\n<p>\u00c9tant donn\u00e9 que les \u00e9tiquettes de cat\u00e9gorie horizontales varient en longueur de texte, ajuster les marges gauche et l&#8217;alignement des \u00e9tiquettes \u00e9vite le d\u00e9coupage des \u00e9tiquettes.<\/p>\n<h3>1. Marges de la grille du conteneur<\/h3>\n<p>Utilisez le bloc de configuration <code>grid<\/code> pour allouer suffisamment d&#8217;espace aux \u00e9tiquettes longues de l&#8217;axe 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>Modifier ECharts dans 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:eNptUktOwzAQ3SNxh9mgbCq1IMJXLMqOBQKxAqEu3HhwLTl2GNtVUVWJLUfgCD1HbsJJGDet0hAsRXGe3rx58yauCtpZuIHl4QHwUaSNwavd5wYSsZgxlB3nR9kAYDiEcVQl2oAERkApSOGWBZWLDKKHgIvAL4lQiFCvlSONYJxVvlWW5HRIyhcs3MJT4VO3UQcsnA2ae9ZfQb9HDKkuUMSGsdoyxQKfO+bDR5UazIXBSFmP\/PIfuTW8b0A6a+s1srXXFkwnu3cSyWovNlHyxObn81vbNxKeHRYhEoJkiN0TVqR9R7eR0Iqa8jmS5wChMC5KqGbCI5z0+A+8tnK\/o0ipYbrufPZqnlCi12rHr4T3SMjbhvHjXdaSJ92UfL3mJDpTL7vK29imgqg32V5q5\/kAzkYDuOTndDT5QzTpL4p0m0RYLOftt4RVc2Vnq+tfU1S46w==\" \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    grille: {\r\n        gauche: '15%',  \/\/ Augmenter la marge gauche pour les textes de cat\u00e9gorie longs\r\n        droite: '8%',\r\n        bas: '10%',\r\n        contient\u00c9tiquette: true\r\n    },\r\n    axeX: {\r\n        type: 'valeur'\r\n    },\r\n    axeY: {\r\n        type: 'cat\u00e9gorie',\r\n        donn\u00e9es: [\r\n            'Modernisation de l\u2019infrastructure d\u2019entreprise',\r\n            'Migration vers le cloud phase 2',\r\n            'Optimisation de la base de donn\u00e9es',\r\n            'Redesign de la passerelle API'\r\n        ]\r\n    },\r\n    s\u00e9rie: [\r\n        {\r\n            type: 'barre',\r\n            donn\u00e9es: [75, 60, 90, 40],\r\n            largeurBarre: '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:eNptUktOwzAQ3SNxh9mgbCq1IMJXLMqOBQKxAqEu3HhwLTl2GNtVUVWJLUfgCD1HbsJJGDet0hAsRXGe3rx58yauCtpZuIHl4QHwUaSNwavd5wYSsZgxlB3nR9kAYDiEcVQl2oAERkApSOGWBZWLDKKHgIvAL4lQiFCvlSONYJxVvlWW5HRIyhcs3MJT4VO3UQcsnA2ae9ZfQb9HDKkuUMSGsdoyxQKfO+bDR5UazIXBSFmP\/PIfuTW8b0A6a+s1srXXFkwnu3cSyWovNlHyxObn81vbNxKeHRYhEoJkiN0TVqR9R7eR0Iqa8jmS5wChMC5KqGbCI5z0+A+8tnK\/o0ipYbrufPZqnlCi12rHr4T3SMjbhvHjXdaSJ92UfL3mJDpTL7vK29imgqg32V5q5\/kAzkYDuOTndDT5QzTpL4p0m0RYLOftt4RVc2Vnq+tfU1S46w==\" \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>Modifier ECharts dans 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>Meilleures pratiques strat\u00e9giques<\/h2>\n<ul>\n<li><strong>Trier les donn\u00e9es intentionnellement :<\/strong> Disposez les barres horizontales dans l&#8217;ordre croissant ou d\u00e9croissant chaque fois que possible. Les listes class\u00e9es rendent imm\u00e9diatement \u00e9vidents les meilleurs performeurs pour les lecteurs.<\/li>\n<li><strong>Utilisez <code>containLabel: true<\/code>:<\/strong> Toujours inclure <code>containLabel: true<\/code> \u00e0 l&#8217;int\u00e9rieur du <code>grille<\/code> configuration pour \u00e9viter que les titres de cat\u00e9gorie longs d\u00e9bordent du bord de la zone de dessin.<\/li>\n<li><strong>\u00c9tiquettes de valeurs directes :<\/strong> Pour des classements propres, envisagez d&#8217;afficher les valeurs de donn\u00e9es directement \u00e0 la fin de chaque barre en utilisant <code>label: { show: true, position: 'right' }<\/code> et en masquant enti\u00e8rement l&#8217;axe num\u00e9rique inf\u00e9rieur.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Horizontal Diagrammes en barres sont id\u00e9aux pour afficher des donn\u00e9es de classement, des noms de cat\u00e9gories longs ou des m\u00e9triques de progression. En \u00e9tirant les barres le long de l&#8217;axe X, cette structure visuelle offre aux \u00e9tiquettes des cat\u00e9gories une&#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-2076","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\/fr\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\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\/fr\/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=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/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\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/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\\\/fr\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/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\\\/fr\\\/docs\\\/vpascode-docs\\\/bar-chart-horizontal-layout-and-label-optimization-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Diagramme en barres : disposition horizontale et optimisation des \u00e9tiquettes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#\\\/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\/fr\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/","og_locale":"fr_FR","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\/fr\/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":{"Dur\u00e9e de lecture estim\u00e9e":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/","url":"https:\/\/www.vpascode.com\/fr\/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\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/fr\/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\/fr\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.vpascode.com\/fr\/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\/fr\/docs\/vpascode-docs\/bar-chart-horizontal-layout-and-label-optimization-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/fr\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Diagramme en barres : disposition horizontale et optimisation des \u00e9tiquettes"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/fr\/#website","url":"https:\/\/www.vpascode.com\/fr\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/fr\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.vpascode.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/fr\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_docs\/2076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/users\/3"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/media?parent=2076"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_collection?post=2076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}