Connect dots in Dash scatter plot if missing data

How can I connect the dots in a line graph if there is missing data?

For example - there are no data in 2018-Q1 for the blue group. Instead of filling 0 to 2018-Q1, how can I just connect the dots between 2017-Q4 to 2018-Q2

exampledata

code example produces this graph:

go.Scatter(
                    x=select_quarters,
                    y=df8_ratio,
                    name=group_name,
                    showlegend=True,
                    line=dict(color='#195695',
                              width=4,
                              shape='spline',
                              smoothing=1
                              ),
                    marker=dict(size=12),
                    mode='lines+markers',
                    text=df8_tooltip
                ),

I believe connectgaps is the property that you should look for

1 Like