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()

Visualizations Showcase

StamiStudios Panels and Colours

In this notebook we're going to use PlotAPI Chord to visualise the co-occurrences between panels and colours purchased for the StamiStudios Everyday Ita Bag. We"ll use Python, but PlotAPI can be used from any programming language.


Preamble

import json

from plotapi import Chord

Introduction

In this notebook we're going to use PlotAPI Chord to visualise the co-occurrences between panels and colours purchased for the StamiStudios Everyday Ita Bag. We"ll use Python, but PlotAPI can be used from any programming language.

Dataset

We're going to use data from StamiStudios.com. Let"s get loading the data.

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

Visualisation

Let's use PlotAPI Chord for this visualisation.

plot = Chord(
    data["matrix"],
    data["names"],
    colors=data["colors"],
    noun="percent",
    details_separator="",
    bipartite=True,
    bipartite_idx=data["bipartite_idx"],
    bipartite_size=0.2,
    label_style="star"
)

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="StamiStudios Panels and Colours",
    description='''In this notebook we're going to use PlotAPI Chord to visualise the co-occurrences between panels and colours purchased for the StamiStudios Everyday Ita Bag. We"ll use Python, but PlotAPI can be used from any programming language.''',
    public=True,
)
Your visualization has been uploaded successfully! You can view and share it at https://plotapi.com/explore/view/76cef084-f770-4941-b682-42bd27c3de1e.
Previous
Showcase