Implemented threshold lines and changed d3 version to 3