Chord Diagrams

Chord diagrams, also known as radial network diagrams, are a form of data visualisation that have become quite popular partly because of how colourful and eye-catching they can be. In this video, we'll go from concept to code, starting with the anatomy of a chord diagram.

Chord Diagrams

Chord Diagrams, also known as radial network diagrams, are a form of data visualisation that have become quite popular partly because of how colourful and eye-catching they can be.

Instructional video

In the video below, I cover how to create a chord diagram from concept to code.

Background

I created a synthetic dataset to use an example throughout the video. I'm happy with how it turned out - it's very colourful!

Dataset. 26 artists were asked to share up to 2 of their favourite colours.

I then show how to populate a co-occurrence matrix from the dataset.

Once our data is wrangled into the required form, we move onto using Python to create a chord diagram with PlotAPI.

matrix = [
    [0, 5, 0, 0, 4, 0],
    [5, 0, 0, 0, 0, 5],
    [0, 0, 2, 4, 0, 0],
    [0, 0, 4, 3, 3, 0],
    [4, 0, 0, 3, 0, 0],
    [0, 5, 0, 0, 0, 0],
]

names=['purple','pink','orange','lime','green','blue']

Chord(matrix, names).show()
Plotapi - Chord Diagram

Check out the video for a closer look!

Subscriber Extras

As a special thanks to our subscribers, you can find a 25% off coupon for Plotapi below!