Skip to content

Commit 29ce6df

Browse files
committed
Merge branch 'master' into transitions-in-react
2 parents 8a37ff1 + 2d205e7 commit 29ce6df

File tree

898 files changed

+113105
-87932
lines changed

Some content is hidden

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

898 files changed

+113105
-87932
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"max-len": [0, 80],
3030
"brace-style": [0, "stroustrup", {"allowSingleLine": true}],
3131
"curly": [2, "multi-line"],
32-
"camelcase": [0, {"properties": "never"}],
32+
"camelcase": [2, {"properties": "never"}],
3333
"comma-spacing": [2, {"before": false, "after": true}],
3434
"comma-style": [2, "last"],
3535
"semi": [2],
@@ -63,6 +63,7 @@
6363
"no-shadow": [0, {"builtinGlobals": true}],
6464
"block-scoped-var": [2],
6565
"no-unused-vars": [2],
66+
"one-var": [2, {"initialized": "never"}],
6667
"no-undef-init": [2],
6768
"no-use-before-define": [2, "nofunc"],
6869
"no-loop-func": [2],

CHANGELOG.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,93 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
1010
where X.Y.Z is the semver of most recent plotly.js release.
1111

1212

13+
## [1.43.2] -- 2019-01-08
14+
15+
First 2019 release.
16+
17+
### Fixed
18+
- Fix `uirevision` behavior for `gl3d`, `geo` and `mapbox` subplots [#3394]
19+
- Fix `reversescale` behavior for `surface`, `mesh3d` and `streamtube`
20+
traces (bug introduced in 1.43.0) [#3418]
21+
- Fix modebar hover styling (bug introduced in 1.43.0) [#3397]
22+
- Fix horizontal `box` / `violin` hover label misalignment under
23+
`hovermode:'closest'` [#3401]
24+
- Fix `ohlc` and `candlestick` hover for traces with empty items [#3366]
25+
- Fix `surface` trace `visible` logic [#3365]
26+
- Fix `mesh3d` trace `visible` logic [#3369]
27+
28+
29+
## [1.43.1] -- 2018-12-21
30+
31+
### Fixed
32+
- Fix z-axis auto-type for cartesian + gl3d graphs (bug introduced in 1.43.0) [#3360]
33+
- Fix `multicategory` axis coordinate sorting [#3362]
34+
- Fix `multicategory` y-axes clearance [#3354]
35+
- Fix contour label clipPath segments for reversed axes [#3352]
36+
- Fix axis autorange on double-click on graph `fixedrange:true` [#3351]
37+
38+
39+
## [1.43.0] -- 2018-12-19
40+
41+
### Added
42+
- Add `hovertemplate` attribute to `scatter`, `scattergl`, `bar`, `histogram`,
43+
`pie` and `sankey` traces [#3126, #3265, #3284]
44+
- Add `layout.title` placement attributes `x`, `y`, `xref`, `yref`,
45+
`xanchor`, `yanchor` and `pad` [#3276]
46+
- Add support for `<br>`, `<sup>`, and `<sub>` pseudo-html in `scatter3d` and `gl3d`
47+
scene text [#3207]
48+
- Add `multicategory` axis type, allowing for "multi-level" categorical axis labels
49+
and category dividers with axis attributes: `showdividers`,
50+
`dividercolor` and `diverwidth` [#3254, #3300, #3326]
51+
- Add cartesian axis attribute `tickson` with value '`boundaries`' to
52+
place categorical ticks on the category boundaries [#3254, #3275]
53+
- Add `uirevision` attributes to control the persistence of user-driven changes
54+
on the graph [#3236]
55+
- Add `legend.valign` to set the vertical alignment of the legend symbols
56+
with respect to their associated text labels [#3263]
57+
- Implement `arrayOk` `textposition` for `scatter3d` traces [#3200]
58+
- Add layout attributes `colorscale.sequential`, `colorscale.sequentialminus` and
59+
`colorscale.diverging` to set graph-wide colorscale defaults [#3274]
60+
- Add `dragmode: false` to disable all drag interactions on cartesian subplots [#3170]
61+
- Add `plotly.js-locales` npm packages that includes all official locales modules [#3223]
62+
- Add `watermark` config option to permanently show Plotly's logo
63+
in the mode bar (set to false by default) [#3280]
64+
- Add Finnish locale (`fi`) [#3325]
65+
66+
### Changed
67+
- Remove "Edit in Chart Studio" button by default [#3307]
68+
- `title` attributes linked to strings are now deprecated. Please use
69+
`title.text` instead to fill in your title text [#3276]
70+
- `title*` attributes are new deprecated. They moved to `title.*`. For
71+
example, `colorbar.titleside` is now `colorbar.title.side` [#3276]
72+
- No longer mutate `colorscale` values into user data [#3341]
73+
- No longer mutate `zmin`/`zmax`, `cmin`/`cmax` values into user data [#3341]
74+
75+
### Fixed
76+
- Fix `react` when updates trigger a new set of auto-margins [#3323]
77+
- Fix `scattergl` coloring when more than 255 marker colors are present [#3328, #3334]
78+
- More `scattergl` IE11 fixes [#3333, #3335]
79+
- Multiple `surface` rendering fixes [#3281]
80+
- Correctly default `scene.dragmode` to `'orbit'` when camera up vector is
81+
tilted [#3256]
82+
- Fix hover on `scatter3d` traces with `opacity: 1` on Ubuntu [#3301]
83+
- Fix console error _Uncaught ax.dtick error: NaN_ in gl3d subplots [#3233]
84+
- Fix histogram hover event triggers when hovering from bar to bar [#3345]
85+
- Fix graphs with empty and non-empty histogram traces [#3343]
86+
- Fix contour labels on reversed axes [#3279]
87+
- Fix `autocolorscale` toggling [#3341]
88+
- Fix template support for `marker.colorscale` [#3341]
89+
- Fix `scatter3D` trace with `mode: 'lines+markers'` with line color array error [#3341]
90+
- Do not add `<base>` href to SVG clip paths during toImage [#3272]
91+
- Fix table scrolling that leaked into window scope [#3327]
92+
- Fix fills on segment-less marker-less traces [#3282]
93+
- Fix rangesliders on reversed-range axes [#3304]
94+
- Fix rangesliders on `side: 'top'`x-axes [#3329]
95+
- Fix typed array support for `ohlc` and `candlestick` traces [#3342]
96+
- Fix `restyle` with `impliedEdits` on trace with `groupby` transforms [#3236]
97+
- Fix `editable: true` drag on `marker` colorbars [#3236]
98+
99+
13100
## [1.42.5] -- 2018-11-08
14101

15102
### Fixed

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) 2018 Plotly, Inc
3+
Copyright (c) 2019 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
@@ -182,7 +182,7 @@ plotly.js charts can also be created and saved online for free at [plot.ly/creat
182182

183183
## Copyright and license
184184

185-
Code and documentation copyright 2018 Plotly, Inc.
185+
Code and documentation copyright 2019 Plotly, Inc.
186186

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

build/plotcss.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ var rules = {
3232
"X .cursor-ne-resize": "cursor:ne-resize;",
3333
"X .cursor-grab": "cursor:-webkit-grab;cursor:grab;",
3434
"X .modebar": "position:absolute;top:2px;right:2px;z-index:1001;",
35+
"X .ease-bg": "-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;",
3536
"X .modebar--hover>:not(.watermark)": "opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;",
3637
"X:hover .modebar--hover .modebar-group": "opacity:1;",
3738
"X .modebar-group": "float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;",

devtools/image_viewer/viewer.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ var path = require('path');
33

44
var d3 = require('d3');
55

6-
var $plotlist = document.getElementById('plot-list'),
7-
$toggles = document.getElementById('plot-toggles'),
8-
$images = document.getElementById('plot-images'),
9-
$mock = document.getElementById('plot-mock'),
10-
$toggleBaseline = document.createElement('button'),
11-
$toggleTest = document.createElement('button'),
12-
$toggleDiff = document.createElement('button'),
13-
$imgBaseline = document.createElement('img'),
14-
$imgTest = document.createElement('img'),
15-
$imgDiff = document.createElement('img');
6+
var $plotlist = document.getElementById('plot-list');
7+
var $toggles = document.getElementById('plot-toggles');
8+
var $images = document.getElementById('plot-images');
9+
var $mock = document.getElementById('plot-mock');
10+
var $toggleBaseline = document.createElement('button');
11+
var $toggleTest = document.createElement('button');
12+
var $toggleDiff = document.createElement('button');
13+
var $imgBaseline = document.createElement('img');
14+
var $imgTest = document.createElement('img');
15+
var $imgDiff = document.createElement('img');
1616

1717
$toggles.style.display = 'none';
1818
$images.style.display = 'none';
@@ -21,13 +21,13 @@ setupToggle($toggleBaseline, $imgBaseline, 'Baseline');
2121
setupToggle($toggleTest, $imgTest, 'Test');
2222
setupToggle($toggleDiff, $imgDiff, 'Diff');
2323

24-
var pathToRoot = path.join(__dirname, '../../'),
25-
pathToImageTest = path.join(pathToRoot, 'test/image'),
26-
pathToBuild = path.join(pathToRoot, 'build/'),
27-
dirMocks = path.join(pathToImageTest, 'mocks/'),
28-
dirBaseline = path.join(pathToImageTest, 'baselines/'),
29-
dirTest = path.join(pathToBuild, 'test_images/'),
30-
dirDiff = path.join(pathToBuild, 'test_images_diff/');
24+
var pathToRoot = path.join(__dirname, '../../');
25+
var pathToImageTest = path.join(pathToRoot, 'test/image');
26+
var pathToBuild = path.join(pathToRoot, 'build/');
27+
var dirMocks = path.join(pathToImageTest, 'mocks/');
28+
var dirBaseline = path.join(pathToImageTest, 'baselines/');
29+
var dirTest = path.join(pathToBuild, 'test_images/');
30+
var dirDiff = path.join(pathToBuild, 'test_images_diff/');
3131

3232
// N.B. brfs only understand hard-coded paths
3333
var imageNames = fs.readFileSync(

devtools/test_dashboard/devtools.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ searchBar.addEventListener('keyup', debounce(searchMocks, 250));
179179
function debounce(func, wait, immediate) {
180180
var timeout;
181181
return function() {
182-
var context = this, args = arguments;
182+
var context = this;
183+
var args = arguments;
183184
var later = function() {
184185
timeout = null;
185186
if(!immediate) func.apply(context, args);

dist/README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
5151
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
5252
Many other localizations are available - here is an example using Swiss-German (de-CH),
5353
see the contents of this directory for the full list.
54-
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.42.5.js
54+
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.43.2.js
5555
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
5656

5757
*After* the plotly.js script tag, add:
@@ -74,12 +74,12 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
7474

7575
It be can imported as minified javascript
7676
- using dist file `dist/plotly.min.js`
77-
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.42.5.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.43.2.min.js
7878

7979
or as raw javascript:
8080
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
8181
- using dist file `dist/plotly.js`
82-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.42.5.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.43.2.js
8383
- using CommonJS with `require('plotly.js')`
8484

8585
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`
@@ -88,7 +88,7 @@ The main plotly.js bundle weights in at:
8888

8989
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
9090
|-----------|---------------|----------------------|---------------------|
91-
| 5.9 MB | 2.7 MB | 832.5 kB | 6.2 MB |
91+
| 6 MB | 2.8 MB | 843.5 kB | 6.3 MB |
9292

9393
## Partial bundles
9494

@@ -111,16 +111,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
111111

112112
| Raw size | Minified size | Minified + gzip size |
113113
|------|-----------------|------------------------|
114-
| 2.2 MB | 786.4 kB | 257.2 kB |
114+
| 2.3 MB | 806.6 kB | 263.6 kB |
115115

116116
#### CDN links
117117

118118
| Flavor | URL |
119119
| ------ | --- |
120120
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
121121
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
122-
| Tagged | https://cdn.plot.ly/plotly-basic-1.42.5.js |
123-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.42.5.min.js |
122+
| Tagged | https://cdn.plot.ly/plotly-basic-1.43.2.js |
123+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.43.2.min.js |
124124

125125
#### npm package (starting in `v1.39.0`)
126126

@@ -157,16 +157,16 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
157157

158158
| Raw size | Minified size | Minified + gzip size |
159159
|------|-----------------|------------------------|
160-
| 2.5 MB | 898.9 kB | 292.6 kB |
160+
| 2.6 MB | 919.7 kB | 299.3 kB |
161161

162162
#### CDN links
163163

164164
| Flavor | URL |
165165
| ------ | --- |
166166
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
167167
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
168-
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.42.5.js |
169-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.42.5.min.js |
168+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.43.2.js |
169+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.43.2.min.js |
170170

171171
#### npm package (starting in `v1.39.0`)
172172

@@ -203,16 +203,16 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
203203

204204
| Raw size | Minified size | Minified + gzip size |
205205
|------|-----------------|------------------------|
206-
| 2.2 MB | 805.3 kB | 265.3 kB |
206+
| 2.3 MB | 824.5 kB | 271.5 kB |
207207

208208
#### CDN links
209209

210210
| Flavor | URL |
211211
| ------ | --- |
212212
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
213213
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
214-
| Tagged | https://cdn.plot.ly/plotly-geo-1.42.5.js |
215-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.42.5.min.js |
214+
| Tagged | https://cdn.plot.ly/plotly-geo-1.43.2.js |
215+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.43.2.min.js |
216216

217217
#### npm package (starting in `v1.39.0`)
218218

@@ -249,16 +249,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
249249

250250
| Raw size | Minified size | Minified + gzip size |
251251
|------|-----------------|------------------------|
252-
| 3.3 MB | 1.3 MB | 414 kB |
252+
| 3.3 MB | 1.3 MB | 423.3 kB |
253253

254254
#### CDN links
255255

256256
| Flavor | URL |
257257
| ------ | --- |
258258
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
259259
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
260-
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.42.5.js |
261-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.42.5.min.js |
260+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.43.2.js |
261+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.43.2.min.js |
262262

263263
#### npm package (starting in `v1.39.0`)
264264

@@ -295,16 +295,16 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
295295

296296
| Raw size | Minified size | Minified + gzip size |
297297
|------|-----------------|------------------------|
298-
| 3.3 MB | 1.3 MB | 433.7 kB |
298+
| 3.4 MB | 1.4 MB | 441.1 kB |
299299

300300
#### CDN links
301301

302302
| Flavor | URL |
303303
| ------ | --- |
304304
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
305305
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
306-
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.42.5.js |
307-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.42.5.min.js |
306+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.43.2.js |
307+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.43.2.min.js |
308308

309309
#### npm package (starting in `v1.39.0`)
310310

@@ -341,16 +341,16 @@ The `mapbox` partial bundle contains trace modules `scatter` and `scattermapbox`
341341

342342
| Raw size | Minified size | Minified + gzip size |
343343
|------|-----------------|------------------------|
344-
| 2.7 MB | 1.3 MB | 403.1 kB |
344+
| 2.8 MB | 1.3 MB | 409.4 kB |
345345

346346
#### CDN links
347347

348348
| Flavor | URL |
349349
| ------ | --- |
350350
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
351351
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
352-
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.42.5.js |
353-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.42.5.min.js |
352+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.43.2.js |
353+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.43.2.min.js |
354354

355355
#### npm package (starting in `v1.39.0`)
356356

@@ -387,16 +387,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram
387387

388388
| Raw size | Minified size | Minified + gzip size |
389389
|------|-----------------|------------------------|
390-
| 2.3 MB | 818.1 kB | 266.9 kB |
390+
| 2.4 MB | 838.8 kB | 273.3 kB |
391391

392392
#### CDN links
393393

394394
| Flavor | URL |
395395
| ------ | --- |
396396
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
397397
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
398-
| Tagged | https://cdn.plot.ly/plotly-finance-1.42.5.js |
399-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.42.5.min.js |
398+
| Tagged | https://cdn.plot.ly/plotly-finance-1.43.2.js |
399+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.43.2.min.js |
400400

401401
#### npm package (starting in `v1.39.0`)
402402

0 commit comments

Comments
 (0)