Black Lives Matter. Please consider donating to Black Girls Code today.

Inconsistent display of zeroline & grid

Hi,

I am doing two graph with the same layout parameters but the zeroline and some grid lines on the y-axis have different thickness (on chrome at least). Any idea why? I tried to increase plot size to see if that was the problem but the issue persists. I display the figure in a dash graph component, with no option.

The code for the layout is:

fig.update_layout(
        yaxis=dict(
            showgrid=True, 
            gridcolor='rgba(166, 166, 166, 0.35)',
            gridwidth=0.5,  # tried different values, same issue
            showline=True,
            showticklabels=True,
            tickformat=',.2%',
            range=params['yaxisRange'],
            zeroline=True,
            zerolinewidth=1,
            zerolinecolor='#666666',
        ),
        xaxis=dict(
            zeroline=False,
            showline=True,
            showticklabels=True,
            showgrid=True,
            tickformat=',.2%',
            tickangle=25,
        ),
        showlegend=True,
        legend_orientation="h",
        margin=dict(l=10, r=20, t=10, b=10),
        plot_bgcolor='rgba(248, 248, 255, 0)',
        font=dict(
            size=7,
            color="#7f7f7f"
        ),
        legend=dict(
            font=dict(size=8),
            y=1.3,
            bgcolor='rgba(0,0,0,0)',
            itemsizing='constant'
        ),
        barmode='relative',
        height=250,
        width=405
    )

Did you manage to solve it? I’m currently facing the same issue…

No I didn’t. Not sure i am doing anything wrong so it looks to me like a bug.