updated function "RescaleDataRange" to be compatible with the new ColorArrayName instead of old ColorAttributeType