d3.select('#foo') //選擇id為foo的元素.attr('fill', 'red') //設定紅色填滿.attr('y', 10) //設定y為10 .attr('class', 'bar') //加上名為bar的class ...
確定! 回上一頁