Plotly words chart


#1

Does anyone have code for building this graph:
https://plot.ly/create/?fid=snapcrack:12#/

Many thanks


#2

Hi @sirorezka,

This isn’t the exact code, but here’s a simple example of the basic idea

import plotly.graph_objs as go
from plotly.offline import init_notebook_mode, iplot
init_notebook_mode()

fig = go.Figure()

fig.add_scatter(
    x=[1, 1, 1],
    y=[1, 2, 3],
    text=['One', 'Two', 'Three'],
    mode='text',
    textfont={
        'color': 'blue',
        'size': [8, 12, 16],
    }
)

fig.add_scatter(
    x=[2, 2, 2],
    y=[1, 2, 3],
    text=['Four', 'Five', 'Six'],
    mode='text',
    textfont={
        'color': 'green',
        'size': [8, 12, 16],
    }
)
iplot(fig)

Hope that helps!
-Jon