Created
January 30, 2019 03:21
-
-
Save hsnee/95a5f63ea36b3b82fed10f192a4f0330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import plotly.plotly as py | |
import plotly.graph_objs as go | |
trace1 = go.Scatter( | |
x=[0, 1, 2], | |
y=[1, 1, 1], | |
mode='lines+markers+text', | |
name='hyperlinks', | |
text=['<a href= "https://google.com">google</a>', | |
'<a href= "https://bing.com">bing</a>', | |
'<a href= "https://yahoo.com">yahoo</a>'], | |
textposition='top center' | |
) | |
data = [trace1] | |
layout = go.Layout( | |
showlegend=False | |
) | |
fig = go.Figure(data=data, layout=layout) | |
py.iplot(fig) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment