Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit bab0d52

Browse files
Add frames to Graph
1 parent 442fe91 commit bab0d52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Graph.react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,12 @@ const graphPropTypes = {
322322
* Plotly `figure` object. See schema:
323323
* https://plot.ly/javascript/reference
324324
* Only supports `data` array and `layout` object.
325-
* `config` is set separately by the `config` property,
326-
* and `frames` is not supported.
325+
* `config` is set separately by the `config` property
327326
*/
328327
figure: PropTypes.exact({
329328
data: PropTypes.arrayOf(PropTypes.object),
330329
layout: PropTypes.object,
330+
frames: PropTypes.arrayOf(PropTypes.object),
331331
}),
332332

333333
/**
@@ -622,7 +622,7 @@ const graphDefaultProps = {
622622
relayoutData: null,
623623
extendData: null,
624624
restyleData: null,
625-
figure: {data: [], layout: {}},
625+
figure: {data: [], layout: {}, frames: []},
626626
animate: false,
627627
animation_options: {
628628
frame: {

0 commit comments

Comments
 (0)