d3 svg for selecting threshold in modal