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
)