Plotly.js: Animating the layout of secondary axis fails

Created on 21 Jan 2017  路  3Comments  路  Source: plotly/plotly.js

Please find a reproducible example on CodePen: http://codepen.io/EmanuelS/pen/vgmKRm

This example shows a plot of one x-axis and two y-axes. While animating the range of the x-axis and the primary y-axis works perfectly fine, the range of the secondary y-axis doesn't change after Plotly.animate.

bug

All 3 comments

Thanks for the report and example. I'll take a look at this later today.

Looks like this is https://github.com/plotly/plotly.js/blob/master/src/plots/cartesian/transition_axes.js#L18
-> matches 'x2axis' instead of 'xaxis2' - I'm abstracting all these regexes right now, should fix this but I'll include a test to confirm.

Ah! That definitely looks like a simple error on my part.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maxwell8888 picture maxwell8888  路  3Comments

jonmmease picture jonmmease  路  3Comments

WG- picture WG-  路  3Comments

tim-sauchuk picture tim-sauchuk  路  3Comments

HunterMcGushion picture HunterMcGushion  路  3Comments