diff --git a/README.md b/README.md index 18b6634..6c4933c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ ## Installation ```bash -$ npm install react-plotly.js plotly.js +$ npm install react-plotly.js plotly.js-dist ``` ## Quick start diff --git a/package.json b/package.json index 90ff178..9363804 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "uglify-js": "^3.0.26" }, "peerDependencies": { - "plotly.js": ">1.34.0", + "plotly.js-dist": ">1.34.0", "react": ">12.0.0" }, "browserify-global-shim": { diff --git a/src/react-plotly.js b/src/react-plotly.js index ac2794a..046f098 100644 --- a/src/react-plotly.js +++ b/src/react-plotly.js @@ -1,5 +1,5 @@ import plotComponentFactory from './factory'; -import Plotly from 'plotly.js/dist/plotly'; +import Plotly from 'plotly.js-dist/plotly'; const PlotComponent = plotComponentFactory(Plotly);