Last active
March 11, 2019 04:28
-
-
Save noklam/ae4db8d9bc4d6264ce988f3b92816e12 to your computer and use it in GitHub Desktop.
altair snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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