Skip to content

Commit 06ece4b

Browse files
committed
run formatter
1 parent 1cae8cb commit 06ece4b

File tree

5 files changed

+697
-629
lines changed

5 files changed

+697
-629
lines changed

src/traces/candlestick/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var boxAttrs = require('../box/attributes');
88
function directionAttrs(lineColorDefault) {
99
return {
1010
line: {
11-
color: extendFlat({}, boxAttrs.line.color, {dflt: lineColorDefault}),
11+
color: extendFlat({}, boxAttrs.line.color, { dflt: lineColorDefault }),
1212
width: boxAttrs.line.width,
1313
editType: 'style'
1414
},

src/traces/candlestick/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
1212
}
1313

1414
var len = handleOHLC(traceIn, traceOut, coerce, layout);
15-
if(!len) {
15+
if (!len) {
1616
traceOut.visible = false;
1717
return;
1818
}
1919

20-
handlePeriodDefaults(traceIn, traceOut, layout, coerce, {x: true});
20+
handlePeriodDefaults(traceIn, traceOut, layout, coerce, { x: true });
2121
coerce('xhoverformat');
2222
coerce('yhoverformat');
2323

src/traces/ohlc/attributes.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var lineAttrs = scatterAttrs.line;
1515
function directionAttrs(lineColorDefault) {
1616
return {
1717
line: {
18-
color: extendFlat({}, lineAttrs.color, {dflt: lineColorDefault}),
18+
color: extendFlat({}, lineAttrs.color, { dflt: lineColorDefault }),
1919
width: lineAttrs.width,
2020
dash: dash,
2121
editType: 'style'
@@ -25,7 +25,6 @@ function directionAttrs(lineColorDefault) {
2525
}
2626

2727
module.exports = {
28-
2928
xperiod: scatterAttrs.xperiod,
3029
xperiod0: scatterAttrs.xperiod0,
3130
xperiodalignment: scatterAttrs.xperiodalignment,
@@ -35,10 +34,7 @@ module.exports = {
3534
x: {
3635
valType: 'data_array',
3736
editType: 'calc+clearAxisTypes',
38-
description: [
39-
'Sets the x coordinates.',
40-
'If absent, linear coordinate will be generated.'
41-
].join(' ')
37+
description: ['Sets the x coordinates.', 'If absent, linear coordinate will be generated.'].join(' ')
4238
},
4339

4440
open: {
@@ -99,7 +95,7 @@ module.exports = {
9995
'If a single string, the same string appears over',
10096
'all the data points.',
10197
'If an array of string, the items are mapped in order to',
102-
'this trace\'s sample points.'
98+
"this trace's sample points."
10399
].join(' ')
104100
},
105101
hovertext: {
@@ -116,21 +112,15 @@ module.exports = {
116112
max: 0.5,
117113
dflt: 0.3,
118114
editType: 'calc',
119-
description: [
120-
'Sets the width of the open/close tick marks',
121-
'relative to the *x* minimal interval.'
122-
].join(' ')
115+
description: ['Sets the width of the open/close tick marks', 'relative to the *x* minimal interval.'].join(' ')
123116
},
124117

125118
hoverlabel: extendFlat({}, fxAttrs.hoverlabel, {
126119
split: {
127120
valType: 'boolean',
128121
dflt: false,
129122
editType: 'style',
130-
description: [
131-
'Show hover information (open, close, high, low) in',
132-
'separate labels.'
133-
].join(' ')
123+
description: ['Show hover information (open, close, high, low) in', 'separate labels.'].join(' ')
134124
}
135125
}),
136126

src/traces/ohlc/defaults.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
1111
}
1212

1313
var len = handleOHLC(traceIn, traceOut, coerce, layout);
14-
if(!len) {
14+
if (!len) {
1515
traceOut.visible = false;
1616
return;
1717
}
1818

19-
handlePeriodDefaults(traceIn, traceOut, layout, coerce, {x: true});
19+
handlePeriodDefaults(traceIn, traceOut, layout, coerce, { x: true });
2020
coerce('xhoverformat');
2121
coerce('yhoverformat');
2222

0 commit comments

Comments
 (0)