Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQuery属性セレクターと同等のd3を知っている人はいますか?
$('[attribute="name"]')
.transition()などのd3メソッドを使用できるようにしたい。ありがとう!
D3とjQueryの両方で同じです。基盤となる機能はW3CSelectorsAPIによって提供されるため、属性セレクターに関するドキュメントを参照してください。たとえば、d3.select("[id=body]")はと同等d3.select("#body")です。
d3.select("[id=body]")
d3.select("#body")