by Andrea AmantiniApr 09 2019

Altair

Install

pip install altair==2.3.0 xlrd==1.2.0 vega vega_datasets

Runtime

import altair as alt
alt.renderers.enable('colab')
from vega_datasets import data

source = data.iowa_electricity()

alt.Chart(source).mark_area().encode(
    x="year:T",
    y="net_generation:Q",
    color="source:N"
)