Skip to content

Commit 70769e9

Browse files
committed
Merge branch 'master' into rescatter-squashed
2 parents b64928d + 5e16992 commit 70769e9

File tree

815 files changed

+5308
-2244
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

815 files changed

+5308
-2244
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
Thanks for your interest in plotly.js!
22

3+
### Translations:
4+
5+
- Make a PR directly to the main repository
6+
- Label it `type: translation`
7+
- Please @ mention a few other speakers of this language who can help review your translations.
8+
- If you've omitted any keys from [dist/translation_keys.txt](https://github.com/plotly/plotly.js/blob/master/dist/translation-keys.txt) - which means they will fall back on the US English text - just make a short comment about why in the PR description: the English text works fine in your language, or you would like someone else to help translating those, or whatever the reason.
9+
- You should only update files in `lib/locales/`, not those in `dist/`
10+
11+
### Features, Bug fixes, and others:
12+
313
Developers are strongly encouraged to first make a PR to their own plotly.js fork and ask one of the maintainers to review the modifications there. Once the pull request is deemed satisfactory, the developer will be asked to make a pull request to the main plotly.js repo and may be asked to squash some commits before doing so.
414

515
Before opening a pull request, developer should:

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ We use the following [labels](https://github.com/plotly/plotly.js/labels) to tra
1717
| `type: bug` | bug report confirmed by a plotly team member |
1818
| `type: regression` | bug that introduced a change in behavior from one version to the next |
1919
| `type: feature` | planned feature additions |
20+
| `type: translation` | localization-related tasks |
2021
| `type: performance` | performance related tasks |
2122
| `type: maintenance` | source code cleanup resulting in no enhancement for users |
2223
| `type: documentation` | API doc or attribute description improvements |

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2017 Plotly, Inc
3+
Copyright (c) 2018 Plotly, Inc
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ plotly.js charts can also be created and saved online for free at [plot.ly/creat
187187

188188
## Copyright and license
189189

190-
Code and documentation copyright 2017 Plotly, Inc.
190+
Code and documentation copyright 2018 Plotly, Inc.
191191

192192
Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).
193193

build/plotcss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var rules = {
5050
"X .select-outline-2": "stroke:black;stroke-dasharray:2px 2px;",
5151
Y: "font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;",
5252
"Y p": "margin:0;",
53-
"Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;",
53+
"Y .notifier-note": "min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;",
5454
"Y .notifier-close": "color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;",
5555
"Y .notifier-close:hover": "color:#444;text-decoration:none;cursor:pointer;"
5656
};

dist/README.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,46 @@ or the un-minified version as:
1414
<script type="text/javascript" src="plotly.js" charset="utf-8"></script>
1515
```
1616

17-
To support IE9, put:
17+
### To support IE9
18+
19+
*Before* the plotly.js script tag, add:
1820

1921
```html
2022
<script>if(typeof window.Int16Array !== 'function')document.write("<scri"+"pt src='extras/typedarray.min.js'></scr"+"ipt>");</script>
2123
<script>document.write("<scri"+"pt src='extras/request_animation_frame.js'></scr"+"ipt>");</script>
2224
```
2325

24-
before the plotly.js script tag.
26+
### To support MathJax
2527

26-
To add MathJax, put
28+
*Before* the plotly.js script tag, add:
2729

2830
```html
2931
<script type="text/javascript" src="mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
3032
```
3133

32-
before the plotly.js script tag. You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
34+
You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
35+
36+
### To include localization
37+
38+
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
39+
Many other localizations are available - here is an example using Swiss-German (de-CH),
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.31.2.js
42+
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
43+
44+
*After* the plotly.js script tag, add:
45+
46+
```html
47+
<script type="text/javascript" src="plotly-locale-de-ch.js"></script>
48+
<script type="text/javascript">Plotly.setPlotConfig({locale: 'de-CH'})</script>
49+
```
50+
51+
The first line loads and registers the locale definition with plotly.js, the second sets it as the default for all Plotly plots.
52+
You can also include multiple locale definitions and apply them to each plot separately as a `config` parameter:
53+
54+
```js
55+
Plotly.newPlot(graphDiv, data, layout, {locale: 'de-CH'})
56+
```
3357

3458
# Bundle information
3559

@@ -84,7 +108,7 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
84108

85109
### plotly.js cartesian
86110

87-
The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`, `histogram`, `histogram2d`, `histogram2dcontour`, `pie`, `contour` and `scatterternary` trace modules.
111+
The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`, `histogram`, `histogram2d`, `histogram2dcontour`, `pie`, `contour`, `scatterternary` and `violin` trace modules.
88112

89113
| Way to import | Location |
90114
|---------------|----------|

dist/plotly-locale-af.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-am.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-ar-dz.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-ar-eg.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-ar.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-az.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-bg.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-bs.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-ca.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-cs.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-da.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-de-ch.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-de.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-el.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-en-us.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/plotly-locale-en.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/plotly-locale-eo.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-es-ar.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-es-pe.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-es.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/plotly-locale-et.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)