851 viewby integers and dates

Closes #851 
this is a lot of logic for a let, can we move the rhs of `colors` to a function? w/a descriptive doc string