title: Amcharts4 XYChart remove space between container and chart data
body: <p>I need to remove paddings/spaces between data visible on the XYChart.</p>
  
  <p>I removed paddings from chart and tried to remove it from valueaxis and lineseries but nothing helped.</p>
  
  <pre><code>chart.padding(0, 0, 0, 0);
  </code></pre>
  
  <p>I also noticed that if I have more dates with values there is no space on the left and right. But what if there is less data, how to fix it.</p>
  
  <p><a href="https://codepen.io/lrobotka/pen/ZVdvyg" rel="nofollow noreferrer">https://codepen.io/lrobotka/pen/ZVdvyg</a></p>