Skip to content

Commit 1314f2f

Browse files
committed
Merge branch 'master' into scrollzoom-patch
2 parents 00aa9c8 + 2d205e7 commit 1314f2f

File tree

1,053 files changed

+156502
-104299
lines changed

Some content is hidden

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

1,053 files changed

+156502
-104299
lines changed

.circleci/config.yml

+33
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
command: ./.circleci/test.sh image
8989
- store_artifacts:
9090
path: build
91+
destination: /
9192

9293
test-image2:
9394
docker:
@@ -107,6 +108,7 @@ jobs:
107108
command: ./.circleci/test.sh image2
108109
- store_artifacts:
109110
path: build
111+
destination: /
110112

111113
test-syntax:
112114
docker:
@@ -120,6 +122,34 @@ jobs:
120122
name: Run syntax tests
121123
command: ./.circleci/test.sh syntax
122124

125+
publish:
126+
docker:
127+
- image: circleci/node:10.9.0
128+
working_directory: ~/plotly.js
129+
steps:
130+
- checkout
131+
- attach_workspace:
132+
at: ~/plotly.js
133+
- run:
134+
name: Update plot-schema.json
135+
command: node tasks/bundle_plot_schema.js
136+
- store_artifacts:
137+
path: build/plotly.js
138+
destination: /plotly.js
139+
- store_artifacts:
140+
path: dist/plotly.min.js
141+
destination: /plotly.min.js
142+
- store_artifacts:
143+
path: dist/plot-schema.json
144+
destination: /plot-schema.json
145+
- run:
146+
name: Show URLs to build files
147+
command: |
148+
PROJECT_NUM=45646037
149+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.js
150+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plotly.min.js
151+
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/plot-schema.json
152+
123153
workflows:
124154
version: 2
125155
build-and-test:
@@ -140,3 +170,6 @@ workflows:
140170
- test-syntax:
141171
requires:
142172
- build
173+
- publish:
174+
requires:
175+
- build

.eslintrc

+2-1
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

