Properties logo altair: properties

1 2 3 4 5 6 7 8 9

We can add other properties to altair as well. Properties like color.

The plot in this video is created with the code below.

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

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