cost of bad recrutment 2
A donut chart illustrates the cost components of a bad recruitment decision, featuring three fixed values: travel expenses, salary paid, and benefits. The visualization uses D3.js v3 to render an SVG, with the arc, text labels, and connector polyline elements animating as users click the "randomize" button. The code relies on `d3.layout.pie`, `d3.svg.arc`, and `transition.attrTween` to smoothly interpolate between pie slices and their associated labels, while `d3.scale.ordinal` assigns colors to each category. The data is hardcoded in the script, demonstrated through a direct mapping of labels to monetary values.