情节:具有“链接"交互性的多个情节 [英] Plotly: Multiple plots with 'linked' interactivity
问题描述
我正在尝试创建一系列图以嵌入到交互性链接"的网站中,如下面的动画所示.我在 Plotly(或其他可嵌入绘图包)中找不到此功能的示例.
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).
前两个图只显示了一个同步的垂直条,底部图在散点图中显示了图 1 的对应值.
The first two plots just show a synchronized vertical bar, the bottom plot shows the corresponding values of plot 1 in a scatterplot.
问题:是否可以使用 Plotly 创建这种类型的链接"图?如果是这样,任何人都可以为我指出如何实现这一目标的方向吗?如果没有,是否还有其他提供此绘图功能的绘图包?
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. 我使用 Wolfram Mathematica 和随机数据来创建动画)
推荐答案
您可以使用 plotly 的 Embed API 实现此目的,它允许您处理嵌入在 iframe 中的任何绘图图上方的单击或鼠标悬停等事件.
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.
对于类似于上述动画的内容,我建议查看this example.你可以在这里找到相关的repo.
For something similar to the above animation, I recommend taking a look at this example. You can find the associated repo here.
这篇关于情节:具有“链接"交互性的多个情节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!