average
Matt Huntington 2 years ago
parent a7dd398b55
commit 3843c5c105

@ -28,6 +28,7 @@ const renderTable = () => {
.enter() .enter()
.append('tr') .append('tr')
.style('background-color', datum => datum.color) .style('background-color', datum => datum.color)
trs.selectAll('td') trs.selectAll('td')
.data(d => [ .data(d => [
d.instance_id, d.instance_id,
@ -155,6 +156,7 @@ const populateMetrosCoursesCheckboxes = ()=>{
.append('li') .append('li')
.text(d => d.course) .text(d => d.course)
.append('input') .append('input')
d3.selectAll('#courses ul li input') d3.selectAll('#courses ul li input')
.attr('type', 'checkbox') .attr('type', 'checkbox')
.property('checked', d => d.checked) .property('checked', d => d.checked)
@ -170,6 +172,7 @@ const populateMetrosCoursesCheckboxes = ()=>{
.append('li') .append('li')
.text(d => d.metro) .text(d => d.metro)
.append('input') .append('input')
d3.selectAll('#metros ul li input') d3.selectAll('#metros ul li input')
.attr('type', 'checkbox') .attr('type', 'checkbox')
.property('checked', d => d.checked) .property('checked', d => d.checked)

Loading…
Cancel
Save