Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cleaner callback API #63

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

Merged
nicolaskruchten merged 4 commits into master from figure_in_update
Mar 15, 2018
Merged

cleaner callback API #63

nicolaskruchten merged 4 commits into master from figure_in_update
Mar 15, 2018

Conversation

Copy link
Contributor

@nicolaskruchten nicolaskruchten commented Mar 13, 2018

This PR is meant to partly address #49 and help users avoid issues like #61 or #59

vdh reacted with thumbs up emoji
cleaner callback API
readme
tweak
<Plot
data={this.state.data}
layout={this.state.layout}
frames={this.state.frames}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so here it'd be this.state.figure.frames, this.state.figure.layout, this.state.figure.layout..right

Copy link
Contributor Author

@nicolaskruchten nicolaskruchten Mar 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, this.setState(figure) means that the state is the figure. You would be right if I'd done this.setState({figure}) (note the { }).

VeraZab reacted with thumbs up emoji
README.md Outdated
| Prop | Type | Default | Description |
| ------------------ | ---------------------------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `data` | `Array` | `[]` | list of trace objects (see https://plot.ly/javascript/reference/) |
| `layout` | `Object` | `undefined` | layout object (see https://plot.ly/javascript/reference/) |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


You can see an example of this method in action
[here](https://codepen.io/rsreusser/pen/qPgwwJ?editors=1010).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

VeraZab commented Mar 13, 2018

looks good to me! 💃

@nicolaskruchten nicolaskruchten deleted the figure_in_update branch March 15, 2018 18:23
@nicolaskruchten nicolaskruchten restored the figure_in_update branch May 2, 2018 17:03
@nicolaskruchten nicolaskruchten deleted the figure_in_update branch May 2, 2018 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@VeraZab VeraZab VeraZab left review comments

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /