Plotly: Multiple plots with 'linked' interactivity

余生长醉 提交于 2019-12-20 18:08:13

问题


I am trying to create a series of plots to embed in a website where the interactivity is 'linked' like in the animation below. I cannot find examples of this functionality in Plotly (or other embeddable plotting packages).

The first two plots just show a synchronized vertical bar, the bottom plot shows the corresponding values of plot 1 in a scatterplot.

Questions: Is it possible to create this type of 'linked' plots using Plotly? If so, can anyone point me in a direction on how to accomplish that? If not, are there other plotting packages that offer this plotting functionality?

(P.S. I used Wolfram Mathematica and random data to create the animation)


回答1:


You can achieve this using plotly's Embed API, which allows you to handle events such as click or mouseover above any plotly graphs embedded in a iframe.

For something similar to the above animation, I recommend taking a look at this example. You can find the associated repo here.



来源:https://stackoverflow.com/questions/30214660/plotly-multiple-plots-with-linked-interactivity

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!