Primary Frontier Interest¶
While the survey question says Primary, people were able to respond with multiple frontiers. And they did!
(alt.Chart(data=survey, title="Number of Primary Frontiers")
.mark_bar()
.transform_calculate(
f_len='length(datum.frontier_all)'
)
.encode(
y=alt.Y(shorthand="f_len:N"),
x=alt.X(shorthand="count()",title="Number of people"),
tooltip=alt.Tooltip("count():N"),
)
)
(alt.Chart(data=survey, title="Frontiers Selected")
.mark_bar()
.transform_flatten(
flatten=['frontier_all'],
)
.encode(
y=alt.Y(shorthand="frontier_all:N", sort="-x"),
x=alt.X(shorthand="count()",title="Number of people"),
tooltip=alt.Tooltip("count():N"),
)
)