Skip to content

Commit 6f3eac2

Browse files
committed
ohlc: make 'tickwidth' 1 per trace
1 parent 38e5bd7 commit 6f3eac2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/traces/ohlc/attributes.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ var directionAttrs = {
2828
color: Lib.extendFlat({}, lineAttrs.color),
2929
width: Lib.extendFlat({}, lineAttrs.width),
3030
dash: Lib.extendFlat({}, lineAttrs.dash),
31-
32-
tickwidth: {
33-
valType: 'number',
34-
min: 0,
35-
max: 1,
36-
dflt: 0.1,
37-
role: 'style',
38-
description: [
39-
'Sets the width of the open/close tick marks',
40-
'relative to the *t* minimal interval.'
41-
].join(' ')
42-
}
4331
};
4432

4533
module.exports = {
@@ -97,5 +85,17 @@ module.exports = {
9785
'If an array of string, the items are mapped in order to the',
9886
'this trace\'s sample points.'
9987
].join(' ')
88+
},
89+
90+
tickwidth: {
91+
valType: 'number',
92+
min: 0,
93+
max: 0.5,
94+
dflt: 0.05,
95+
role: 'style',
96+
description: [
97+
'Sets the width of the open/close tick marks',
98+
'relative to the *x* minimal interval.'
99+
].join(' ')
100100
}
101101
};

src/traces/ohlc/defaults.js

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

3535
coerce('text');
36+
coerce('tickwidth');
3637

3738
handleDirection(traceOut, coerce, 'increasing');
3839
handleDirection(traceOut, coerce, 'decreasing');
@@ -45,6 +46,5 @@ function handleDirection(traceOut, coerce, direction) {
4546
coerce(direction + '.color');
4647
coerce(direction + '.width');
4748
coerce(direction + '.dash');
48-
coerce(direction + '.tickwidth');
4949
}
5050
}

0 commit comments

Comments
 (0)