Skip to content

Commit 14a14d8

Browse files
Move up formatKeys array to respect syntax declaration order
1 parent d79d00a commit 14a14d8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/plots/plots.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,16 @@ plots.sendDataToCloud = function(gd) {
251251
return false;
252252
};
253253

254+
var d3FormatKeys = [
255+
'days', 'shortDays', 'months', 'shortMonths', 'periods',
256+
'dateTime', 'date', 'time',
257+
'decimal', 'thousands', 'grouping', 'currency'
258+
];
259+
260+
var extraFormatKeys = [
261+
'year', 'month', 'dayMonth', 'dayMonthYear'
262+
];
263+
254264
// Fill in default values:
255265
//
256266
// gd.data, gd.layout:
@@ -482,16 +492,6 @@ function remapTransformedArrays(cd0, newTrace) {
482492
}
483493
}
484494

485-
var d3FormatKeys = [
486-
'days', 'shortDays', 'months', 'shortMonths', 'periods',
487-
'dateTime', 'date', 'time',
488-
'decimal', 'thousands', 'grouping', 'currency'
489-
];
490-
491-
var extraFormatKeys = [
492-
'year', 'month', 'dayMonth', 'dayMonthYear'
493-
];
494-
495495
/**
496496
* getFormatObj: use _context to get the format object from locale.
497497
* Used to get d3.locale argument object and extraFormat argument object

0 commit comments

Comments
 (0)