Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2k
Add sync option to tickmode of cartesian axes to sync ticks with overlaying axis#6356
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
e982570b68537edebd59bc3fcb6d48e60c26a4a5ba76debab4ab851ee9836146446fafe62be4693f4a8e22c703a3fb6996e4909bf7590ef83f5e118ed7b3ee6352d93b03faeab5e957b6fd182ca4417a68c25bf65d5c8dabb3e7ae262141b92281af5ad01858ddfcc3ea84512434d70377dee0525d015c0ff7ca53a87dd4179dd5ba08766b5afad5e7a9f1e716aa4be74509ef43e17de45616b430ebad1ac768c03ca4aedf28ee6c9dd300312ae78b0e35a0f685bef66c363adfd78e8d795350a50165f604cc07e6e317d4196b7dd25e1389File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| - Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356)] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| { | ||
| "data": [ | ||
| { | ||
| "name": "Apples", | ||
| "type": "bar", | ||
| "x": [ | ||
| "2000-01", | ||
| "2000-02", | ||
| "2000-03", | ||
| "2000-04", | ||
| "2000-05" | ||
| ], | ||
| "y": [ | ||
| 232, | ||
| 2506, | ||
| 470, | ||
| 1864, | ||
| -190 | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Oranges", | ||
| "type": "scatter", | ||
| "x": [ | ||
archmoj marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "A", | ||
| "B", | ||
| "C", | ||
| "D", | ||
| "E" | ||
| ], | ||
| "y": [ | ||
| 0, | ||
| 0.4, | ||
| 0.1, | ||
| 0.3, | ||
| 0.2 | ||
| ], | ||
| "yaxis": "y2", | ||
| "xaxis": "x2" | ||
| } | ||
| ], | ||
| "layout": { | ||
| "margin": { | ||
| "t": 40, | ||
| "r": 70, | ||
| "b": 40, | ||
| "l": 70 | ||
| }, | ||
| "width": 700, | ||
| "showlegend": false, | ||
| "xaxis": { | ||
| "showgrid": true, | ||
| "ticklen": 10, | ||
| "tickwidth": 3, | ||
| "ticklabelmode": "period" | ||
| }, | ||
| "xaxis2": { | ||
archmoj marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "anchor": "y2", | ||
| "side": "top", | ||
| "overlaying": "x", | ||
| "tickmode": "sync", | ||
| "ticklen": 10, | ||
| "tickwidth": 3 | ||
| }, | ||
archmoj marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "yaxis": { | ||
archmoj marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "title": { | ||
| "text": "Apples" | ||
| }, | ||
| "side": "left", | ||
archmoj marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "range": [ | ||
| 0, | ||
| 2500 | ||
| ], | ||
| "ticklen": 10, | ||
| "tickwidth": 3, | ||
| "minor": { | ||
| "showgrid": true | ||
| } | ||
| }, | ||
| "yaxis2": { | ||
archmoj marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| "title": { | ||
| "text": "Oranges" | ||
| }, | ||
| "side": "right", | ||
| "range": [ | ||
| 0, | ||
| 0.5 | ||
| ], | ||
| "ticklen": 10, | ||
| "tickwidth": 3, | ||
| "overlaying": "y", | ||
| "tickmode": "sync", | ||
| "minor": { | ||
| "showgrid": true | ||
| }, | ||
| "zeroline": false | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.