added error checking to colorAxis