#!/usr/bin/env python # coding: utf-8 # In[12]: import plotly import plotly.graph_objs as go plotly.offline.init_notebook_mode(connected=True) # In[31]: labels = ["Basics","Front-end","Back-end","DevOps","Data Science","Git","DS - Algo","SSH","HTTP/HTTPS","Design Patterns","Utils","Angular","React","Ionic","HTML","CSS","PWA","RxJS","MobX","SASS","Styled Components","SEO","Accessibility","GraphQL","Nodejs","REST","MongoDB","PostgreSQL","Ansible","Docker","Kubernetes","Circle CI","GCP","Python","Tensorflow","Visualization","Plotly","D3.js"] parents = ["","","","","","Basics","Basics","Basics","Basics","Basics","Front-end","Front-end","Front-end","Front-end","Front-end","Front-end","Front-end","Utils","Utils","CSS","CSS","HTML","HTML","Back-end","Back-end","Back-end","Back-end","Back-end","DevOps","DevOps","DevOps","DevOps","DevOps","Data Science","Data Science","Data Science","Visualization","Visualization"] trace = go.Sunburst( ids= labels, labels=labels, parents=parents, outsidetextfont={"size": 20, "color": "#377eb8"}, leaf={"opacity": 0.7}, marker={"line": {"width": 2}} ) layout = go.Layout( margin = go.layout.Margin(t=0, l=0, r=0, b=0), sunburstcolorway=["#636efa","#ef553b","#00cc96", "#B6E880", "#FF6692"] ) fig = go.Figure([trace], layout) plotly.offline.iplot(fig) # In[ ]: