34
loading...
This website collects cookies to deliver better user experience
import plotly.graph_objects as go
fig = go.Figure(data=[go.Sankey(
node = dict(
thickness = 5,
label = ["Ads", "Net profit", "Total income", "ROI", "Paid services", "Investment", "Expenses", "Maintaining website", "Paying employes", "Advertising", "Personal expenses", "Savings"],
color = "cyan"
),
link = dict(
# indices correspond to labels
source = [0, 1, 4, 2, 3, 2, 6, 6, 6, 1, 1],
target = [2, 5, 2, 1, 2, 6, 7, 8, 9, 10, 11],
value = [60000, 40000, 90000, 100000, 10000, 60000, 10000, 30000, 20000, 20000, 40000]
))])
fig.update_layout(
title="DatavizWRLD.com monthly income and income management of 2021( in USD )",
font=dict(size = 12, color = 'black')
)
fig.show()