team-10/venv/Lib/site-packages/altair/examples/slope_graph.py

17 lines
285 B
Python
Raw Normal View History

2025-08-02 02:00:33 +02:00
"""
Slope Graph
-----------------------
This example shows how to make Slope Graph.
"""
# category: line charts
import altair as alt
from vega_datasets import data
source = data.barley()
alt.Chart(source).mark_line().encode(
x='year:O',
y='median(yield)',
color='site'
)