Sankey-chart-budget-contribution
Để vẽ các budget contribution chart thì từ khóa để tìm kiếm là sankey chart. Có môt dạng tương tự là Alluvial chart
Python package¶
Matplotlib package của Python cho phép vẽ Sankey chart
import matplotlib.pyplot as plt
from matplotlib.sankey import Sankey
Sankey(flows=[0.25, 0.15, 0.60, -0.20, -0.15, -0.05, -0.50, -0.10],
labels=['', '', '', 'First', 'Second', 'Third', 'Fourth', 'Fifth'],
orientations=[-1, 1, 0, 1, 1, 1, 0, -1]).finish()
plt.title("The default settings produce a diagram like this.")
Có thể follow một tutorial rất chi tiết tại website này
Created : Nov 7, 2023
Recent Posts
- 2024-10-03: Interactive Graph-Mkdocs
- 2023-11-07: Sankey-chart-budget-contribution
- 2023-10-27: My-First-Training-Academic
- 2023-10-06: Export-shapefile-with-Style
- 2023-10-01: Anki-Assimil
- 2023-10-01: CV-Markdown
- 2023-09-19: Change Point Detection Methods
- 2023-09-14: Chat-GPT-Obsidian
- 2023-09-13: Google-Photo-Obsidian
- 2023-09-12: Superchinese-App