Skip to content

Commit 9e134e8

Browse files
committed
Add zindex to histogram traces
1 parent e92b6cd commit 9e134e8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/traces/histogram/attributes.js

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

33
var barAttrs = require('../bar/attributes');
4+
var scatterAttrs = require('../bar/attributes');
45
var axisHoverFormat = require('../../plots/cartesian/axis_format_attributes').axisHoverFormat;
56
var hovertemplateAttrs = require('../../plots/template_attributes').hovertemplateAttrs;
67
var texttemplateAttrs = require('../../plots/template_attributes').texttemplateAttrs;
@@ -248,5 +249,7 @@ module.exports = {
248249

249250
_deprecated: {
250251
bardir: barAttrs._deprecated.bardir
251-
}
252+
},
253+
254+
zindex: scatterAttrs.zindex
252255
};

src/traces/histogram/defaults.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,6 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
7474
var errorBarsSupplyDefaults = Registry.getComponentMethod('errorbars', 'supplyDefaults');
7575
errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'y'});
7676
errorBarsSupplyDefaults(traceIn, traceOut, lineColor || Color.defaultLine, {axis: 'x', inherit: 'y'});
77+
78+
coerce('zindex');
7779
};

0 commit comments

Comments
 (0)