Don't forget to copy the reporting interval parsed dates when calculating the overall range.
Search for matching color group index, rather than rely on default Colorbrewer ones.