Using Ordinal Scales

We will write an ordinal scale to help us scale age groups into colors.

We'll cover the following

We are going to jump straight into it. Under the scales section, we are going to define a variable called colorScale. Its value will be the d3.scaleOrdinal() function.

Get hands-on with 1200+ tech skills courses.