File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -28,25 +28,24 @@ Supports Angular 9.x and up. If you want to use with Angular 8.x, please use ver
2828
2929## Installation
3030
31- ``` bash
32- $ npm install angular-plotly.js plotly.js
33- ```
34-
3531Using the [ angular CLI] ( https://cli.angular.io/ ) to start a new project
3632``` bash
3733$ ng new my-project
3834$ cd my-project
39- $ npm install angular-plotly.js plotly.js --save
35+ $ npm install angular-plotly.js plotly.js-dist --save
36+ $ npm install @types/plotly.js --save-dev
4037```
4138
39+ Finally you need to rename the ` node_modules/@types/plotly.js ` folder to ` plotly.js-dist `
40+
4241## Quick start
4342
4443Add the ` PlotlyModule ` into the main app module of your project
4544``` typescript
4645import { NgModule } from ' @angular/core' ;
4746import { CommonModule } from ' @angular/common' ;
4847
49- import * as PlotlyJS from ' plotly.js/ dist/plotly.js ' ;
48+ import * as PlotlyJS from ' plotly.js- dist' ;
5049import { PlotlyModule } from ' angular-plotly.js' ;
5150
5251PlotlyModule .plotlyjs = PlotlyJS ;
You can’t perform that action at this time.
0 commit comments