d3.selectAll(‘h1’)
-> Array[2]
d3.select(‘.main-title’).text(‘Gapminder World: China’);
d3.select(‘.navbar-brand.logo’);
d3.select(‘#header-log img’).attr(‘alt’, ‘logo’);
d3.select(‘#header-logo img’).attr(‘src’,’./assets/***.white.png’);
d3.select(‘.main’).html(null);
.domain([15, 90])
.range([250 0])
y = mx + b
d3.scale.linear().domain([15, 90]).range([250, 0]);
var x = d3.scale.log().domain([250, 100000]).range([0, 600]);
var r = d3.scale.sqrt().domain([52070, 1380000000]).range([10, 50]);
mdn svg element
https://developer.mozilla.org/ja/docs/Web/SVG/Element
svg.append(‘circle’).attr(‘fill’,’red’).attr(‘r’,r(13800000000)).attr(‘cx’, x(13330)).attr(‘cy’,y(77));