Skip to content

Commit b36cd18

Browse files
committed
Merge branch 'master' into joyplots2
2 parents c026fc5 + fdafdb9 commit b36cd18

File tree

512 files changed

+104042
-68732
lines changed

Some content is hidden

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

512 files changed

+104042
-68732
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
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

CHANGELOG.md

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

15127
### Fixed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ and use the `Plotly` object in the window scope.
5757

5858
### Download the latest release
5959

60-
[Latest Release on Github](https://github.com/plotly/plotly.js/releases/)
60+
[Latest Release on GitHub](https://github.com/plotly/plotly.js/releases/)
6161

6262
and use the plotly.js `dist` file(s). More info [here](https://github.com/plotly/plotly.js/blob/master/dist/README.md).
6363

@@ -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) | |

appveyor.yml

Lines changed: 14 additions & 0 deletions
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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,22 @@ var rules = {
3131
"X .cursor-n-resize": "cursor:n-resize;",
3232
"X .cursor-ne-resize": "cursor:ne-resize;",
3333
"X .cursor-grab": "cursor:-webkit-grab;cursor:grab;",
34-
"X .modebar": "position:absolute;top:2px;right:2px;z-index:1001;background:rgba(255,255,255,0.7);",
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;",
34+
"X .modebar": "position:absolute;top:2px;right:2px;z-index:1001;",
35+
"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;",
36+
"X:hover .modebar--hover .modebar-group": "opacity:1;",
3737
"X .modebar-group": "float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;",
38-
"X .modebar-group:first-child": "margin-left:0px;",
39-
"X .modebar-btn": "position:relative;font-size:16px;padding:3px 4px;cursor:pointer;line-height:normal;box-sizing:border-box;",
38+
"X .modebar-btn": "position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;",
4039
"X .modebar-btn svg": "position:relative;top:2px;",
41-
"X .modebar-btn path": "fill:rgba(0,31,95,0.3);",
42-
"X .modebar-btn.active path,X .modebar-btn:hover path": "fill:rgba(0,22,72,0.5);",
43-
"X .modebar-btn.modebar-btn--logo": "padding:3px 1px;",
44-
"X .modebar-btn.modebar-btn--logo path": "fill:#447adb !important;",
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;",
42+
"X .modebar.vertical .modebar-group": "display:block;float:none;margin-left:0px;margin-bottom:8px;",
43+
"X .modebar.vertical .modebar-group .modebar-btn": "display:block;text-align:center;",
4544
"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%;",
4645
"X [data-title]:hover:before,X [data-title]:hover:after": "display:block;opacity:1;",
4746
"X [data-title]:before": "content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;",
4847
"X [data-title]:after": "content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;",
48+
"X .vertical [data-title]:before,X .vertical [data-title]:after": "top:0%;right:200%;",
49+
"X .vertical [data-title]:before": "border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;",
4950
"X .select-outline": "fill:none;stroke-width:1;shape-rendering:crispEdges;",
5051
"X .select-outline-1": "stroke:white;",
5152
"X .select-outline-2": "stroke:black;stroke-dasharray:2px 2px;",

build/ploticon.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ module.exports = {
3232
'transform': 'matrix(1 0 0 -1 0 850)'
3333
},
3434
'zoom_plus': {
35-
'width': 1000,
35+
'width': 875,
3636
'height': 1000,
3737
'path': 'm1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z',
3838
'transform': 'matrix(1 0 0 -1 0 850)'
3939
},
4040
'zoom_minus': {
41-
'width': 1000,
41+
'width': 875,
4242
'height': 1000,
4343
'path': 'm0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z',
4444
'transform': 'matrix(1 0 0 -1 0 850)'
@@ -120,5 +120,9 @@ module.exports = {
120120
'height': 1000,
121121
'path': 'M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z',
122122
'transform': 'matrix(1.5 0 0 -1.5 0 850)'
123+
},
124+
'newplotlylogo': {
125+
'name': 'newplotlylogo',
126+
'svg': '<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 132 132\'><defs><style>.cls-1 {fill: #119dff;} .cls-2 {fill: #25fefd;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark</title><g id=\'symbol\'><rect class=\'cls-1\' width=\'132\' height=\'132\' rx=\'6\' ry=\'6\'/><circle class=\'cls-2\' cx=\'78\' cy=\'54\' r=\'6\'/><circle class=\'cls-2\' cx=\'102\' cy=\'30\' r=\'6\'/><circle class=\'cls-2\' cx=\'78\' cy=\'30\' r=\'6\'/><circle class=\'cls-2\' cx=\'54\' cy=\'30\' r=\'6\'/><circle class=\'cls-2\' cx=\'30\' cy=\'30\' r=\'6\'/><circle class=\'cls-2\' cx=\'30\' cy=\'54\' r=\'6\'/><path class=\'cls-3\' d=\'M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z\'/><path class=\'cls-3\' d=\'M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z\'/><path class=\'cls-3\' d=\'M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z\'/><path class=\'cls-3\' d=\'M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z\'/></g></svg>'
123127
}
124128
};

devtools/test_dashboard/server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ var PORT = process.argv[2] || 3000;
1616
var server = http.createServer(ecstatic({
1717
root: constants.pathToRoot,
1818
cache: 0,
19-
gzip: true
19+
gzip: true,
20+
cors: true
2021
}));
2122

2223
// Make watchified bundle for plotly.js

0 commit comments

Comments
 (0)