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

Skip to content

Commit b83c5cb

Browse files
authored
Merge pull request plotly#4753 from nainardev/patch-1
Added code block
2 parents 38327b2 + b51e7ef commit b83c5cb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,16 @@ and more.
3434

3535
### Install with npm
3636

37-
```bash
37+
```sh
3838
npm install plotly.js-dist
3939
```
4040

41-
and import plotly.js as `import Plotly from 'plotly.js-dist';` or `var Plotly = require('plotly.js-dist');`.
41+
and import plotly.js as
42+
```js
43+
import Plotly from 'plotly.js-dist'
44+
// Or using require,
45+
var Plotly = require('plotly.js-dist')
46+
```
4247

4348
### Use the plotly.js CDN hosted by Fastly
4449

0 commit comments

Comments
 (0)