Skip to content

Commit 23368c9

Browse files
committed
Fix zindex routing in attributes
1 parent 9e134e8 commit 23368c9

File tree

9 files changed

+32
-32
lines changed

9 files changed

+32
-32
lines changed

src/traces/candlestick/attributes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var extendFlat = require('../../lib').extendFlat;
44
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
55
var OHLCattrs = require('../ohlc/attributes');
66
var boxAttrs = require('../box/attributes');
7-
var scatterAttrs = require('../scatter/attributes');
87

98
function directionAttrs(lineColorDefault) {
109
return {
@@ -54,5 +53,5 @@ module.exports = {
5453
whiskerwidth: extendFlat({}, boxAttrs.whiskerwidth, { dflt: 0 }),
5554

5655
hoverlabel: OHLCattrs.hoverlabel,
57-
zindex: scatterAttrs.zindex
56+
zindex: boxAttrs.zindex
5857
};

src/traces/carpet/attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var carpetFont = fontAttrs({
99
description: 'The default font used for axis & tick labels on this carpet'
1010
});
1111

12-
var scatterAttrs = require('../scatter/attributes');
12+
var zindex = require('../scatter/attributes').zindex;
1313

1414
// TODO: inherit from global font
1515
carpetFont.family.dflt = '"Open Sans", verdana, arial, sans-serif';
@@ -116,5 +116,5 @@ module.exports = {
116116
].join(' ')
117117
},
118118
transforms: undefined,
119-
zindex: scatterAttrs.zindex
119+
zindex: zindex
120120
};

src/traces/contourcarpet/attributes.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var heatmapAttrs = require('../heatmap/attributes');
44
var contourAttrs = require('../contour/attributes');
5-
var scatterAttrs = require('../scatter/attributes');
65
var colorScaleAttrs = require('../../components/colorscale/attributes');
76

87
var extendFlat = require('../../lib/extend').extendFlat;
@@ -71,8 +70,8 @@ module.exports = extendFlat({
7170
editType: 'plot'
7271
},
7372

74-
transforms: undefined,
75-
zindex: scatterAttrs.zindex
73+
zindex: contourAttrs.zindex,
74+
transforms: undefined
7675
},
7776

7877
colorScaleAttrs('', {

src/traces/funnel/attributes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
var barAttrs = require('../bar/attributes');
4-
var scatterAttrs = require('../scatter/attributes');
54
var lineAttrs = require('../scatter/attributes').line;
65
var baseAttrs = require('../../plots/attributes');
76
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
@@ -111,7 +110,7 @@ module.exports = {
111110

112111
offsetgroup: barAttrs.offsetgroup,
113112
alignmentgroup: barAttrs.alignmentgroup,
114-
zindex: scatterAttrs.zindex
113+
zindex: barAttrs.zindex
115114
};
116115

117116
function funnelMarker() {

src/traces/histogram/attributes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
var barAttrs = require('../bar/attributes');
4-
var scatterAttrs = require('../bar/attributes');
54
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
65
var hovertemplateAttrs = require('../../plots/template_attributes').hovertemplateAttrs;
76
var texttemplateAttrs = require('../../plots/template_attributes').texttemplateAttrs;
@@ -251,5 +250,5 @@ module.exports = {
251250
bardir: barAttrs._deprecated.bardir
252251
},
253252

254-
zindex: scatterAttrs.zindex
253+
zindex: barAttrs.zindex
255254
};

src/traces/image/attributes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
var baseAttrs = require('../../plots/attributes');
4-
var scatterAttrs = require('../scatter/attributes');
4+
var zindex = require('../scatter/attributes').zindex;
55
var hovertemplateAttrs = require('../../plots/template_attributes').hovertemplateAttrs;
66
var extendFlat = require('../../lib/extend').extendFlat;
77
var colormodel = require('./constants').colormodel;
@@ -134,6 +134,6 @@ module.exports = extendFlat({
134134
keys: ['z', 'color', 'colormodel']
135135
}),
136136

137-
transforms: undefined,
138-
zindex: scatterAttrs.zindex
137+
zindex: zindex,
138+
transforms: undefined
139139
});

src/traces/violin/attributes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
var boxAttrs = require('../box/attributes');
4-
var scatterAttrs = require('../scatter/attributes');
54
var extendFlat = require('../../lib/extend').extendFlat;
65
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
76

@@ -256,5 +255,5 @@ module.exports = {
256255
'or sample points or the kernel density estimate or any combination of them?'
257256
].join(' ')
258257
},
259-
zindex: scatterAttrs.zindex
258+
zindex: boxAttrs.zindex
260259
};

