Scatter-Line missing values to zero

Hi,

I was wondering, whether it’s possible to handle missing values as zeroes in scatter?
I am aware of connectgaps param, but that does not help my case, as I have nans at the end of a timeline most of the time.
Is there a way to handle this case, other than in the data itself?

Thanks for any suggestions as to how to achieve the desired behavior.

There’s not really a good way to handle this in plotly except for extending the data with 0s.