2015-09-30 68 views
0

我正在開發一個應用程序(https://plot.ly)使用來自SoundCloud API的數據。我想一個的SoundCloud圖標添加到我的plotly交互式圖形指向人特定的SoundCloud頁面(plotly安裝說明可以在這裏找到:https://plot.ly/r/getting-started/積極 - 嵌入SoundCloud圖標

注意,超鏈接可以很容易地添加到plotly圖 ( 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> 

是否可以將這個圖標嵌入到圖表中?

回答

1

不幸的是,plotly目前僅支持以下HTML標籤:

  • sup
  • sub
  • b
  • i
  • a
  • span
  • br
  • em

所以,使得該圖標的SoundCloud上出現一個plotly圖是不可能的時刻。也就是說,如果你願意設計一個完整的網頁,你可以很容易地使用plotly.js來繪製一張圖表,並用SoundCloud圖標覆蓋它。

+0

有關plotly.js的好消息,請看看。非常感謝! – kanimbla