You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,6 @@ In short, this means that simply adding data points to a trace in `data` or chan
134
134
|`style`|`Object`|`{position: 'relative', display: 'inline-block'}`| used to style the `<div>` into which the plot is rendered |
135
135
|`debug`|`Boolean`|`false`| Assign the graph div to `window.gd` for debugging |
136
136
|`useResizeHandler`|`Boolean`|`false`| When true, adds a call to `Plotly.Plot.resize()` as a `window.resize` event handler |
137
-
|`fit`|`Boolean`|`false`|_deprecated_ When true, will set `layout.height` and `layout.width` to the component's parent's size if they are unspecified, and will update them on `window.resize`|
138
137
139
138
**Note**: To make a plot responsive, i.e. to fill its containing element and resize when the window is resized, use `style` or `className` to set the dimensions of the element (i.e. using `width: 100%; height: 100%` or some similar values) and set `useResizeHandler` to `true` while setting `layout.autosize` to `true` and leaving `layout.height` and `layout.width` undefined. This will implement the behaviour documented here: https://plot.ly/javascript/responsive-fluid-layout/
0 commit comments