๐ธ Day 37: Circular Chord Diagram in Python
On Day 37 of our data visualization journey, we created a true circular Chord Diagram with a soft, Pinterest-inspired aesthetic using Holoviews + Bokeh.
This visualization beautifully captures relationships between creative platforms and inspiration sources all wrapped in a dreamy pastel theme.
๐ฏ What We’re Visualizing
Our nodes:
-
Pinterest
-
Instagram
-
Design
-
Inspo
Our goal:
To visualize how these platforms and ideas connect and influence each other.
Unlike Sankey diagrams (which show directional flow), this chord diagram:
-
Arranges nodes in a circle
-
Connects them with curved ribbons
-
Highlights relationship strength
-
Feels balanced and visually aesthetic
๐ Step-by-Step Breakdown
✅ 1️⃣ Import Required Libraries
We use:
-
Holoviews → For high-level interactive visualization
-
Bokeh backend → For rendering
-
Pandas → For structured data
✅ 2️⃣ Create Relationship Data
Each row represents:
source → Starting node
target → Connected node
value → Strength of the relationship
The larger the value, the thicker the ribbon.
✅ 3️⃣ Define the Dreamy Color Palette
-
Aesthetic appeal
-
Pinterest-style vibe
-
Visual harmony
Color choices dramatically affect storytelling and today’s goal was elegance.
✅ 4️⃣ Create the Chord Diagram
-
Detects unique nodes
-
Arranges them in a circular layout
-
Draws curved connections
✅ 5️⃣ Apply Styling
✨ What This Styling Does:
cmap → Applies pastel colors
edge_color → Colors ribbons by source
node_color → Colors nodes uniquely
edge_alpha=0.4 → Soft transparent ribbons
bgcolor='#FAF9F6' → Linen aesthetic background
label_text_font='serif' → Elegant typography
This transforms a basic network into a brand-ready visualization.
✅ 6️⃣ Save as Interactive HTML
hv.save(chord, 'chord_chart.html')This creates an interactive file where you can:
-
Hover over connections
-
Explore relationship strength
-
Zoom and inspect
Perfect for:
-
Portfolios
-
Presentations
-
Websites
-
LinkedIn posts
๐ What the Visualization Reveals
-
Instagram strongly influences Design
-
Design heavily feeds into Inspiration
-
Inspiration loops back to Pinterest
-
Design and Instagram have mutual interaction
It visually tells a story of creative content flow.
๐ก Why Chord Diagrams Are Powerful
✔ Show interconnected systems
✔ Perfect for circular relationships
✔ Visually impactful
✔ Great for storytelling
✔ Ideal for brand-driven data aesthetics
๐ฅ Real-World Use Cases
-
Social media ecosystem analysis
-
Marketing channel relationships
-
Trade networks
-
Collaboration mapping
-
Content flow visualization
.png)

0 Comments:
Post a Comment