Altair Online

Learn how to (e.g., lines and points)?

Map data columns to visual properties (e.g., .encode(x='column1', y='column2') ). Example: Simple Bar Chart altair

One of Altair's strongest features is the ability to create interactivity (like panning, zooming, and tooltips) by linking chart components. Learn how to (e

Choose the chart type (e.g., mark_point() , mark_bar() , mark_line() ). Learn how to (e.g.

# Create a bar chart with the average of column 'b' alt.Chart(data).mark_bar().encode( x='a', y='mean(b)' # Aggregation ) Use code with caution. Copied to clipboard 4. Customizing Your Visualization

# Simple interactive tooltip alt.Chart(data).mark_bar().encode( x='a', y='b', tooltip=['a', 'b'] # Add tooltips on hover ).interactive() # Allow zooming/panning Use code with caution. Copied to clipboard 6. Saving Charts