Skip to content

Commit d106e54

Browse files
committed
no message
1 parent f674299 commit d106e54

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ export default App;
7373
Define PlotlyChart props below:
7474
```typescript
7575
config?: any;
76-
data: any[];
77-
layout?: any;
78-
onClick?: (data: { points: any, event: any }) => any;
79-
onBeforeHover?: (data: { points: any, event: any }) => any;
80-
onHover?: (data: { points: any, event: any }) => any;
81-
onUnHover?: (data: { points: any, event: any }) => any;
82-
onSelected?: (data: { points: any, event: any }) => any;
76+
data: any;
77+
layout?: any;
78+
onClick?: (event: plotly.PlotMouseEvent) => void;
79+
onBeforeHover?: (event: plotly.PlotMouseEvent) => void;
80+
onHover?: (event: plotly.PlotMouseEvent) => void;
81+
onUnHover?: (event: plotly.PlotMouseEvent) => void;
82+
onSelected?: (event: plotly.PlotSelectionEvent) => void;
8383
```
8484
* data, layout, config are the same as in the [plotly.js](https://www.npmjs.com/package/plotly.js).
8585
* <b>onClick, onBeforeHover, onHover, onUnHover, onSelected</b> are on event functions.

0 commit comments

Comments
 (0)