color coding legend on popover