Skip to content

Instantly share code, notes, and snippets.

@noklam
Last active March 11, 2019 04:28
Show Gist options
  • Save noklam/ae4db8d9bc4d6264ce988f3b92816e12 to your computer and use it in GitHub Desktop.
Save noklam/ae4db8d9bc4d6264ce988f3b92816e12 to your computer and use it in GitHub Desktop.
altair snippets
import altair as alt
(alt.Chart(df_sub)
.mark_rect()
.encode(x='yearmonthdate(hospTime):O',
y='hospNameEn:N',
color=alt.Color('mean(topWaitTime):Q',
scale=alt.Scale(scheme='orangered')))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment