Skip to content

Instantly share code, notes, and snippets.

@robdmc
Last active June 16, 2020 23:23
Show Gist options
  • Save robdmc/32275939f121fc7f5661967cc321527f to your computer and use it in GitHub Desktop.
Save robdmc/32275939f121fc7f5661967cc321527f to your computer and use it in GitHub Desktop.
Altair example
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