Made gradient reflect range calculated by selected cohort/period.