How to avoid gaps on each side of your series

To remove the padding,

1
Go to the X axis settings

2
Toggle on the Configure default min/max settings

3
Set Round min/max to be off

If the gap is still appearing after making this change, this might be because your axis is categorical. If you are using dates and they are being interpreted as categories, you can learn more about changing your date format in this help doc