js/bonus.js
/**
 * modifies the arc to have numbers
 */
modifies the arc to have numbers
modifies the arc to have numbers
function addArcNumbers(arch) {
	arch.selectAll(".bg-arc")
		.append("text")
		.attr("x", (d, i) => 175 * Math.sin(archIndexToRadians(i)))
		.attr("y", (d, i) => 175 * Math.cos(archIndexToRadians(i)))
		.attr("text-anchor", "middle")
		.text((d, i) => `${i - 1}-${i}`);
}
function addArcNumbers ( arch ) { arch . selectAll ( ".bg-arc" ) . append ( "text" ) . attr ( "x" , ( d , i ) => 175 * Math . sin ( archIndexToRadians ( i ) ) ) . attr ( "y" , ( d , i ) => 175 * Math . cos ( archIndexToRadians ( i ) ) ) . attr ( "text-anchor" , "middle" ) . text ( ( d , i ) => ` ${ i - 1 } ${ i } ` ) ; }
modifies the arc to have numbers
modifies the arc to have numbers
// add in the arch text
