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

Desktop Browsers Market Share with Pie Fight

In this notebook we're going to use PlotAPI Pie Fight to visualise desktop browser market share over time. We"ll use Python, but PlotAPI can be used from any programming language.


Preamble

from plotapi import PieFight
import json

Introduction

In this notebook we're going to use PlotAPI Pie Fight to visualise desktop browser market share over time. We"ll use Python, but PlotAPI can be used from any programming language.

Dataset

We're going to use data that has been published by multiple sources for different periods, as there is no single data source that covers everything. These are: - 1994 - 1995: GVU WWW user survey - 1996 - 1998: EWS Web Server at UIUC - 1999 - 2001: WebSideStory - 2002 - 2008: OneStat.com - 2009-2021: StatCounter

The popup text that describes different events was taken from Wikipedia.

Browsers that did not have significant market share have been grouped and labelled as "Others".

with open("desktop_browsers.json", "r") as f:
    data = json.load(f)
    
samples = data['samples']
nodes = data['nodes']
events = data['events']

Visualisation

Let's use PlotAPI Pie Fight for this visualisation.

plot = PieFight(
    samples,
    nodes=nodes,
    events=events,
    rotate=30,
    interval=750,
    event_pause=False,
    event_duration=10000,
    format_current_order="0.2f",
    value_suffix="%",
    autohide_labels=False,
)

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="Desktop Browsers Market Share",
    description="""In this project we're going to use PlotAPI to visualize desktop browser market share over time. We're going to use data that has been published by multiple sources for different periods, as there is no single data source that covers everything. Browsers that did not have significant market share have been grouped and labelled as "Others".""",
    public=True,
)
Previous
Showcase