Let's use d3 to automatically set the rect width using data. ... d3.selectAll("rect") .data(datapoints) .attr('width', function(d) { return d; }) </script>.
確定! 回上一頁