Adding all project files
This commit is contained in:
parent
6c9e127bdc
commit
cd4316ad0f
42289 changed files with 8009643 additions and 0 deletions
17
venv/Lib/site-packages/altair/examples/stacked_bar_chart.py
Normal file
17
venv/Lib/site-packages/altair/examples/stacked_bar_chart.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
"""
|
||||
Stacked Bar Chart
|
||||
-----------------
|
||||
|
||||
This is an example of a stacked bar chart using data which contains crop yields over different regions and different years in the 1930s.
|
||||
"""
|
||||
# category: bar charts
|
||||
import altair as alt
|
||||
from vega_datasets import data
|
||||
|
||||
source = data.barley()
|
||||
|
||||
alt.Chart(source).mark_bar().encode(
|
||||
x='variety',
|
||||
y='sum(yield)',
|
||||
color='site'
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue