Add getColorByDimension to support caching colors for known dimension/value combinations.