handel imt and investigation time within the dynamic d3.js chart