Engaging plots, made easy.

Easily turn your data into engaging visualizations. Powerful API for coders. Powerful app for everyone.

main.py
notebook.ipynb
main.rs
from plotapi import Chord

Chord(matrix, names).show()

Gummy Bear Ranking

In this notebook we're going to use PlotAPI SplitChord to visualise gummy bear preferences after a taste test with multiple participants. We"ll use Python, but PlotAPI can be used from any programming language.


Preamble

import json

from plotapi import SplitChord

Introduction

In this notebook we're going to use PlotAPI SplitChord to visualise gummy bear preferences after a taste test with multiple participants. We"ll use Python, but PlotAPI can be used from any programming language.

Dataset

We're going to use a dataset supplied by reddit user u/DruncanIdaho, created by themselves during a gummy bear tasting during their birthday. Let"s get loading the data.

with open("gummy.json", "r") as f:
    data = json.load(f)

Visualisation

Let's use PlotAPI Chord for this visualisation.

plot = SplitChord(data["links"],
                  data["nodes"],
                  margin=180,
                  width=1200,
                  noun="out of 12",
                  verb="as",
                  conjunction="was scored by")

Display inline

plot

Upload to cloud

With our plot created, let's upload it to PlotAPI cloud and get a shareable link.

plot.upload(
    name="Gummy Bear Tasting",
    description='''In this notebook we're going to use PlotAPI SplitChord to visualise gummy bear preferences after a taste test with multiple participants. We"ll use Python, but PlotAPI can be used from any programming language.''',
    maximized=True,
    public=True,
    full_width=True
)
Your visualization has been uploaded successfully! You can view and share it at https://plotapi.com/explore/view/1634bd83-fac0-4ac4-9af6-97e5d38652e4.