Dynamically change legend with color-by selection