plotly - 嵌入 SoundCloud 图标
plotly - embed SoundCloud icon
我正在 plotly 开发一个 App (https://plot.ly) using data from SoundCloud API. I would like to add a SoundCloud icon to my interactive plotly graph to point people to a particular SoundCloud page (plotly installation instructions can be found here: https://plot.ly/r/getting-started/)
请注意,可以轻松地将超链接添加到绘图中
(http://help.plot.ly/adding-HTML-and-links-to-charts/) 使用以下代码行:
<a href=”type URL here”>Type what you want user to see here </a>
以下是 SoundCloud 图标的示例代码,可以嵌入到网站中:(https://soundcloud.com/pages/embed):
<iframe allowtransparency="true" scrolling="no" frameborder="no" src="https://w.soundcloud.com/icon/?url=http%3A%2F%2Fsoundcloud.com%2Frihanna&color=orange_white&size=32" style="width: 32px; height: 32px;"></iframe>
是否可以将此图标嵌入到绘图中?
遗憾的是,plotly 目前仅支持以下 HTML 标签:
sup
sub
b
i
a
span
br
em
因此,目前无法使 SoundCloud 图标出现在绘图上。
就是说,如果您愿意设计一个完整的网页,您可以使用 plotly.js 轻松制作一个图表并用 SoundCloud 图标覆盖它。
我正在 plotly 开发一个 App (https://plot.ly) using data from SoundCloud API. I would like to add a SoundCloud icon to my interactive plotly graph to point people to a particular SoundCloud page (plotly installation instructions can be found here: https://plot.ly/r/getting-started/)
请注意,可以轻松地将超链接添加到绘图中 (http://help.plot.ly/adding-HTML-and-links-to-charts/) 使用以下代码行:
<a href=”type URL here”>Type what you want user to see here </a>
以下是 SoundCloud 图标的示例代码,可以嵌入到网站中:(https://soundcloud.com/pages/embed):
<iframe allowtransparency="true" scrolling="no" frameborder="no" src="https://w.soundcloud.com/icon/?url=http%3A%2F%2Fsoundcloud.com%2Frihanna&color=orange_white&size=32" style="width: 32px; height: 32px;"></iframe>
是否可以将此图标嵌入到绘图中?
遗憾的是,plotly 目前仅支持以下 HTML 标签:
sup
sub
b
i
a
span
br
em
因此,目前无法使 SoundCloud 图标出现在绘图上。
就是说,如果您愿意设计一个完整的网页,您可以使用 plotly.js 轻松制作一个图表并用 SoundCloud 图标覆盖它。