Skip to content

Commit 44ac628

Browse files
committed
Merge branch 'master' into dragmode_false
2 parents dfaa1a3 + df9ac56 commit 44ac628

File tree

84 files changed

+77758
-62462
lines changed

Some content is hidden

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

84 files changed

+77758
-62462
lines changed

CHANGELOG.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,95 @@ 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.42.2] -- 2018-11-01
14+
15+
### Fixed
16+
- Fix runaway loops for `scattergl` lines and fill traces
17+
(bug introduced in 1.42.0) [#3199]
18+
- Fix size and alignment vertical modebar [#3193]
19+
- Fix legend item rendering for traces with typed array marker
20+
settings [#3192]
21+
22+
23+
## [1.42.1] -- 2018-10-31
24+
25+
### Fixed
26+
- Fix IE regression introduced in 1.42.0 [#3187]
27+
- Fix `parcats` text-shadowing on dark `plot_bgcolor` [#3191]
28+
- Fix `scatter3d` text alignment [#3180]
29+
- Fix `hoverinfo` flags in attribute descriptions [#3158]
30+
- No longer coerce unused `hoverlabel` attribute in `parcoods` [#3158]
31+
- No longer coerce `transforms` attributes in traces that don't support them [#3158]
32+
33+
34+
## [1.42.0] -- 2018-10-29
35+
36+
### Added
37+
- Add `parcats` (aka parallel categories) trace type [#2963, #3072]
38+
- Add new gl3d tick and title auto-rotation algorithm that limits text
39+
overlaps [#3084, #3104, #3131]
40+
- Add support for reversed-range axes on gl3d subplots [#3141]
41+
- Add modebar layout style attributes: `orientation`, `bgcolor`, `color`
42+
and `activecolor` [#3068, #3091]
43+
- Add `title`, `titleposition` and `titlefont` attributes to `pie` traces [#2987]
44+
- Add `hoverlabel.split` attribute to `ohlc` and `candlestick` traces to split
45+
hover labels into multiple pieces [#2959]
46+
- Add support for `line.shape` values 'hv', 'vh', 'hvh' and 'vhv'
47+
in `scattergl` traces [#3087]
48+
- Add handler for `PlotlyConfig.MathJaxConfig: 'local'` to override our default
49+
MathJax behavior which modifies the global MathJax config on load [#2994]
50+
- Add support for graph div as first argument for `Plotly.makeTemplate`
51+
and `Plotly.validateTemplate` [#3111, #3118]
52+
- Implement trace, node and link hoverinfo for `sankey` traces [#3096, #3150]
53+
- Implement per-sector textfont settings in `pie` traces [#3130]
54+
55+
## Changed
56+
- Use new Plotly logo in "Produced with Plotly" modebar button [#3068]
57+
- Improve `histogram` autobin algorithm: allow partial bin specification,
58+
deprecate `autobin(x|y)` attributes, force stacked/grouped histograms to match size
59+
and have compatible `start` value [#3044]
60+
- Count distinct values for category and date axis auto-type, which
61+
improves the detection of "NaN" string values in numerical data [#3070]
62+
- Improve bar and pie textfont color inheritance [#3130]
63+
- Improve `splom` first-render, axis range relayout and marker restyle
64+
performance [#3057, #3161]
65+
- Make `splom` `xaxes` and `yaxes` list always have same length as the trace
66+
`dimensions` regardless of their partial visiblities [#3057]
67+
- Improve axis `overlaying` documentation [#3082]
68+
69+
### Fixed
70+
- Fix `gl3d` subplots on tablets [#3088]
71+
- Fix responsive behavior under flexbox and grid CSS [#3056, #3090, #3122]
72+
- Fix relayout calls turning back `autosize` on [#3120]
73+
- Fix MathJax rendering (for recent versions of MathJax) [#2994]
74+
- Fix `scattergl` update on graphs with fractional computed dimensions [#3132]
75+
- Fix `scattergl` symbols in MS Edge [#2750]
76+
- Fix `scattergl` selections on overlaying axes [#3067]
77+
- Fix `scattergl` `tozero` fills with bad values [#3087, #3168]
78+
- Fix `scattergl` fill layer ordering [#3087]
79+
- Fix `scattergl` lines on reversed-range axes [#3078]
80+
- Fix axis auto-type routine for boolean data [#3070]
81+
- Fix `splom` axis placement when the diagonal is missing [#3057]
82+
- Fix line `restyle` calls on `parcoords` traces [#3178]
83+
- Fix `parcoods` rendering after `hovermode` relayout calls [#3123]
84+
- Fix WebGL warnings for `scatter3d` traces with blank text items [#3171, #3177]
85+
- Fix WebGL warnings for `scatter3d` trace with empty lines [#3174]
86+
- Fix rendering of `scatter3d` lines for certain scene angles [#3163]
87+
- Fix handling of large pad values in `sankey` traces [#3143]
88+
- Fix `scatterpolargl` to `scatterpolar` toggling [#3098]
89+
- Fix `scatterpolargl` axis-autorange padding [#3098]
90+
- Fix `bar` text position for traces with set `base` [#3156]
91+
- Fix `bar` support for typed arrays for `width` and `offset` attributes [#3169]
92+
- Fix aggregate transforms with bad group values [#3093]
93+
- Fix transforms operating on auto-invisible traces [#3139]
94+
- Fix templating for polar and carpet axes [#3092, #3095]
95+
- Ignore invalid trace indices in restyle and update [#3114]
96+
- Fix grid style `relayout` calls on graph with large `splom` traces [#3067]
97+
- Fix logging on some old browsers [#3137]
98+
- Remove erroneous warning `WARN: unrecognized full object value` when
99+
relayouting array containers [#3053]
100+
101+
13102
## [1.41.3] -- 2018-09-25
14103

15104
### Fixed

build/plotcss.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ var rules = {
3737
"X .modebar-group": "float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;",
3838
"X .modebar-btn": "position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;",
3939
"X .modebar-btn svg": "position:relative;top:2px;",
40-
"X .modebar.vertical": "top:-1px;display:flex;flex-direction:column;flex-wrap:wrap;height:100%;align-content:flex-end;",
40+
"X .modebar.vertical": "display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;",
41+
"X .modebar.vertical svg": "top:-1px;",
4142
"X .modebar.vertical .modebar-group": "display:block;float:none;margin-left:0px;margin-bottom:8px;",
4243
"X .modebar.vertical .modebar-group .modebar-btn": "display:block;text-align:center;",
4344
"X [data-title]:before,X [data-title]:after": "position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;",

dist/README.md

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,25 @@ or the un-minified version as:
3333

3434
You can grab the relevant MathJax files in `./dist/extras/mathjax/`.
3535

36+
By default, plotly.js will modify the global MathJax configuration on load.
37+
This can lead to undesirable behavior if plotly.js is loaded alongside
38+
other libraries that also rely on MathJax. To disable this global configuration
39+
process, set the `MathJaxConfig` property to `'local'` in the `window.PlotlyConfig`
40+
object. This property must be set before the plotly.js script tag, for example:
41+
42+
```html
43+
<script>
44+
window.PlotlyConfig = {MathJaxConfig: 'local'}
45+
</script>
46+
<script src="plotly.min.js"></script>
47+
```
48+
3649
### To include localization
3750

3851
Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
3952
Many other localizations are available - here is an example using Swiss-German (de-CH),
4053
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.41.3.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.42.2.js
4255
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.
4356

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

6275
It be can imported as minified javascript
6376
- 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.41.3.min.js
77+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.42.2.min.js
6578

6679
or as raw javascript:
6780
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
6881
- using dist file `dist/plotly.js`
69-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.41.3.js
82+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.42.2.js
7083
- using CommonJS with `require('plotly.js')`
7184

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

7689
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
7790
|-----------|---------------|----------------------|---------------------|
78-
| 5.8 MB | 2.7 MB | 819.8 kB | 6 MB |
91+
| 5.9 MB | 2.7 MB | 832.2 kB | 6.2 MB |
7992

8093
## Partial bundles
8194

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

99112
| Raw size | Minified size | Minified + gzip size |
100113
|------|-----------------|------------------------|
101-
| 2.2 MB | 775.4 kB | 254.1 kB |
114+
| 2.2 MB | 786 kB | 257 kB |
102115

103116
#### CDN links
104117

105118
| Flavor | URL |
106119
| ------ | --- |
107120
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
108121
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
109-
| Tagged | https://cdn.plot.ly/plotly-basic-1.41.3.js |
110-
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.41.3.min.js |
122+
| Tagged | https://cdn.plot.ly/plotly-basic-1.42.2.js |
123+
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.42.2.min.js |
111124

112125
#### npm package (starting in `v1.39.0`)
113126

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

145158
| Raw size | Minified size | Minified + gzip size |
146159
|------|-----------------|------------------------|
147-
| 2.5 MB | 885.7 kB | 288.7 kB |
160+
| 2.5 MB | 898.5 kB | 292.4 kB |
148161

149162
#### CDN links
150163

151164
| Flavor | URL |
152165
| ------ | --- |
153166
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
154167
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
155-
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.41.3.js |
156-
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.41.3.min.js |
168+
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.42.2.js |
169+
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.42.2.min.js |
157170

158171
#### npm package (starting in `v1.39.0`)
159172

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

191204
| Raw size | Minified size | Minified + gzip size |
192205
|------|-----------------|------------------------|
193-
| 2.2 MB | 798.5 kB | 263.2 kB |
206+
| 2.2 MB | 804.9 kB | 265.1 kB |
194207

195208
#### CDN links
196209

197210
| Flavor | URL |
198211
| ------ | --- |
199212
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
200213
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
201-
| Tagged | https://cdn.plot.ly/plotly-geo-1.41.3.js |
202-
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.41.3.min.js |
214+
| Tagged | https://cdn.plot.ly/plotly-geo-1.42.2.js |
215+
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.42.2.min.js |
203216

204217
#### npm package (starting in `v1.39.0`)
205218

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

237250
| Raw size | Minified size | Minified + gzip size |
238251
|------|-----------------|------------------------|
239-
| 3.2 MB | 1.3 MB | 411.4 kB |
252+
| 3.3 MB | 1.3 MB | 413.8 kB |
240253

241254
#### CDN links
242255

243256
| Flavor | URL |
244257
| ------ | --- |
245258
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
246259
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
247-
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.41.3.js |
248-
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.41.3.min.js |
260+
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.42.2.js |
261+
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.42.2.min.js |
249262

250263
#### npm package (starting in `v1.39.0`)
251264

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

283296
| Raw size | Minified size | Minified + gzip size |
284297
|------|-----------------|------------------------|
285-
| 3.3 MB | 1.3 MB | 431.3 kB |
298+
| 3.3 MB | 1.3 MB | 433.5 kB |
286299

287300
#### CDN links
288301

289302
| Flavor | URL |
290303
| ------ | --- |
291304
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
292305
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
293-
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.41.3.js |
294-
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.41.3.min.js |
306+
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.42.2.js |
307+
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.42.2.min.js |
295308

296309
#### npm package (starting in `v1.39.0`)
297310

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

329342
| Raw size | Minified size | Minified + gzip size |
330343
|------|-----------------|------------------------|
331-
| 2.7 MB | 1.3 MB | 400.9 kB |
344+
| 2.7 MB | 1.3 MB | 402.9 kB |
332345

333346
#### CDN links
334347

335348
| Flavor | URL |
336349
| ------ | --- |
337350
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
338351
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
339-
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.41.3.js |
340-
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.41.3.min.js |
352+
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.42.2.js |
353+
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.42.2.min.js |
341354

342355
#### npm package (starting in `v1.39.0`)
343356

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

375388
| Raw size | Minified size | Minified + gzip size |
376389
|------|-----------------|------------------------|
377-
| 2.3 MB | 805.5 kB | 263 kB |
390+
| 2.3 MB | 817.7 kB | 266.7 kB |
378391

379392
#### CDN links
380393

381394
| Flavor | URL |
382395
| ------ | --- |
383396
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
384397
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
385-
| Tagged | https://cdn.plot.ly/plotly-finance-1.41.3.js |
386-
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.41.3.min.js |
398+
| Tagged | https://cdn.plot.ly/plotly-finance-1.42.2.js |
399+
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.42.2.min.js |
387400

388401
#### npm package (starting in `v1.39.0`)
389402

0 commit comments

Comments
 (0)