src/traces/waterfall/attributes.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
var barAttrs = require('../bar/attributes');
4-
var scatterAttrs = require('../scatter/attributes');
54
var lineAttrs = require('../scatter/attributes').line;
65
var baseAttrs = require('../../plots/attributes');
76
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
@@ -153,5 +152,5 @@ module.exports = {
153152

154153
offsetgroup: barAttrs.offsetgroup,
155154
alignmentgroup: barAttrs.alignmentgroup,
156-
zindex: scatterAttrs.zindex
155+
zindex: barAttrs.zindex
157156
};

test/plot-schema.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14843,7 +14843,7 @@
1484314843
"valType": "string"
1484414844
},
1484514845
"zindex": {
14846-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
14846+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
1484714847
"dflt": 0,
1484814848
"editType": "calc",
1484914849
"valType": "integer"
@@ -17522,7 +17522,7 @@
1752217522
"valType": "string"
1752317523
},
1752417524
"zindex": {
17525-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
17525+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
1752617526
"dflt": 0,
1752717527
"editType": "calc",
1752817528
"valType": "integer"
@@ -18076,7 +18076,7 @@
1807618076
"valType": "string"
1807718077
},
1807818078
"zindex": {
18079-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
18079+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
1808018080
"dflt": 0,
1808118081
"editType": "calc",
1808218082
"valType": "integer"
@@ -19483,7 +19483,7 @@
1948319483
"valType": "string"
1948419484
},
1948519485
"zindex": {
19486-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
19486+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
1948719487
"dflt": 0,
1948819488
"editType": "calc",
1948919489
"valType": "integer"
@@ -23960,7 +23960,7 @@
2396023960
"valType": "string"
2396123961
},
2396223962
"zindex": {
23963-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
23963+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
2396423964
"dflt": 0,
2396523965
"editType": "calc",
2396623966
"valType": "integer"
@@ -25015,7 +25015,7 @@
2501525015
"valType": "boolean"
2501625016
},
2501725017
"zindex": {
25018-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
25018+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
2501925019
"dflt": 0,
2502025020
"editType": "calc",
2502125021
"valType": "integer"
@@ -27432,7 +27432,7 @@
2743227432
"valType": "string"
2743327433
},
2743427434
"zindex": {
27435-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
27435+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
2743627436
"dflt": 0,
2743727437
"editType": "calc",
2743827438
"valType": "integer"
@@ -29404,7 +29404,7 @@
2940429404
"valType": "string"
2940529405
},
2940629406
"zindex": {
29407-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
29407+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
2940829408
"dflt": 0,
2940929409
"editType": "calc",
2941029410
"valType": "integer"
@@ -32173,6 +32173,12 @@
3217332173
"description": "Sets the source reference on Chart Studio Cloud for `y`.",
3217432174
"editType": "none",
3217532175
"valType": "string"
32176+
},
32177+
"zindex": {
32178+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
32179+
"dflt": 0,
32180+
"editType": "calc",
32181+
"valType": "integer"
3217632182
}
3217732183
},
3217832184
"categories": [
@@ -36522,7 +36528,7 @@
3652236528
"valType": "data_array"
3652336529
},
3652436530
"zindex": {
36525-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
36531+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
3652636532
"dflt": 0,
3652736533
"editType": "calc",
3652836534
"valType": "integer"
@@ -40533,7 +40539,7 @@
4053340539
"valType": "string"
4053440540
},
4053540541
"zindex": {
40536-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
40542+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
4053740543
"dflt": 0,
4053840544
"editType": "calc",
4053940545
"valType": "integer"
@@ -47283,7 +47289,7 @@
4728347289
"valType": "string"
4728447290
},
4728547291
"zindex": {
47286-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
47292+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
4728747293
"dflt": 0,
4728847294
"editType": "calc",
4728947295
"valType": "integer"
@@ -51516,7 +51522,7 @@
5151651522
"valType": "subplotid"
5151751523
},
5151851524
"zindex": {
51519-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
51525+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
5152051526
"dflt": 0,
5152151527
"editType": "calc",
5152251528
"valType": "integer"
@@ -73470,7 +73476,7 @@
7347073476
"valType": "string"
7347173477
},
7347273478
"zindex": {
73473-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
73479+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
7347473480
"dflt": 0,
7347573481
"editType": "calc",
7347673482
"valType": "integer"
@@ -75664,7 +75670,7 @@
7566475670
"valType": "string"
7566575671
},
7566675672
"zindex": {
75667-
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same axes. Traces with higher `zindex` appear in front of those with lower `zindex`.",
75673+
"description": "Sets the layer on which this trace is displayed, relative to other traces on the same subplot. Traces with higher `zindex` appear in front of those with lower `zindex`.",
7566875674
"dflt": 0,
7566975675
"editType": "calc",
7567075676
"valType": "integer"

0 commit comments

Comments
 (0)