Skip to content

Commit 92ea302

Browse files
committed
bug fix
add npmignore
1 parent d94c4e4 commit 92ea302

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
npm-debug.log
2-
tsconfig.json
2+
tsconfig.json
3+
node_modules
4+
.idea

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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)
22

33
Inspired by [React-PlotlyJS](https://github.com/benjeffery/react-plotlyjs), many thanks!
44

@@ -9,12 +9,10 @@ Self-redraw when props changed.
99
## Usage
1010

1111
```typescript
12-
import PlotlyChart from 'PlotlyChart';
12+
import PlotlyChart from 'react-plotlyjs-ts';
1313

1414
...
15-
16-
render(){
17-
15+
render(){
1816
const data = [
1917
{
2018
type: 'scatter', // all "scatter" attributes: https://plot.ly/javascript/reference/#scatter
@@ -45,8 +43,7 @@ render(){
4543
yref: 'paper' // #layout-annotations-yref
4644
}
4745
]
48-
};
49-
46+
};
5047
return (
5148
<PlotlyChart data={data} layout={layout} />
5249
)

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.0.0",
3+
"version": "1.0.1",
44
"description": "Typescript-React component for Plotly.js",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)