Skip to content

Commit c1c24e8

Browse files
committed
support world cals in rangesliders
1 parent 4e9a632 commit c1c24e8

File tree

4 files changed

+1981
-4
lines changed

4 files changed

+1981
-4
lines changed

src/components/rangeslider/draw.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ function drawRangePlot(rangeSlider, gd, axisOpts, opts) {
342342
xaxis: {
343343
type: axisOpts.type,
344344
domain: [0, 1],
345-
range: opts.range.slice()
345+
range: opts.range.slice(),
346+
calendar: axisOpts.calendar
346347
},
347348
width: opts._width,
348349
height: opts._height,
@@ -352,7 +353,8 @@ function drawRangePlot(rangeSlider, gd, axisOpts, opts) {
352353

353354
mockFigure.layout[oppAxisName] = {
354355
domain: [0, 1],
355-
range: oppAxisOpts.range.slice()
356+
range: oppAxisOpts.range.slice(),
357+
calendar: oppAxisOpts.calendar
356358
};
357359

358360
Plots.supplyDefaults(mockFigure);
Loading

test/image/mocks/candlestick_double-y-axis.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1947,8 +1947,8 @@
19471947
"layout": {
19481948
"xaxis": {
19491949
"range": [
1950-
1452453861917,
1951-
1471240462978
1950+
"2016-01-10 14:24:21.917",
1951+
"2016-08-15 01:54:22.978"
19521952
]
19531953
},
19541954
"yaxis": {

0 commit comments

Comments
 (0)