Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
plot_data = [
go.Bar(
x = grouped_change['group'].tolist(),
y = grouped_change['difference'].tolist(),
marker = dict(
color = 'red'
),
name = 'Traffic Difference'
),
go.Bar(
x = grouped_change['group'],
y = grouped_change['ga:newUsers_before'],
marker = dict(
color = 'blue'
),
name = "Traffic Before"
),
go.Bar(
x = grouped_change['group'],
y = grouped_change['ga:newUsers_after'],
marker = dict(
color = 'orange'
),
name = "Traffic After"
)
]
fig = go.Figure(data=plot_data)
py.plot(fig, filename="base-bar.html")
HTML(filename="./base-bar.html")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.