File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
npm-debug.log
2
- tsconfig.json
2
+ tsconfig.json
3
+ node_modules
4
+ .idea
Original file line number Diff line number Diff line change 1
- # React-PlotlyJS-Typescript
1
+ # React-PlotlyJS-Typescript [ ![ npm version ] ( https://badge.fury.io/js/react-plotlyjs-ts.svg )] ( https://badge.fury.io/js/react-plotlyjs-ts )
2
2
3
3
Inspired by [ React-PlotlyJS] ( https://github.com/benjeffery/react-plotlyjs ) , many thanks!
4
4
@@ -9,12 +9,10 @@ Self-redraw when props changed.
9
9
## Usage
10
10
11
11
``` typescript
12
- import PlotlyChart from ' PlotlyChart ' ;
12
+ import PlotlyChart from ' react-plotlyjs-ts ' ;
13
13
14
14
...
15
-
16
- render (){
17
-
15
+ render (){
18
16
const data = [
19
17
{
20
18
type: ' scatter' , // all "scatter" attributes: https://plot.ly/javascript/reference/#scatter
@@ -45,8 +43,7 @@ render(){
45
43
yref: ' paper' // #layout-annotations-yref
46
44
}
47
45
]
48
- };
49
-
46
+ };
50
47
return (
51
48
< PlotlyChart data = {data } layout = {layout } / >
52
49
)
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-plotlyjs-ts" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " Typescript-React component for Plotly.js" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments