Get the Books
Enjoying these notebooks and want to support the work? Check out the practical books on Data Science, Visualisation, and Evolutionary Algorithms.
Get the books
Desktop Browsers Market Share with Plotapi Pie Fight
Support this work
You can support this work by getting the e-books. This notebook will always be available for free in its online format.
Preamble¶
from plotapi import PieFight
import json
PieFight.set_license("your username", "your license key")
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, you can see more examples in the Gallery.
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).show()
Support this work
You can support this work by getting the e-books. This notebook will always be available for free in its online format.
Plotapi, beautiful by default.
Let plotapi do the heavy lifting – enabling beautiful interactive visualisations with a single line of code (instead of hundreds).
Get Plotapi