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

Commit 51c3ec1

Browse files
Update README.md
1 parent 4d22ac1 commit 51c3ec1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,12 @@ Given perhaps a script tag that has loaded a CDN version of plotly.js,
112112
you may then inject Plotly and use the returned React component:
113113

114114
```javascript
115+
/* global Plotly:true */
116+
115117
import createPlotlyComponent from 'react-plotly.js/factory'
116-
const Plot = createPlotlyComponent(Plotly);
118+
119+
/* (Note that Plotly is already defined from loading plotly.js through a <script> tag) */
120+
const Plot = createPlotlyComponent(Plotly);
117121

118122
render () {
119123
return <Plot

0 commit comments

Comments
(0)

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