Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jacyle opened this issue May 6, 2019 · 1 comment
Closed

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

Jacyle opened this issue May 6, 2019 · 1 comment

Comments

@Jacyle
Copy link

Jacyle commented May 6, 2019

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"))

@etpinard
Copy link
Contributor

etpinard commented May 6, 2019

Duplicate of #1962

@etpinard etpinard marked this as a duplicate of #1962 May 6, 2019
@etpinard etpinard closed this as completed May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants