Last active
June 16, 2020 23:23
-
-
Save robdmc/32275939f121fc7f5661967cc321527f to your computer and use it in GitHub Desktop.
Altair example
This file contains hidden or 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.data_transformers.disable_max_rows() | |
| chart = alt.Chart(df) | |
| chart.mark_line().encode( | |
| x='timestamp:T', | |
| y='ask:Q', | |
| color='strike:O' | |
| ).properties( | |
| width=800, | |
| height=400 | |
| ).interactive() | |
| """ | |
| Data types | |
| quantitative: Q a continuous real-valued quantity | |
| ordinal: O a discrete ordered quantity | |
| nominal: N a discrete unordered category | |
| temporal: T a time or date value | |
| geojson: G a geographic shape | |
| """ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment