Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2b4e50

Browse files
CorentinMAGandrefarzat
authored andcommitted
update README
1 parent 8cf1d5f commit a2b4e50

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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-
3531
Using 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

4443
Add the `PlotlyModule` into the main app module of your project
4544
```typescript
4645
import { NgModule } from '@angular/core';
4746
import { CommonModule } from '@angular/common';
4847

49-
import * as PlotlyJS from 'plotly.js/dist/plotly.js';
48+
import * as PlotlyJS from 'plotly.js-dist';
5049
import { PlotlyModule } from 'angular-plotly.js';
5150

5251
PlotlyModule.plotlyjs = PlotlyJS;

0 commit comments

Comments
 (0)