Skip to content

Commit 38e5bd7

Browse files
committed
candlestick: rename 'tickwidth' -> 'whiskerwidth' + make it 1 per trace
1 parent d2d6845 commit 38e5bd7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/traces/candlestick/attributes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ var directionAttrs = {
2727
color: Lib.extendFlat({}, boxAttrs.line.color),
2828
width: Lib.extendFlat({}, boxAttrs.line.width),
2929
fillcolor: Lib.extendFlat({}, boxAttrs.fillcolor),
30-
tickwidth: Lib.extendFlat({}, boxAttrs.whiskerwidth, { dflt: 0 }),
3130
};
3231

3332
module.exports = {
@@ -45,5 +44,6 @@ module.exports = {
4544
color: { dflt: 'red' }
4645
}),
4746

48-
text: OHLCattrs.text
47+
text: OHLCattrs.text,
48+
whiskerwidth: Lib.extendFlat({}, boxAttrs.whiskerwidth, { dflt: 0 }),
4949
};

src/traces/candlestick/defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
3232
}
3333

3434
coerce('text');
35+
coerce('whiskerwidth');
3536

3637
handleDirection(traceOut, coerce, 'increasing');
3738
handleDirection(traceOut, coerce, 'decreasing');
@@ -44,6 +45,5 @@ function handleDirection(traceOut, coerce, direction) {
4445
coerce(direction + '.color');
4546
coerce(direction + '.width');
4647
coerce(direction + '.fillcolor');
47-
coerce(direction + '.tickwidth');
4848
}
4949
}

0 commit comments

Comments
 (0)