How to avoid gaps on each side of your series

To remove the padding,

Go to the X axis settings

Toggle on the Configure default min/max settings

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