title: Rechartd: Vertical bar chart - set bar thickness
body: <p>How to set the bars thickness? </p>
  
  <pre><code>&lt;ResponsiveContainer width='100%' aspect={4.0 / 3.0}&gt;
                          &lt;BarChart data={data} layout="vertical"&gt;
                              &lt;XAxis type="number" hide /&gt;
                              &lt;YAxis dataKey="name" hide reversed type="category" /&gt;
                              &lt;Tooltip /&gt;
                              &lt;Legend /&gt;
                              &lt;Bar legendType="star" dataKey="1" fill="#ff6f31" /&gt;
                              &lt;Bar legendType="star" dataKey="2" fill="#ff9f02" /&gt;
                              &lt;Bar legendType="star" dataKey="3" fill="#ffcf02" /&gt;
                              &lt;Bar legendType="star" dataKey="4" fill="#99cc00" /&gt;
                              &lt;Bar legendType="star" dataKey="5" fill="#88b131" /&gt;
                          &lt;/BarChart&gt;
                      &lt;/ResponsiveContainer&gt;
  </code></pre>
  
  <p>Current Result</p>
  
  <p><a href="https://i.stack.imgur.com/VyBzg.png" rel="noreferrer"><img src="https://i.stack.imgur.com/VyBzg.png" alt="enter image description here"></a></p>
  
  <p>Data set</p>
  
  <pre><code>[{1: 0, name: "1"},
  {2: 0, name: "2"},
  {3: 1, name: "3"},
  {4: 1, name: "4"},
  {5: 2, name: "5"}]
  </code></pre>