mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-04-22 10:28:02 +00:00
17 lines
379 B
Python
17 lines
379 B
Python
"""
|
|
Table Bubble Plot (Github Punch Card)
|
|
-------------------------------------
|
|
This example shows github contributions by the day of week and hour of the day.
|
|
"""
|
|
# category: scatter plots
|
|
import altair as alt
|
|
from vega_datasets import data
|
|
|
|
source = data.github.url
|
|
|
|
alt.Chart(source).mark_circle().encode(
|
|
x='hours(time):O',
|
|
y='day(time):O',
|
|
size='sum(count):Q'
|
|
)
|