- Case studies:
- Artists in the USA
- Avocado data
September 29 2022
We will be working with data on Artists in the USA.
More specifically, we will be building a visualization on aggregate data based on the original data set.
Discuss with a classmate(s) which variables you’d map to what elements in your plot. You can draft it out on paper (that’s often very helpful).
For dealing with multiple categorical variables, we can add color to encode one of our variables.
We can use the stack transform to generate different y2/x2 values.
transform: [ { type: "stack", groupby: ["type"], field: "percent", as: ["x0", "x1"], sort: { field: "race" } }
race
x0
and x1
) in your marks specIn our second case study we will be working with Avocado Prices data.
You can get the data from GitHub.