-
Notifications
You must be signed in to change notification settings - Fork 0
Chart title alignment #3
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
Conversation
src/plot_api/subroutines.js
Outdated
x: fullLayout.title.x, | ||
y: fullLayout.title.y, | ||
'text-anchor': 'start', | ||
'dominant-baseline': 'hanging' |
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.
Hmm. Does dominant-baseline
work in all browsers?
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.
fraid not plotly#2076 (comment)
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.
Got it, will fix it together with other changes from plotly#882
2e4c4b9
to
3ac4f0f
Compare
Why is it still an open issue? : o |
@ewirth I don't recall the details at this point, but we ended up doing this in a slightly different way, in plotly#3276 - so this PR, while useful for advancing the discussion, was ultimately not used directly. @AlexVvx can we close it? |
Yep, let's close |
@AlexVvx Thanks for the notice. I think that it's still impossible to set the title to the bottom of a line figure. Or I haven't find it. It should be a easy thing like position: bottom :d |
Related to #882
This PR adds chart title alignment feature. The purpose of feature is to let users adjust the look of chart by using alignment. When there are lots of traces, then legend occupies much space and with center aligned title top margin looks ugly (details in plotly/plotly.R#812)
Title is an object in layout:
text - is title text
alignment - is string (top, bottom, left, right, middle default), small gap between border and title equal to half of text height
x,y - is numbers, manual position in pixels from left top