Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/rangeslider/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ function drawRangePlot(rangeSlider, gd, axisOpts, opts) {
};

mockFigure.layout[oppAxisName] = {
type: oppAxisOpts.type,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before, we were strictly relying on the axis-auto-type routines in Plots.supplyDefaults to determine the range plot y-axis type - which obviously fails when a overrides the y axis type (e.g. in the case of log y axes as presented in #1470)

domain: [0, 1],
range: oppAxisOpts.range.slice(),
calendar: oppAxisOpts.calendar
Expand Down
Binary file modified test/image/baselines/range_slider_multiple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions test/image/mocks/range_slider_multiple.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"data": [
{
"x": [ 1, 2, 3 ],
"y": [ 4, 5, 6 ],
"y": [ 4, 500, 6000 ],
"type": "bar"
},
{
Expand Down Expand Up @@ -31,7 +31,7 @@
},
"yaxis": {
"domain": [ 0.3, 0.8 ],
"type": "linear"
"type": "log"
},
"yaxis2": {
"anchor": "x2",
Expand Down