histogram with cursor