Ban d3.max and d3.min across the project. Close #843