Cumulative Wikipedia Donations¶
This chart shows cumulative donations to Wikipedia over the past 10 years. Inspired by this Reddit post but using lines instead of areas.
import altair as alt
data = "https://frdata.wikimedia.org/donationdata-vs-day.csv"
alt.Chart(data).mark_line().encode(
alt.X('monthdate(date):T', axis=alt.Axis(format='%B', title='Month')),
alt.Y(
'max(ytdsum):Q', stack=None,
axis=alt.Axis(title='Cumulative Donations')
),
alt.Color('year(date):O', legend=alt.Legend(title='Year')),
alt.Order('year(data):O')
)