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
@@ -54,10 +52,10 @@ var Plotly = require('plotly.js-dist-min')
54
52
55
53
You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plotly.js-dist) if you prefer using an unminified package.
56
54
57
-
---
58
-
## Load via script tag
55
+
## Load via Script Tag
56
+
57
+
### The `script` HTML Element
59
58
60
-
### The script HTML element
61
59
> In the examples below `Plotly` object is added to the window scope by `script`. The `newPlot` method is then used to draw an interactive figure as described by `data` and `layout` into the desired `div` here named `gd`. As demonstrated in the example above basic knowledge of `html` and [JSON](https://en.wikipedia.org/wiki/JSON) syntax is enough to get started i.e. with/without JavaScript! To learn and build more with plotly.js please visit [plotly.js documentation](https://plotly.com/javascript).
62
60
63
61
```html
@@ -77,6 +75,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
77
75
```
78
76
79
77
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
78
+
80
79
```html
81
80
<scripttype="module">
82
81
import"https://cdn.plot.ly/plotly-3.1.0.min.js"
@@ -87,15 +86,19 @@ Alternatively you may consider using [native ES6 import](https://developer.mozil
87
86
Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastly.com/open-source>.
88
87
89
88
### Un-minified versions are also available on CDN
89
+
90
90
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
> Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version.
96
97
97
98
### MathJax
99
+
98
100
You could load either version two or version three of MathJax files, for example:
1. Complete and partial official bundles that are distributed to `npm` and the `CDN`, described in [the dist README](https://github.com/plotly/plotly.js/blob/master/dist/README.md).
119
126
2. Custom bundles you can create yourself to optimize the size of bundle depending on your needs. Please visit [CUSTOM_BUNDLE](https://github.com/plotly/plotly.js/blob/master/CUSTOM_BUNDLE.md) for more information.
120
127
121
-
---
122
-
## Alternative ways to load and build plotly.js
123
-
If your library needs to bundle or directly load [plotly.js/lib/index.js](https://github.com/plotly/plotly.js/blob/master/lib/index.js) or parts of its modules similar to [index-basic](https://github.com/plotly/plotly.js/blob/master/lib/index-basic.js) in some other way than via an official or a custom bundle, or in case you want to tweak the default build configurations, then please visit [`BUILDING.md`](https://github.com/plotly/plotly.js/blob/master/BUILDING.md).
124
-
125
-
---
126
128
## Documentation
127
129
128
130
Official plotly.js documentation is hosted at [https://plotly.com/javascript](https://plotly.com/javascript).
129
131
130
132
These pages are generated by the Plotly [graphing-library-docs repo](https://github.com/plotly/graphing-library-docs) built with [Jekyll](https://jekyllrb.com/) and publicly hosted on GitHub Pages.
131
133
For more info about contributing to Plotly documentation, please read through [contributing guidelines](https://github.com/plotly/graphing-library-docs/blob/master/README.md).
132
134
133
-
---
134
-
## Bugs and feature requests
135
+
## Bugs and Feature Requests
135
136
136
137
Have a bug or a feature request? Please [open a Github issue](https://github.com/plotly/plotly.js/issues/new) keeping in mind the [issue guidelines](https://github.com/plotly/plotly.js/blob/master/.github/ISSUE_TEMPLATE.md). You may also want to read about [how changes get made to Plotly.js](https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md)
137
138
138
-
---
139
139
## Contributing
140
140
141
141
Please read through our [contributing guidelines](https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md). Included are directions for opening issues, using plotly.js in your project and notes on development.
142
142
143
-
---
144
-
## Notable contributors
143
+
## Notable Contributors
145
144
146
145
Plotly.js is at the core of a large and dynamic ecosystem with many contributors who file issues, reproduce bugs, suggest improvements, write code in this repo (and other upstream or downstream ones) and help users in the Plotly community forum. The following people deserve special recognition for their outsized contributions to this ecosystem:
147
146
@@ -170,10 +169,9 @@ Plotly.js is at the core of a large and dynamic ecosystem with many contributors
170
169
|**Chris Parmer**|[@chriddyp](https://github.com/chriddyp)|| Hall of Fame |
171
170
|**Alex Vados**|[@alexander-daniel](https://github.com/alexander-daniel)|| Hall of Fame |
172
171
173
-
---
174
172
## Copyright and license
175
173
176
-
Code and documentation copyright 2021 Plotly, Inc.
174
+
Code and documentation copyright Plotly, Inc.
177
175
178
176
Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).
179
177
@@ -183,10 +181,7 @@ This project is maintained under the [Semantic Versioning guidelines](https://se
183
181
184
182
See the [Releases section](https://github.com/plotly/plotly.js/releases) of our GitHub project for changelogs for each release version of plotly.js.
185
183
186
-
---
187
184
## Community
188
185
189
-
* Follow [@plotlygraphs](https://twitter.com/plotlygraphs) on Twitter for the latest Plotly news.
190
-
* Implementation help may be found on community.plot.com (tagged [`plotly-js`](https://community.plotly.com/c/plotly-js)) or
191
-
on Stack Overflow (tagged [`plotly`](https://stackoverflow.com/questions/tagged/plotly)).
186
+
* Implementation help may be found on community.plot.com (tagged [`plotly-js`](https://community.plotly.com/c/plotly-js)) or on Stack Overflow (tagged [`plotly`](https://stackoverflow.com/questions/tagged/plotly)).
192
187
* Developers should use the keyword `plotly` on packages which modify or add to the functionality of plotly.js when distributing through [npm](https://www.npmjs.com/browse/keyword/plotly).
0 commit comments