File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ render(){
52
52
]
53
53
};
54
54
return (
55
- < PlotlyChart data = {toJS(this.model_data) }
55
+ < PlotlyChart data = {data }
56
56
layout = {layout }
57
57
onClick = {({points , event }) => console.log(points , event)}> )
58
58
}
Original file line number Diff line number Diff line change 1
1
/// <reference types="react" />
2
2
import * as React from 'react' ;
3
3
export interface IPlotlyChartProps {
4
+ className ?: any ;
5
+ config ?: any ;
4
6
data : any [ ] ;
5
7
layout ?: any ;
6
- config ?: any ;
7
8
onClick ?: ( data : {
8
9
points : any ;
9
10
event : any ;
@@ -24,6 +25,7 @@ export interface IPlotlyChartProps {
24
25
points : any ;
25
26
event : any ;
26
27
} ) => any ;
28
+ style ?: any ;
27
29
}
28
30
/***
29
31
* Usage:
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-plotlyjs-ts" ,
3
- "version" : " 1.0.3 " ,
3
+ "version" : " 1.1.0 " ,
4
4
"description" : " Typescript-React component for Plotly.js" ,
5
5
"main" : " dist/index.js" ,
6
6
"types" : " dist/index.d.ts" ,
22
22
"lodash" : " ^4.17.4"
23
23
},
24
24
"peerDependencies" : {
25
- "plotly.js" : " ^1.30.0 " ,
26
- "react" : " ^15.6.1 " ,
27
- "react-dom" : " ^15.6.1 " ,
28
- "typescript" : " ^2.5.2 "
25
+ "plotly.js" : " ^1.31.2 " ,
26
+ "react" : " ^16.0.0 " ,
27
+ "react-dom" : " ^16.0.0 " ,
28
+ "typescript" : " ^2.5.3 "
29
29
},
30
30
"devDependencies" : {
31
- "@types/lodash" : " ^4.14.74 " ,
32
- "@types/plotly.js" : " ^1.28.4 " ,
33
- "@types/react" : " ^16.0.5 " ,
34
- "@types/react-dom" : " ^15.5.4 "
31
+ "@types/lodash" : " ^4.14.80 " ,
32
+ "@types/plotly.js" : " ^1.28.8 " ,
33
+ "@types/react" : " ^16.0.18 " ,
34
+ "@types/react-dom" : " ^16.0.2 "
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ import * as plotlyInstance from 'plotly.js/dist/plotly.js';
3
3
import { cloneDeep } from 'lodash' ;
4
4
5
5
export interface IPlotlyChartProps {
6
+ className ?: any ;
7
+ config ?: any ;
6
8
data : any [ ] ;
7
9
layout ?: any ;
8
- config ?: any ;
9
10
onClick ?: ( data : { points : any , event : any } ) => any ;
10
11
onBeforeHover ?: ( data : { points : any , event : any } ) => any ;
11
12
onHover ?: ( data : { points : any , event : any } ) => any ;
12
13
onUnHover ?: ( data : { points : any , event : any } ) => any ;
13
14
onSelected ?: ( data : { points : any , event : any } ) => any ;
15
+ style ?: any ;
14
16
}
15
17
16
18
/***
You can’t perform that action at this time.
0 commit comments