Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 74dedd4

Browse filesBrowse files
authored
Merge pull request #7101 from birkskyum/update-custom-bundle
Elaborate on custom bundle instructions
2 parents cc7f9f9 + 3d4cfe9 commit 74dedd4
Copy full SHA for 74dedd4

File tree

2 files changed

+24
-3
lines changed
Filter options

2 files changed

+24
-3
lines changed

‎CUSTOM_BUNDLE.md

Copy file name to clipboardExpand all lines: CUSTOM_BUNDLE.md
+22-3Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
# Custom bundle
22
You can simply make custom bundles yourself, if none of the [distributed packages](https://github.com/plotly/plotly.js/blob/master/dist/README.md) meet your needs, or you want to make a more optimized bundle file with/without specific traces and transforms.
33

4-
Install plotly.js, move to plotly.js folder then install plotly.js dependencies:
4+
Make sure you have the versions of node/npm that's recommended:
5+
- plotly.js before 2.5: Node 12/npm 6
6+
- plotly.js from 2.5: Node 16/npm 8
7+
- plotly.js from 2.35: Node 18/npm 10
8+
9+
To download a specific node version look [here](https://nodejs.org/en/download/package-manager).
10+
11+
Note: For CI, it's faster to do `git clone --depth 1` to only get one commit.
12+
13+
Clone plotly.js, where the <version> is one of [these](https://github.com/plotly/plotly.js/tags):
14+
```sh
15+
git clone --branch <version> https://github.com/plotly/plotly.js.git
16+
```
17+
18+
Note: If you've already cloned plotly.js, then could switch to another version with:
19+
```sh
20+
git fetch
21+
git checkout <version>
22+
```
23+
24+
Move to plotly.js folder then install plotly.js dependencies:
525
```sh
6-
npm i plotly.js
7-
cd node_modules/plotly.js
26+
cd plotly.js
827
npm i
928
```
1029

‎draftlogs/7101_change.md

Copy file name to clipboard
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Elaborate on the Custom Bundle guide [[#7101](https://github.com/plotly/plotly.js/pull/7101)]
2+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.