From 90e2da504c6fcd8e7fa81345d43f7b3ee1560014 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 23 Aug 2016 21:29:02 -0400 Subject: [PATCH] clearer selectors --- D3.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/D3.md b/D3.md index 0e3d41d..cca7d68 100644 --- a/D3.md +++ b/D3.md @@ -5,8 +5,8 @@ ### Selection ```javascript -d3.select('css selector') //like document.querySelector() -d3.selectAll() //like document.querySelectorAll() +d3.select('#some-id') //like document.querySelector() +d3.selectAll('.some-class') //like document.querySelectorAll() d3.select('main').selectAll('span'); //can chain to select ancestors ```