Skip to content

Commit 66e1b80

Browse files
committed
update doc
1 parent d52e4f1 commit 66e1b80

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ render(){
5454
return (
5555
<PlotlyChart data={data}
5656
layout={layout}
57-
onClick={({points, event}) => console.log(points, event)}> )
57+
onClick={({points, event}) => console.log(points, event)} />
58+
)
5859
}
5960
```
6061

6162
## Documentation
6263
Define PlotlyChart props below:
6364
```typescript
64-
className?: any;
6565
config?: any;
6666
data: any[];
6767
layout?: any;
@@ -70,7 +70,6 @@ Define PlotlyChart props below:
7070
onHover?: (data: { points: any, event: any }) => any;
7171
onUnHover?: (data: { points: any, event: any }) => any;
7272
onSelected?: (data: { points: any, event: any }) => any;
73-
style?: any;
7473
```
7574
* data, layout, config are the same as in the [plotly.js](https://www.npmjs.com/package/plotly.js).
7675
* <b>onClick, onBeforeHover, onHover, onUnHover, onSelected</b> are on event functions.

dist/index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/// <reference types="react" />
22
import * as React from 'react';
33
export interface IPlotlyChartProps {
4-
className?: any;
54
config?: any;
65
data: any[];
76
layout?: any;
@@ -25,7 +24,6 @@ export interface IPlotlyChartProps {
2524
points: any;
2625
event: any;
2726
}) => any;
28-
style?: any;
2927
}
3028
/***
3129
* Usage:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-plotlyjs-ts",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Typescript-React component for Plotly.js",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import * as plotlyInstance from 'plotly.js/dist/plotly.js';
33
import {cloneDeep} from 'lodash';
44

55
export interface IPlotlyChartProps {
6-
className?: any;
76
config?: any;
87
data: any[];
98
layout?: any;
@@ -12,7 +11,6 @@ export interface IPlotlyChartProps {
1211
onHover?: (data: { points: any, event: any }) => any;
1312
onUnHover?: (data: { points: any, event: any }) => any;
1413
onSelected?: (data: { points: any, event: any }) => any;
15-
style?: any;
1614
}
1715

1816
/***

0 commit comments

Comments
 (0)