title: How to remove space in between bars in HighCharts bar chart?
body: <p><a href="https://i.stack.imgur.com/IoeGd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IoeGd.png" alt="enter image description here"></a></p>
  
  <p>I'm trying to make a simple bar chart using HighCharts.</p>
  
  <p>I'd like to remove the space in between the bars. My research led me to believe that the properties <code>groundPadding</code> and <code>pointPadding</code> were responsible for this space. But setting both to <code>0</code> did not change anything.</p>
  
  <pre><code>const config = {
        chart: {
          type: 'bar',
          spacingTop: 0,
          spacingRight: 0,
          spacingBottom: 0,
          spacingLeft: 0,
          // marginTop: 0,
          // marginRight: 0,
          // marginBottom: 0,
          // marginLeft: 0
        },
        title: {
          text: null
        },
        legend: {
          enabled: false
        },
        credits: {
          text: ''
        },
        xAxis: {
          categories: options.map(option =&gt; option.option),
          // lineWidth: 0,
          // tickWidth: 0,
        },
        yAxis: {
          title: {
            enabled: false,
          },
          gridLineWidth: 0,
          tickAmount: 0,
          showFirstLabel: false,
          showLastLabel: false
        },
        series: [{
          data: options.map(option =&gt; option.votes)
        }],
        plotOptions: {
          bar: {
            dataLabels: {
              enabled: true
            }
          },
          series: {
            pointWidth: 20,
            groundPadding: 0,
            pointPadding: 0
          }
        }
      };
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>EDIT:</p>
  
  <p>Not sure if relevant, but the red <code>div</code> wrapping my chart is:</p>
  
  <pre><code>&lt;div style={{ width: '100%', height: '100%', margin: 'auto', border: '2px solid red' }}&gt;
      &lt;ReactHighCharts config={config}&gt;&lt;/ReactHighCharts&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the green <code>div</code> has dimensions: <code>width: 350px</code> and <code>height: 400px</code></p>
  
  <p>Demo: <a href="https://remove-space-between-bar-hbslv6.stackblitz.io" rel="nofollow noreferrer">https://remove-space-between-bar-hbslv6.stackblitz.io</a></p>