Skip to content

Dual axis line chart axis are not synchronized/lined up #3837

@Jacyle

Description

@Jacyle

In the following graph you can see the line chart grid lines are no matched up, is there a way to fix this in the 'Layout'?

image

layout = go.Layout(title = "The price of gold tends to move with inflation.", titlefont = dict( family = 'Arial, sans-serif', size = 18 ), xaxis = dict( zeroline = False ), yaxis = dict( title='y/y percent', titlefont=dict( family='Arial, sans-serif', size = 10), side = 'left', hoverformat = '.2f', zeroline= False, rangemode = 'tozero' ), yaxis2 = dict( title='y/y percent', titlefont=dict( family='Arial, sans-serif', size = 10), overlaying ='y', zeroline = False, side = 'right', rangemode = 'tozero', hoverformat = '.2f'), autosize=True, margin=dict(l = 200,r = 200, t = 100, b = 100), hovermode = 'closest', legend=dict(x = 0, y = 1.1, orientation="h"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions