Timeseries


Timeseries charts refer to all charts representing the evolution of a numeric value. Line chart, streamgraph, barplot, area chart: they all can be used for timeseries visualization. This section displays many timeseries examples made with Python, Matplotlib and other libraries.

⏱ Quick start

Making a simple line chart with matplotlib is pretty straightforward thanks to the plot() function.

If you provide only a series of values, it will consider that these values are ordered and will use values from 1 to n to create the X axis.🔥

For more control on the chart, see the dedicated section below.

# libraries
  import matplotlib.pyplot as plt
  import numpy as np

  # create data
  values=np.cumsum(np.random.randn(1000,1))

  # use the plot function
  plt.plot(values)
  

Area charts for timeseries

Area charts are very often used for timeseries visualization. They are particularly adapted when there is only 1 series to display. When several groups must be displayed, they can still be used using faceting.

Heatmap for timeseries

A heatmap can be used to display some temporal data. Here is an example using matplotlib where the evolution of a temperature is displayed over the hour of the day (Y axis) and the day of the year (X axis) organized by month.

A heatmap for temporal data with Python and Matplotlib

Matplotlib logoFrom the web

A set of publication ready charts for timeseries. They are made with python and matplotlib and use a high level of customization.

The first example is a line chart showing how to add labels at the end of each series for better readability. The second shows how to use lollipop to display the evolution of a deviation around a trend.

Contact

👋 This document is a work by Yan Holtz. Any feedback is highly encouraged. You can fill an issue on Github, drop me a message onTwitter, or send an email pasting yan.holtz.data with gmail.com.

Violin

Density

Histogram

Boxplot

Ridgeline

Scatterplot

Heatmap

Correlogram

Bubble

Connected Scatter

2D Density

Barplot

Spider / Radar

Wordcloud

Parallel

Lollipop

Circular Barplot

Treemap

Venn Diagram

Donut

Pie Chart

Dendrogram

Circular Packing

Line chart

Area chart

Stacked Area

Streamgraph

Timeseries with python

Timeseries

Map

Choropleth

Hexbin

Cartogram

Connection

Bubble

Chord Diagram

Network

Sankey

Arc Diagram

Edge Bundling

Colors

Interactivity

Animation with python

Animation

Cheat sheets

Caveats

3D