地块:具有“链接"交互性的多个地块

编程入门 行业动态 更新时间:2024-10-14 04:26:09
本文介绍了地块:具有“链接"交互性的多个地块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

地块:具有“链接"交互性的多个地块

本文发布于:2023-05-29 03:35:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/335844.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:地块   多个   交互性   链接   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!