You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@ Thanks for your interest in plotly.js!
2
2
3
3
Before opening an issue, please search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/plotly/plotly.js/issues/new).
4
4
5
-
Bug reports must be accompanied with a reproducible example. We recommend using [codepen](http://codepen.io/), [jsfiddle](https://jsfiddle.net/) or [jsbin](https://jsbin.com) to share your example.
5
+
Bug reports **must** be accompanied with a reproducible example. We recommend using [codepen](http://codepen.io/), [jsfiddle](https://jsfiddle.net/) or [jsbin](https://jsbin.com) to share your example. Please use the [latest un-minified version](https://cdn.plot.ly/plotly-latest.js) of plotly.js in your report unless not applicable.
6
+
7
+
If you don't know JavaScript and still want to help us by reporting a bug, please attach the `"data"` and `"layout"` attributes that describe your graph and updates (if required to detect the bug). One way to retrieve your graph's data and layout attributes is by exporting your graph to [Plotly Cloud](http://plot.ly/). To do so, click on the _Edit in Chart Studio_ mode bar button (the 2nd one from the left by default) and follow these [instructions](https://help.plot.ly/save-share-and-export-in-plotly/), or watch this [screencast](https://community.plot.ly/t/mega-sharing-graphs-with-chart-studio/8869).
6
8
7
9
Note that GitHub issues are reserved for bug reports and feature requests only. Implementation questions should be asked on community.plot.ly (tagged [`plotly-js`](http://community.plot.ly/c/plotly-js)) or on Stack Overflow (tagged [`plotly`](https://stackoverflow.com/questions/tagged/plotly)).
For plotly.js to build with Webpack you will need to install [[email protected]+](https://github.com/hughsk/ify-loader) and add it to your `webpack.config.json`. This adds Browserify transform compatibility to Webpack which is necessary for some plotly.js dependencies.
6
+
7
+
A repo that demonstrates how to build plotly.js with Webpack can be found [here](https://github.com/plotly/plotly-webpack). In short add `ify-loader` to the `module` section in your `webpack.config.js`:
8
+
9
+
```js
10
+
...
11
+
module: {
12
+
rules: [
13
+
{
14
+
test:/\.js$/,
15
+
loader:'ify-loader'
16
+
}
17
+
]
18
+
},
19
+
...
20
+
```
21
+
22
+
## Browserify
23
+
24
+
Given source file:
25
+
26
+
```js
27
+
// file: index.js
28
+
29
+
var Plotly =require('plotly.js');
30
+
31
+
// ....
32
+
```
33
+
34
+
then simply run,
35
+
36
+
37
+
```
38
+
browserify index.js > bundle.js
39
+
```
40
+
41
+
to trim meta information (and thus save a few bytes), run:
Currently Angular CLI uses Webpack under the hood to bundle and build your Angular application.
51
+
Sadly it doesn't allow you to override its Webpack config in order to add the plugin mentioned in the [Webpack](#webpack) section.
52
+
Without this plugin your build will fail when it tries to build glslify for WebGL plots.
53
+
54
+
Currently 2 solutions exists to circumvent this issue:
55
+
56
+
1) If you need to use WebGL plots, you can create a Webpack config from your Angular CLI project with [ng eject](https://github.com/angular/angular-cli/wiki/eject). This will allow you to follow the instructions regarding Webpack.
57
+
2) If you don't need to use WebGL plots, you can make a custom build containing only the required modules for your plots. The clean way to do it with Angular CLI is not the method described in the [Modules](https://github.com/plotly/plotly.js/blob/master/README.md#modules) section of the README but the following:
For plotly.js to build with Webpack you will need to install [[email protected]+](https://github.com/hughsk/ify-loader) and add it to your `webpack.config.json`. This adds Browserify transform compatibility to Webpack which is necessary for some plotly.js dependencies.
109
-
110
-
A repo that demonstrates how to build plotly.js with Webpack can be found [here](https://github.com/rreusser/plotly-webpack). In short add `ify-loader` to the `module` section in your `webpack.config.js`:
111
-
```js
112
-
...
113
-
module: {
114
-
rules: [
115
-
{
116
-
test:/\.js$/,
117
-
loader:'ify-loader'
118
-
}
119
-
]
120
-
},
121
-
...
122
-
```
109
+
Building instructions using `webpack`, `browserify` and other build frameworks are in [`BUILDING.md`](https://github.com/plotly/plotly.js/blob/master/BUILDING.md)
123
110
124
111
## Bugs and feature requests
125
112
@@ -175,6 +162,7 @@ plotly.js charts can also be created and saved online for free at [plot.ly/creat
175
162
|**Alex C. Johnson**|[@alexcjohnson](https://github.com/alexcjohnson)||
Copy file name to clipboardExpand all lines: dist/README.md
+26-26Lines changed: 26 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
38
38
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
39
39
Many other localizations are available - here is an example using Swiss-German (de-CH),
40
40
see the contents of this directory for the full list.
41
-
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.37.1.js
41
+
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.38.0.js
42
42
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
43
43
44
44
*After* the plotly.js script tag, add:
@@ -61,11 +61,11 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
61
61
62
62
It be can imported as minified javascript
63
63
- using dist file `dist/plotly.min.js`
64
-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.37.1.min.js
64
+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.38.0.min.js
65
65
66
66
or as raw javascript:
67
67
- using dist file `dist/plotly.js`
68
-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.37.1.js
68
+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.38.0.js
69
69
- using CommonJS with `require('plotly.js')`
70
70
71
71
If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plot.ly/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
@@ -74,7 +74,7 @@ The main plotly.js bundle weights in at:
0 commit comments