-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Upgrade Plotly #4752
Upgrade Plotly #4752
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,10 +118,10 @@ function prepareBoxLayout(layout, options, data) { | |
|
||
export default function prepareLayout(element, options, data) { | ||
const layout = { | ||
margin: { l: 10, r: 10, b: 10, t: 25, pad: 4 }, | ||
margin: { l: 10, r: 10, b: 5, t: 20, pad: 4 }, | ||
width: Math.floor(element.offsetWidth), | ||
height: Math.floor(element.offsetHeight), | ||
autosize: true, | ||
autosize: false, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do we lose by disabling autosize? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Built-in autosize feature is based on |
||
showlegend: has(options, "legend") ? options.legend.enabled : true, | ||
}; | ||
|
||
|
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.
Without this change there are just bigger margins?
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.
Yes, and for me it looked too large; left/right paddings also changed a little bit, but in all cases it depends on axis labels (seems Plotly changed an algorithm that measures labels and now it preserves few more pixels for labels). Also seems that extra space also depends on chart size, therefore I was unable to fit margins perfectly, just as close as possible