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