mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-04-21 18:23:35 +00:00
17 lines
333 B
Python
17 lines
333 B
Python
"""
|
|
Line Chart with Varying Size
|
|
----------------------------
|
|
This is example of using the ``trail`` marker to vary the size of a line.
|
|
"""
|
|
# category: line charts
|
|
import altair as alt
|
|
from vega_datasets import data
|
|
|
|
source = data.wheat()
|
|
|
|
alt.Chart(source).mark_trail().encode(
|
|
x='year:T',
|
|
y='wheat:Q',
|
|
size='wheat:Q'
|
|
)
|