logo

... altair.


There are many visualisation libraries in python out there and altair offers some original features. It offers a wide variety of charts, a grammar-like api, loads of interactivity features and the option of exporting directly to the browser.


Episode Notes

The final plot is created via;

days = ['Mon', 'Tues', 'Wed', 'Thurs', 'Fri', 'Sat', 'Sun']

(alt.Chart(plot_df)
  .mark_line()
  .encode(x='date', y='births', color=alt.Color('wday', sort=days))
  .properties(width=600, height=250)
  .interactive())

Feedback? See an issue? Feel free to mention it here.

If you want to be kept up to date, consider getting the newsletter.