Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 16, 2021 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/4cbd947d255eecb65d1db1324e710f1d to your computer and use it in GitHub Desktop.
Save amankharwal/4cbd947d255eecb65d1db1324e710f1d to your computer and use it in GitHub Desktop.
import plotly.graph_objects as go
fig = go.Figure(go.Treemap(
labels = ["A","B", "C", "D", "E", "F", "G", "H", "I"],
parents = ["", "A", "A", "C", "C", "A", "A", "G", "A"]
))
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment