selectAll('text') .each(function (d, i) { const yVal = d3.select(this).attr('y'); d3.select(this).attr('y', i % 2 ? yVal : (yVal * 2) + 2) });.
確定! 回上一頁