Skip to content

Add sync option to tickmode of cartesian axes to sync ticks with overlaying axis#6356

Merged
archmoj merged 60 commits into
plotly:masterfrom
VictorBezak:first_poc_tickmode_sync
Jan 12, 2023
Merged

Add sync option to tickmode of cartesian axes to sync ticks with overlaying axis#6356
archmoj merged 60 commits into
plotly:masterfrom
VictorBezak:first_poc_tickmode_sync

Conversation

@VictorBezak

@VictorBezak VictorBezak commented Nov 2, 2022

Copy link
Copy Markdown
Contributor

The Issue

#1962

Developers:

Our Solution

This PR is an attempt to adapt the logic originating from https://github.com/VictorBezak/Plotly_Multi-Axes_Gridlines
in order to integrate it with the plotly schema. This PR is not fully tested and ready to be merged, but we wanted to get some feedback at this stage as we feel we now have a viable MVP solution.

How To Use

  • You can now set tickmode: "sync" on your 2nd yaxis that also has property overlaying set.
  • for testing, we've added a new mock called new_tickmode_sync.json

Things Tested and Working

  • positive/negative ranges
  • zoom
  • click & drag y-axis up/down

Not Done Yet

  • we haven't written any tests yet!

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community community contribution feature something new

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants