How to remove empty area chartjs

I have 2 arrays of buys and sells.

I’m using the type: ‘time’ format to display values in the x-axis.

How to remove empty area? Is there some property that is responsible for this?