change range color when 2 dots are selected in the graph