8000 apply layout.calnedar and layout.autotypenumbers in box defaults · lzhice/plotly.js@99a2015 · GitHub
[go: up one dir, main page]

Skip to content

Commit 99a2015

Browse files
committed
apply layout.calnedar and layout.autotypenumbers in box defaults
1 parent 1198e56 commit 99a2015

File tree

1 file changed

+2
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ function handleSampleDefaults(traceIn, traceOut, coerce, layout) {
109109
var yLen = yDims && Lib.minRowLength(y);
110110
var xLen = xDims && Lib.minRowLength(x);
111111

112-
var calendar = 'gregorian'; // TODO: should we use ax.calendar here?
112+
var calendar = layout.calendar;
113113
var opts = {
114-
autotypenumbers: 'convert types' // TODO: should we use ax.autotypenumbers here?
114+
autotypenumbers: layout.autotypenumbers
115115
};
116116

117117
var defaultOrientation, len;