|
|
|
|
@ -32,6 +32,16 @@ const renderPoints = () => {
|
|
|
|
|
return datum.highlighted
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
d3.selectAll('circle').on('click', (event, datum) => {
|
|
|
|
|
d3.select('tbody td:nth-child(1)').html(datum.instance_id);
|
|
|
|
|
d3.select('tbody td:nth-child(2)').html(datum.course);
|
|
|
|
|
d3.select('tbody td:nth-child(3)').html(datum.graduation_date);
|
|
|
|
|
d3.select('tbody td:nth-child(4)').html(datum.total_students);
|
|
|
|
|
d3.select('tbody td:nth-child(5)').html(`${datum.dropped} (${Math.floor(datum.dropped/datum.total_students*100)}%)`);
|
|
|
|
|
d3.select('tbody td:nth-child(6)').html(datum.graduates);
|
|
|
|
|
d3.select('tbody td:nth-child(7)').html(`${datum.ninety_day_outcomes} (${Math.floor(datum.ninety_day_outcomes/datum.graduates*100)}%)`);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const setupGraph = ()=>{
|
|
|
|
|
|