-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
882 - Chart Title Alignment #3276
Merged
Merged
Changes from 49 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
6687034
Add test of current plot title alignment [882]
rmoestl a7e3a9d
Transition layout titles from being strings to be objects [882]
rmoestl 50a1e9b
Support updating titles through `relayout` and `update` [882]
rmoestl 4d21886
Deprecate `*.titlefont` attributes in favor of `*.title.font` [882]
rmoestl 66a8154
Implement basic chart title alignment options [882]
rmoestl 6f583a4
Add test to ensure current chart title position is still supported [882]
rmoestl 185772b
Implement 'auto' values for title's `xanchor` and `yanchor` [882]
rmoestl ac3649b
Support deprecated axes titles syntax for multiple axes [882]
rmoestl 493b6ec
Adapt axes tests to new `title` structure [882]
rmoestl 4d7c4b3
Adapt axes auto-margin code to new `title` structure [882]
rmoestl 96df782
Adapt `axes.swap` to new `title` attr structure [882]
rmoestl 43da557
Adapt colorbar to new title attr structure [882]
rmoestl 9e2cbfe
Adapt rangeslider to new title attr structure [882]
rmoestl f632a7d
Transition polar plot type to new title attr structure [882]
rmoestl b3367f1
Adapt legacy polar chart to new title attr structure [882]
rmoestl cf7f493
Transition ternary plot type to new title attr structure [882]
rmoestl 573c90d
Deduplicate transitioning to new title structure in `cleanLayout` [882]
rmoestl ddf9c0b
Transition gl3d plot type to new title attr structure [882]
rmoestl 0e144b6
Transition gl2d plot type to new title attr structure [882]
rmoestl 984aa46
Expect new title syntax in legend, lib and further tests [882]
rmoestl 58f402a
Reactivating editing plot title [882]
rmoestl 5e16b02
Also call cleanLayout on `layout.template.layout` [882]
rmoestl 7a81f27
Adjust hover template test to new title structure [882]
rmoestl e53e546
Adapt clonePlot function to new title attr structure [882]
rmoestl ca920ab
Implement padding for chart title alignment [882]
rmoestl 37bb68c
Restrict title.y (and x) to a number between 0 and 1 [882]
rmoestl e438a3f
Edit attribute descriptions for new title attr structure [882]
rmoestl b37950d
Minor clean up in subroutines.js [882]
rmoestl 0c2bfd7
Fix cleaning deprecated title structure on relayout/update [882]
rmoestl eda4f72
Fix `cleanLayout` bug [882]
rmoestl 53ea94d
Remove small piece of obsolete code in gl3d's convert module [882]
rmoestl f896273
Still accept numbers as titles when defined in deprecated notation [882]
rmoestl f7b652b
Improve and simplify title compatibility code for relayout [882]
rmoestl 1288121
Clear TODOs in gl3d axis_defaults.js and cloneplot.js [882]
rmoestl ee613bb
Streamline variable names in subroutines.js [882]
rmoestl 678c2d9
Deprecate old title structure properly [882]
rmoestl 598fc5f
Fix plotschema_test.js to embrace deprecated attribute containers [882]
rmoestl 4efb546
Make explanatory comment in polar.js more clear [882]
rmoestl 014548c
Skip overriding deprecated title attributes in polar [882]
rmoestl 1117113
Reuse Lib.counterRegex to match deprecated title string attributes [882]
rmoestl c2b4c10
Pass back update data unmodified to plotly_relayout event handlers [882]
rmoestl 86a88e2
Move legend's anchor_utils to Lib and use them in title alignment [882]
rmoestl 5fb7b8f
Redeclare valType of title.y to be a 'number' [882]
rmoestl d600bbd
Merge branch 'master' into 882-chart-title-alignment
rmoestl a2f0543
Transition pie trace type to new title attr structure [882]
rmoestl a4e43a6
Transition color bar to new title attr structure [882]
rmoestl e4dbc5d
Transition carpet to new title attr structure [882]
rmoestl ef9e078
Refactor code to clean up deprecated title attr structure [882]
rmoestl e3bcf7c
Let '' be the default carpet axes title [882]
rmoestl 2b26746
Reverse coerce logic for carpet axes titles [882]
rmoestl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh hmm, I was going to say we should not coerce
title.font
andtitle.side
here but because of_dfltTitle
you'd have to explicitly settitle.text = ''
to make these irrelevant, and even then in principle ineditable: true
mode we would need these attributes. So I guess here - and everywhere else the titles are editable within the plot - it's correct as is. And the only places that doesn't apply are carpet (discussed elsewhere) and pie (already handled correctly) 🎉There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. That was my concern as well (plus my guess that we might need
font
to calculate things like automargin even if we don't have a title set). But I resisted to raise that because I haven't done the research in the code to underpin my claim.