Skip to content

Commit cc2c9ba

Browse files
committed
Merge branch 'master' into 1852-persistent-click-via-selectPoints
2 parents 30789dd + 9070705 commit cc2c9ba

File tree

116 files changed

+4433
-940
lines changed

Some content is hidden

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

116 files changed

+4433
-940
lines changed

lib/barpolar.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Copyright 2012-2018, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = require('../src/traces/barpolar');

lib/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ Plotly.register([
5353
require('./candlestick'),
5454

5555
require('./scatterpolar'),
56-
require('./scatterpolargl')
56+
require('./scatterpolargl'),
57+
require('./barpolar')
5758
]);
5859

5960
// transforms

lib/locales/cy.js

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/**
2+
* Copyright 2012-2018, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = {
12+
moduleType: 'locale',
13+
name: 'cy',
14+
dictionary: {
15+
'Autoscale': 'Graddfa awtomatig', // components / modebar / buttons.js: 150
16+
'Box Select': 'Dewiswch â blwch', // components / modebar / buttons.js: 114
17+
'Click to enter Colorscale title': 'Cliciwch i nodi teitl Graddfa Liw', // plots / plots.js: 327
18+
'Click to enter Component A title': 'Cliciwch i nodi teitl Cydran A', // plots / ternary / ternary.js: 390
19+
'Click to enter Component B title': 'Cliciwch i nodi teitl Cydran B', // plots / ternary / ternary.js: 405
20+
'Click to enter Plot title': 'Cliciwch i nodi teitl y Plot', // plot_api / plot_api.js: 513
21+
'Click to enter Component C title': 'Cliciwch i nodi teitl Cydran C', // plot / ternary / ternary.js: 416
22+
'Click to enter X axis title': 'Cliciwch i nodi teitl echelin X', // plots.js: 325
23+
'Click to enter Y axis title': 'Cliciwch i nodi teitl echelin Y', // plots / plots.js: 326
24+
'Click to enter radial axis title': 'Cliciwch i nodi teitl echelin reiddiol', // plots / polar / polar.js: 408
25+
'Compare data on hover': 'Cymharwch ddata wrth hofran', // components / modebar / buttons.js: 178
26+
'Double-click on legend to isolate one trace': 'Dwbl-gliciwch ar yr allwedd i neilltuo un llinell', // components / legend / handle_click.js: 89
27+
'Double-click to zoom back out': 'Dwbl-gliciwch i chwyddo\'n ôl', // plots / cartesian / dragbox.js: 1011
28+
'Download plot': 'Lawrlwythwch blot', // components / modebar / buttons.js: 55
29+
'Download plot as a png': 'Lawrlwythwch y plot fel png', // components / modebar / buttons.js: 54
30+
'Edit in Chart Studio': 'Golygu yn Chart Studio', // components / modebar / buttons.js: 87
31+
'IE only supports svg. Changing format to svg.': 'Dim ond svg mae IE yn ei gefnogi. Newid fformat i svg.', // components / modebar / buttons.js: 65
32+
'Lasso Select': 'Dewiswch â lasŵ', // components / modebar / buttons.js: 123
33+
'Orbital rotation': 'Cylchdroi orbital', // components / modebar / buttons.js: 287
34+
'Pan': 'Pan', // components / modebar / buttons.js: 105
35+
'Produced with Plotly': 'Cynhyrchwyd gyda Plotly', // components / modebar / modebar.js: 272
36+
'Reset': 'Ailosod', // components / modebar / buttons.js: 443
37+
'Reset axes': 'Ailosod echelinau', // components / modebar / buttons.js: 159
38+
'Reset camera to default': 'Ailosod camera i\'r rhagosodiad', // components / modebar / buttons.js: 325
39+
'Reset camera to last save': 'Ailosod camera i\'r cadw diwethaf', // components / modebar / buttons.js: 333
40+
'Reset view': 'Ailosodwch y golwg', // components / modebar / buttons.js: 592
41+
'Reset views': 'Ailosod olygfeydd', // components / modebar / buttons.js: 540
42+
'Show closest data on hover': 'Dangos y data agosaf wrth hofran', // components / modebar / buttons.js: 168
43+
'Snapshot succeeded': 'Llwyddodd y Ciplun', // components / modebar / buttons.js: 77
44+
'Sorry, there was a problem downloading your snapshot!': 'Mae\'n ddrwg gennym, roedd problem wrth lawrlwytho eich ciplun!', // components / modebar / buttons.js: 80
45+
'Taking snapshot - this may take a few seconds': 'Tynnu ciplun - gallai hyn gymryd ychydig o eiliadau', // components / modebar / buttons.js: 62
46+
'Toggle Spike Lines': 'Toglo llinellau pigog', // components / modebar / buttons.js: 559
47+
'Toggle show closest data on hover': 'Toglo dangos y data agosaf wrth hofran', // components / modebar / buttons.js: 364
48+
'Turntable rotation': 'Cylchdroi trofwrdd', // components / modebar / buttons.js: 296
49+
'Zoom': 'Chwyddo', // components / modebar / buttons.js: 96
50+
'Zoom in': 'Closio', // components / modebar / buttons.js
51+
'Zoom out': 'Cilio', // components / modebar / buttons.js: 141
52+
'close:': 'cau:', // traces / ohlc / calc.js: 104
53+
'high:': 'uchel:', // traces/ ohlc / calc.js: 102
54+
'incoming flow count:': 'cyfrif llif sy\'n dod i mewn:', // traces / sankey / plot.js: 142
55+
'kde:': 'kde:', // traces / violin / calc.js: 69
56+
'lat:': 'lledred:', // traces / scattergeo / calc.js: 48
57+
'lon:': 'hydred', // traces / scattergeo / calc.js: 49
58+
'low:': 'isel:', // traces / ohlc / calc.js: 103
59+
'lower fence:': 'ffens isaf:', // traces / box / calc.js: 140
60+
'max:': 'uchafbwynt:', // traces / box / calc.js: 138
61+
'mean ± σ:': 'cymedr ± σ:', // traces / box / calc.js: 139
62+
'mean:': 'cymedr:', // traces / box / calc.js: 139
63+
'median:': 'canolrif:', // traces / box / calc.js: 134
64+
'min:': 'isafbwynt:', // traces / box / calc.js: 135
65+
'new text': 'testun newydd', // plots / plots.js: 328
66+
'open:': 'agor:', // traces / ohlc / calc.js: 101
67+
'outgoing flow count:': 'cyfrif llif sy\'n mynd allan:', // traces / sankey / plot.js: 143
68+
'q1:': 'q1:', // traces / box / calc.js: 136
69+
'q3:': 'q3:', // traces / box / calc.js: 137
70+
'source:': 'ffynhonnell:', // traces / sankey / plot.js: 140
71+
'target:': 'targed:', // traces / sankey / plot.js: 141
72+
'trace': 'olin', // plots / plots.js: 330
73+
'upper fence:': 'ffens uchaf:' // traces / box / calc.js: 141
74+
},
75+
format: {
76+
days: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'],
77+
shortDays: ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwen', 'Sad'],
78+
months: [
79+
'Ionawr', 'Chwefror', 'Mawrth', 'Ebrill', 'Mai', 'Mehefin',
80+
'Gorffennaf', 'Awst', 'Medi', 'Hydref', 'Tachwedd', 'Rhagfyr'
81+
],
82+
shortMonths: [
83+
'Ion', 'Chw', 'Maw', 'Ebr', 'Mai', 'Meh',
84+
'Gor', 'Awst', 'Medi', 'Hyd', 'Tach', 'Rhag'
85+
],
86+
date: '%d/%m/%Y'
87+
}
88+
};

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
"karma-jasmine-spec-tags": "^1.0.1",
143143
"karma-spec-reporter": "0.0.32",
144144
"karma-verbose-reporter": "0.0.6",
145+
"karma-viewport": "^1.0.2",
145146
"madge": "^3.2.0",
146147
"minify-stream": "^1.2.0",
147148
"minimist": "^1.2.0",

src/components/errorbars/calc.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,29 @@ function calcOneAxis(calcTrace, trace, axis, coord) {
4343
var computeError = makeComputeError(opts);
4444

4545
for(var i = 0; i < calcTrace.length; i++) {
46-
var calcPt = calcTrace[i],
47-
calcCoord = calcPt[coord];
46+
var calcPt = calcTrace[i];
47+
48+
var iIn = calcPt.i;
49+
50+
// for types that don't include `i` in each calcdata point
51+
if(iIn === undefined) iIn = i;
52+
53+
// for stacked area inserted points
54+
// TODO: errorbars have been tested cursorily with stacked area,
55+
// but not thoroughly. It's not even really clear what you want to do:
56+
// Should it just be calculated based on that trace's size data?
57+
// Should you add errors from below in quadrature?
58+
// And what about normalization, where in principle the errors shrink
59+
// again when you get up to the top end?
60+
// One option would be to forbid errorbars with stacking until we
61+
// decide how to handle these questions.
62+
else if(iIn === null) continue;
63+
64+
var calcCoord = calcPt[coord];
4865

4966
if(!isNumeric(axis.c2l(calcCoord))) continue;
5067

51-
var errors = computeError(calcCoord, i);
68+
var errors = computeError(calcCoord, iIn);
5269
if(isNumeric(errors[0]) && isNumeric(errors[1])) {
5370
var shoe = calcPt[coord + 's'] = calcCoord - errors[0],
5471
hat = calcPt[coord + 'h'] = calcCoord + errors[1];

0 commit comments

Comments
 (0)