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
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -191,16 +191,17 @@ You can see an example of this method in action [here](https://codepen.io/rsreus
191
191
|`data`|`Array`|`[]`| list of trace objects |
192
192
|`layout`|`Object`|`undefined`| layout object |
193
193
|`config`|`Object`|`undefined`| config object |
194
-
|`style`|`Object`|`{position: 'relative', display: 'inline-block'}`| used to style the containing `<div>`|
194
+
|`style`|`Object`|`{position: 'relative', display: 'inline-block'}`| used to style the `<div>` into which the plot is rendered |
195
+
|`className`|`string`|`undefined`| applied to the `<div>` into which the plot is rendered |
195
196
|`frames`|`Array`|`undefined`| list of frame objects |
196
197
|`useResizeHandler`|`Boolean`|`false`| When true, adds a call to `Plotly.Plot.resize()` as a `window.resize` event handler |
197
-
|`fit`|`Boolean`|`false`| When true, disregards `layout.width` and `layout.height` and fits to the parent div size, updating on `window.resize`|
198
198
|`revision`|`Number`|`undefined`| When provided, causes the plot to update *only* when the revision is incremented. |
199
199
|`debug`|`Boolean`|`false`| Assign the graph div to `window.gd` for debugging |
200
200
|`onInitialized`|`Function`|`undefined`| Callback executed after plot is initialized |
201
201
|`onPurge`|`Function`|`undefined`| Callback executed when component unmounts. Unmounting triggers a Plotly.purge event which strips the graphDiv of all plotly.js related information including data and layout. This hook gives application writers a chance to pull data and layout off the DOM. |
202
202
|`onUpdate`|`Function`|`undefined`| Callback executed when a plotly.js API method resolves |
203
203
|`onError`|`Function`|`undefined`| Callback executed when a plotly.js API method rejects |
204
+
|`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`|
0 commit comments