Skip to content

Commit abfd1a8

Browse files
committed
Add zindex for ohlc
1 parent cec8d65 commit abfd1a8

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

src/traces/ohlc/attributes.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,15 @@ module.exports = {
133133
].join(' ')
134134
}
135135
}),
136+
137+
zindex: {
138+
valType: 'integer',
139+
dflt: 0,
140+
editType: 'calc',
141+
description: [
142+
'Sets the layer on which this trace is displayed, relative to ',
143+
'other traces on the same axes. Traces with higher `zindex` ',
144+
'appear in front of those with lower `zindex`.'
145+
].join(' ')
146+
}
136147
};

src/traces/ohlc/defaults.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
3131
coerce('tickwidth');
3232

3333
layout._requestRangeslider[traceOut.xaxis] = true;
34+
35+
coerce('zindex');
3436
};
3537

3638
function handleDirection(traceIn, traceOut, coerce, direction) {

test/plot-schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40531,6 +40531,12 @@
4053140531
"dflt": "",
4053240532
"editType": "none",
4053340533
"valType": "string"
40534+
},
40535+
"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`.",
40537+
"dflt": 0,
40538+
"editType": "calc",
40539+
"valType": "integer"
4053440540
}
4053540541
},
4053640542
"categories": [

0 commit comments

Comments
 (0)