+199
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,205 @@ 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+
100+
## [1.42.5] -- 2018-11-08
101+
102+
### Fixed
103+
- Fix `scattergl` / `scatterpolargl` with `mode: lines` and
104+
more than 1e5 pts (bug introduced in 1.42.0) [#3228]
105+
106+
107+
## [1.42.4] -- 2018-11-07
108+
109+
### Fixed
110+
- Remove rendering artifacts from `table` orca PDF exports [#3220]
111+
112+
113+
## [1.42.3] -- 2018-11-06
114+
115+
### Fixed
116+
- Fix `histogram` binning for typed array inputs (bug introduced in 1.42.0) [#3211]
117+
- Fix textfont color `restyle` calls for `pie` traces [#3214]
118+
- Fix textfont color `editType` for `bar` traces [#3214]
119+
- Fix array `hoverinfo` support for `ohlc` and `candelestick` [#3213]
120+
- Correctly list `parcats` hoverinfo attributes which does not support array inputs [#3213]
121+
122+
123+
## [1.42.2] -- 2018-11-01
124+
125+
### Fixed
126+
- Fix runaway loops for `scattergl` lines and fill traces
127+
(bug introduced in 1.42.0) [#3199]
128+
- Fix size and alignment vertical modebar [#3193]
129+
- Fix legend item rendering for traces with typed array marker
130+
settings [#3192]
131+
132+
133+
## [1.42.1] -- 2018-10-31
134+
135+
### Fixed
136+
- Fix IE regression introduced in 1.42.0 [#3187]
137+
- Fix `parcats` text-shadowing on dark `plot_bgcolor` [#3191]
138+
- Fix `scatter3d` text alignment [#3180]
139+
- Fix `hoverinfo` flags in attribute descriptions [#3158]
140+
- No longer coerce unused `hoverlabel` attribute in `parcoods` [#3158]
141+
- No longer coerce `transforms` attributes in traces that don't support them [#3158]
142+
143+
144+
## [1.42.0] -- 2018-10-29
145+
146+
### Added
147+
- Add `parcats` (aka parallel categories) trace type [#2963, #3072]
148+
- Add new gl3d tick and title auto-rotation algorithm that limits text
149+
overlaps [#3084, #3104, #3131]
150+
- Add support for reversed-range axes on gl3d subplots [#3141]
151+
- Add modebar layout style attributes: `orientation`, `bgcolor`, `color`
152+
and `activecolor` [#3068, #3091]
153+
- Add `title`, `titleposition` and `titlefont` attributes to `pie` traces [#2987]
154+
- Add `hoverlabel.split` attribute to `ohlc` and `candlestick` traces to split
155+
hover labels into multiple pieces [#2959]
156+
- Add support for `line.shape` values 'hv', 'vh', 'hvh' and 'vhv'
157+
in `scattergl` traces [#3087]
158+
- Add handler for `PlotlyConfig.MathJaxConfig: 'local'` to override our default
159+
MathJax behavior which modifies the global MathJax config on load [#2994]
160+
- Add support for graph div as first argument for `Plotly.makeTemplate`
161+
and `Plotly.validateTemplate` [#3111, #3118]
162+
- Implement trace, node and link hoverinfo for `sankey` traces [#3096, #3150]
163+
- Implement per-sector textfont settings in `pie` traces [#3130]
164+
165+
## Changed
166+
- Use new Plotly logo in "Produced with Plotly" modebar button [#3068]
167+
- Improve `histogram` autobin algorithm: allow partial bin specification,
168+
deprecate `autobin(x|y)` attributes, force stacked/grouped histograms to match size
169+
and have compatible `start` value [#3044]
170+
- Count distinct values for category and date axis auto-type, which
171+
improves the detection of "NaN" string values in numerical data [#3070]
172+
- Improve bar and pie textfont color inheritance [#3130]
173+
- Improve `splom` first-render, axis range relayout and marker restyle
174+
performance [#3057, #3161]
175+
- Make `splom` `xaxes` and `yaxes` list always have same length as the trace
176+
`dimensions` regardless of their partial visiblities [#3057]
177+
- Improve axis `overlaying` documentation [#3082]
178+
179+
### Fixed
180+
- Fix `gl3d` subplots on tablets [#3088]
181+
- Fix responsive behavior under flexbox and grid CSS [#3056, #3090, #3122]
182+
- Fix relayout calls turning back `autosize` on [#3120]
183+
- Fix MathJax rendering (for recent versions of MathJax) [#2994]
184+
- Fix `scattergl` update on graphs with fractional computed dimensions [#3132]
185+
- Fix `scattergl` symbols in MS Edge [#2750]
186+
- Fix `scattergl` selections on overlaying axes [#3067]
187+
- Fix `scattergl` `tozero` fills with bad values [#3087, #3168]
188+
- Fix `scattergl` fill layer ordering [#3087]
189+
- Fix `scattergl` lines on reversed-range axes [#3078]
190+
- Fix axis auto-type routine for boolean data [#3070]
191+
- Fix `splom` axis placement when the diagonal is missing [#3057]
192+
- Fix line `restyle` calls on `parcoords` traces [#3178]
193+
- Fix `parcoods` rendering after `hovermode` relayout calls [#3123]
194+
- Fix WebGL warnings for `scatter3d` traces with blank text items [#3171, #3177]
195+
- Fix WebGL warnings for `scatter3d` trace with empty lines [#3174]
196+
- Fix rendering of `scatter3d` lines for certain scene angles [#3163]
197+
- Fix handling of large pad values in `sankey` traces [#3143]
198+
- Fix `scatterpolargl` to `scatterpolar` toggling [#3098]
199+
- Fix `scatterpolargl` axis-autorange padding [#3098]
200+
- Fix `bar` text position for traces with set `base` [#3156]
201+
- Fix `bar` support for typed arrays for `width` and `offset` attributes [#3169]
202+
- Fix aggregate transforms with bad group values [#3093]
203+
- Fix transforms operating on auto-invisible traces [#3139]
204+
- Fix templating for polar and carpet axes [#3092, #3095]
205+
- Ignore invalid trace indices in restyle and update [#3114]
206+
- Fix grid style `relayout` calls on graph with large `splom` traces [#3067]
207+
- Fix logging on some old browsers [#3137]
208+
- Remove erroneous warning `WARN: unrecognized full object value` when
209+
relayouting array containers [#3053]
210+
211+
13212
## [1.41.3] -- 2018-09-25
14213

15214
### Fixed

LICENSE

+1-1
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

+12-2
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,24 @@ plotly.js charts can also be created and saved online for free at [plot.ly/creat
154154

155155
## Creators
156156

157+
### Active
158+
157159
| | Github | Twitter |
158160
|---|--------|---------|
159161
|**Alex C. Johnson**| [@alexcjohnson](https://github.com/alexcjohnson) | |
160162
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | [@etpinard](https://twitter.com/etpinard) |
163+
|**Antoine Roy-Gobeil** | [@antoinerg](https://github.com/antoinerg) | |
164+
|**Mojtaba Samimi** | [@archmoj](https://github.com/archmoj) | [@solarchvision](https://twitter.com/solarchvision) |
165+
166+
### Hall of Fame
167+
168+
| | Github | Twitter |
169+
|---|--------|---------|
161170
|**Mikola Lysenko**| [@mikolalysenko](https://github.com/mikolalysenko) | [@MikolaLysenko](https://twitter.com/MikolaLysenko) |
162-
| **Dmitry Yv.** | [@dy](https://github.com/dy) | [@DimaYv](https://twitter.com/dimayv)|
163171
|**Ricky Reusser**| [@rreusser](https://github.com/rreusser) | [@rickyreusser](https://twitter.com/rickyreusser) |
172+
|**Dmitry Yv.** | [@dy](https://github.com/dy) | [@DimaYv](https://twitter.com/dimayv)|
164173
|**Robert Monfera**| [@monfera](https://github.com/monfera) | [@monfera](https://twitter.com/monfera) |
174+
|**Robert Möstl** | [@rmoestl](https://github.com/rmoestl) | [@rmoestl](https://twitter.com/rmoestl) |
165175
|**Nicolas Riesco**| [@n-riesco](https://github.com/n-riesco) | |
166176
|**Miklós Tusz**| [@mdtusz](https://github.com/mdtusz) | [@mdtusz](https://twitter.com/mdtusz)|
167177
|**Chelsea Douglas**| [@cldougl](https://github.com/cldougl) | |
@@ -172,7 +182,7 @@ plotly.js charts can also be created and saved online for free at [plot.ly/creat
172182

173183
## Copyright and license
174184

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

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

appveyor.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
environment:
2+
nodejs_version: "10"
3+
4+
install:
5+
- ps: Install-Product node $env:nodejs_version
6+
# faster than `npm install`
7+
- npm ci
8+
9+
test_script:
10+
- node --version
11+
- npm --version
12+
- npm run test-jasmine -- lib --IE11
13+
14+
build: off

build/plotcss.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ 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 .modebar--hover": "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;",
36-
"X:hover .modebar--hover": "opacity:1;",
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;",
36+
"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;",
37+
"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;",
3839
"X .modebar-btn": "position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;",
3940
"X .modebar-btn svg": "position:relative;top:2px;",
40-
"X .modebar.vertical": "top:-1px;",
41+
"X .modebar.vertical": "display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;",
42+
"X .modebar.vertical svg": "top:-1px;",
4143
"X .modebar.vertical .modebar-group": "display:block;float:none;margin-left:0px;margin-bottom:8px;",
4244
"X .modebar.vertical .modebar-group .modebar-btn": "display:block;text-align:center;",
4345
"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%;",

0 commit comments

Comments
 (0)