Spaces:
Sleeping
Sleeping
Update app.py
#21
by singhn9 - opened
244 unmodified lines245246247248249250251252253254255256248249250251252253254258255256257258259244 unmodified lines .style("cursor","pointer");
group.append("text") .attr("x",d=>Math.cos(d.angle)*(radius+26)) .attr("y",d=>Math.sin(d.angle)*(radius+26)) .attr("dy","0.35em") .style("font-family","sans-serif") .style("font-size",Math.max(10,Math.min(14,radius*0.04))) .style("text-anchor",d=>{ const deg=d.angle*180/Math.PI; return (deg>-90 && deg<90)?"start":"end"; }) .attr("x", d => Math.cos(d.angle) * (radius + 20)) .attr("y", d => Math.sin(d.angle) * (radius + 20)) .attr("dy", "0.35em") .style("font-family", "sans-serif") .style("font-size", Math.max(10, Math.min(13, radius*0.038))) .style("text-anchor", "middle") .style("cursor","pointer") .text(d=>SHORT_LABEL_JS[d.name]||d.name); .text(d => d.name);
function bezierPath(x0,y0,x1,y1,above=true){ const mx=(x0+x1)/2, my=(y0+y1)/2;app.py+8-10