var scale = d3.scale.linear() .domain([100, 500]) .range([10, 350]) scale(100); //回傳10 scale(300); //回傳180 scale(500); //回傳350.
確定! 回上一頁