New barchart
This stacked bar chart shows how resources are allocated across five categories (ABC, PQR, XYZ, LMN, OPQ), with each bar split into used and unused portions. The chart uses a d3.stack layout with stackOffsetExpand to normalize the bars to equal height, while the y-axis displays the raw total values via a d3.scaleLinear. Draws in SVG using d3.v5, the visualization colors the stacked segments with d3.scaleOrdinal from d3.schemeCategory20c and includes gridlines generated by d3.axisLeft. The data comes from hardcoded JavaScript records with name, total, and used fields.