Bubble Chart
val dayOfWeek = listOf(
"Wed", "Thu", "Fri", "Sat", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Mon", "Tue", "Wed",
"Thu", "Fri", "Sat", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Mon", "Tue", "Wed", "Thu"
)
val week = listOf(
17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19,
19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21
)
val contributions = listOf(
2, 1, 7, 0, 0, 0, 5, 11, 4, 5, 0, 1, 3, 8, 1,
6, 12, 1, 0, 0, 0, 15, 7, 3, 0, 1, 2, 5, 6, 3
)
plot {
points {
x(week) {
axis {
name = "Week"
breaks(week.distinct(), format = "d")
}
}
y(dayOfWeek) {
axis {
name = "Day of week"
breaks(listOf("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun").reversed())
}
}
color = Color.BLUE
size(contributions) {
scale = continuous(5.0..20.0, 1..15)
legend.name = "Contributions"
}
}
layout.title = "May GitHub contributions"
}
Last modified: 06 December 2023