Violin plot individual violins squeezed to lines

I have a violin plot where I want to compare some data before and after a date. However, the violins themselves are squeezed so that they are basically just visible as lines. The gaps between the violins are large.

How can I make them fill more space?

With many x items

Even with less x-items, the violins are very narrow

    traces.append(go.Violin(
        x=x,
        y=y,
        legendgroup= g,
        scalegroup= g,
        name=g,
        line={'color':c},
    ))

    graphs.append(dcc.Graph(
        figure= go.Figure(
            data=traces,
            layout=go.Layout(
                title=m,
                showlegend=True,
                violinmode="group",
            )
        )

Bonus question: How can I only one entry for before and after at the legend as it is with the grouped violin plot example here?