javascript - Plotly.js hover across multiple subplots -
i have plotly.js graph multiple subplots share x-axis in https://plot.ly/javascript/subplots/#stacked-subplots-with-a-shared-x-axis
i'm trying hover across of subplots values of of points same x value displayed @ once.
i've attempted solve calling plotly.fx.hover on each subplot, seems take effect last subplot on called. http://codepen.io/john-soklaski/pen/adqwba
the code tried is:
plotly.fx.hover('mydiv', {xval: 2, curvenumber: 0}, "xy") plotly.fx.hover('mydiv', {xval: 2, curvenumber: 1}, "xy2") ideally api such in single call:
plotly.fx.hover('mydiv', [{xval: 2, curvenumber: 0, subplot: "xy"}, {xval: 2, curvenumber: 1, subplot: "xy2"}]) any thoughts on how work?
i see question old, functionality has been added: https://github.com/plotly/plotly.js/pull/301
Comments
Post a Comment