add gradient to visualization