Modeled after this example but with a second y axis. Second y axis displays just fine, but when I try to add the range selector to the x axis, I get a console error. Any ideas?
Here’s a simplified example with the rangeselector
bit commented out:
https://jsfiddle.net/ajzeigert/nh89oLLn/
Range selectors are only support on 'x'
of type 'date'
at the moment (ref). Sorry for the inconvenience.
Crud, I posted an old fiddle. I understand that range selectors need date formats. I think I’m doing this right here?
https://jsfiddle.net/ajzeigert/nh89oLLn/
@ajzeigert your fiddle should work. Looks like you discovered a bug. I’m working on a fix right now. Thanks for reporting.
@ajzeigert PR made: https://github.com/plotly/plotly.js/pull/873
This fix will be part of the next release (plotly.js 1.17.0
)
Nice to know I wasn’t going crazy! Thanks for the fix.
1 Like