@@ -90,7 +90,7 @@ module.exports = function setConvert(ax, fullLayout) {
90
90
* - inserts a dummy arg so calendar is the 3rd arg (see notes below).
91
91
* - defaults to ax.calendar
92
92
*/
93
- function dt2ms ( v , _ , calendar , msUTC ) {
93
+ function dt2ms ( v , _ , calendar , opts ) {
94
94
// NOTE: Changed this behavior: previously we took any numeric value
95
95
// to be a ms, even if it was a string that could be a bare year.
96
96
// Now we convert it as a date if at all possible, and only try
@@ -99,7 +99,7 @@ module.exports = function setConvert(ax, fullLayout) {
99
99
if ( ms === BADNUM ) {
100
100
if ( isNumeric ( v ) ) {
101
101
v = + v ;
102
- if ( msUTC ) {
102
+ if ( ( opts || { } ) . msUTC ) {
103
103
// For now it is only used
104
104
// to fix bar length in milliseconds.
105
105
// It could be applied in other places in v2
@@ -798,7 +798,7 @@ module.exports = function setConvert(ax, fullLayout) {
798
798
// the first letter of ax._id?)
799
799
// in case the expected data isn't there, make a list of
800
800
// integers based on the opposite data
801
- ax . makeCalcdata = function ( trace , axLetter , msUTC ) {
801
+ ax . makeCalcdata = function ( trace , axLetter , opts ) {
802
802
var arrayIn , arrayOut , i , len ;
803
803
804
804
var axType = ax . type ;
@@ -822,10 +822,10 @@ module.exports = function setConvert(ax, fullLayout) {
822
822
823
823
arrayOut = new Array ( len ) ;
824
824
for ( i = 0 ; i < len ; i ++ ) {
825
- arrayOut [ i ] = ax . d2c ( arrayIn [ i ] , 0 , cal , msUTC ) ;
825
+ arrayOut [ i ] = ax . d2c ( arrayIn [ i ] , 0 , cal , opts ) ;
826
826
}
827
827
} else {
828
- var v0 = ( ( axLetter + '0' ) in trace ) ? ax . d2c ( trace [ axLetter + '0' ] , 0 , cal , false ) : 0 ;
828
+ var v0 = ( ( axLetter + '0' ) in trace ) ? ax . d2c ( trace [ axLetter + '0' ] , 0 , cal ) : 0 ;
829
829
var dv = ( trace [ 'd' + axLetter ] ) ? Number ( trace [ 'd' + axLetter ] ) : 1 ;
830
830
831
831
// the opposing data, for size if we have x and dx etc
0 commit comments