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

League of Legends World Championship

In this notebook we're going to use PlotAPI Chord to visualise the matches between teams throughout the Legends World Championship 2019. 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 matches between teams throughout the Legends World Championship 2019. We"ll use Python, but PlotAPI can be used from any programming language.

Dataset

We're going to use the League of Legends World Championship 2019 dataset, a copy of which is available at this link. Let"s get loading the data.

with open("lol-championship.json", "r") as f:
    data = json.load(f)

Visualisation

Let's use PlotAPI Chord for this visualisation.

plot = Chord(
    data["matrix"],
    data["names"],
    symmetric=False,
    popup_width=700,
    verb="battled together in",
    noun="matches",
    details=data["details"],
    details_separator="<br>",
    colors=data["colors"],
    font_size_large=14,
    font_size=14,
    label_style="star",
    padding=0.04,

)

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="League of Legends World Championship",
    description='''In this notebook we're going to use PlotAPI Chord to visualise the matches between teams throughout the Legends World Championship 2019. 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/3b0a7683-e35f-4c50-897e-96c03636c816.
Previous
Showcase