with function for pulling an array of feature properties
updated color function to use values from key array
added legend code, but labels array is not populating properly