Skip to content

Commit b98835c

Browse files
committed
ohlc: bump tickwidth dflt to 0.3
1 parent facbf3d commit b98835c

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/traces/ohlc/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ module.exports = {
123123
valType: 'number',
124124
min: 0,
125125
max: 0.5,
126-
dflt: 0.1,
126+
dflt: 0.3,
127127
role: 'style',
128128
description: [
129129
'Sets the width of the open/close tick marks',

test/image/baselines/ohlc_first.png

-974 Bytes
Loading

test/jasmine/tests/finance_test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -339,16 +339,16 @@ describe('finance charts calc transforms:', function() {
339339
var out = _calc([trace0, trace1]);
340340

341341
expect(out[0].x).toEqual([
342-
-0.1, 0, 0, 0, 0, 0.1, null,
343-
2.9, 3, 3, 3, 3, 3.1, null,
344-
4.9, 5, 5, 5, 5, 5.1, null,
345-
6.9, 7, 7, 7, 7, 7.1, null
342+
-0.3, 0, 0, 0, 0, 0.3, null,
343+
2.7, 3, 3, 3, 3, 3.3, null,
344+
4.7, 5, 5, 5, 5, 5.3, null,
345+
6.7, 7, 7, 7, 7, 7.3, null
346346
]);
347347
expect(out[1].x).toEqual([
348-
0.9, 1, 1, 1, 1, 1.1, null,
349-
1.9, 2, 2, 2, 2, 2.1, null,
350-
3.9, 4, 4, 4, 4, 4.1, null,
351-
5.9, 6, 6, 6, 6, 6.1, null
348+
0.7, 1, 1, 1, 1, 1.3, null,
349+
1.7, 2, 2, 2, 2, 2.3, null,
350+
3.7, 4, 4, 4, 4, 4.3, null,
351+
5.7, 6, 6, 6, 6, 6.3, null
352352
]);
353353
expect(out[2].x).toEqual([
354354
0, 0, 0, 0, 0, 0,
@@ -598,7 +598,7 @@ describe('finance charts updates:', function() {
598598
var path0;
599599

600600
Plotly.plot(gd, [trace0]).then(function() {
601-
expect(gd.calcdata[0][0].x).toEqual(-0.1);
601+
expect(gd.calcdata[0][0].x).toEqual(-0.3);
602602
expect(gd.calcdata[0][0].y).toEqual(33.01);
603603

604604
return Plotly.restyle(gd, 'tickwidth', 0.5);

0 commit comments

Comments
 (0)