地块:具有“链接"交互性的多个地块 [英] Plotly: Multiple plots with 'linked' interactivity

查看:99
本文介绍了地块:具有“链接"交互性的多个地块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一系列情节,以嵌入到互动性被链接"的网站中,如下面的动画所示.我在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.

对于类似于上述动画的内容,我建议看一下此示例.您可以在此处找到相关的存储库.

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

这篇关于地块:具有“链接"交互性的多个地块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