Fork of Barchart of Stock yields
✓ Published0🌍 Public
This horizontal bar chart displays stock yields, calculated as dividend divided by book value, for companies on the MSE in 2020. Data from `data.csv` is loaded via `d3.csv` and sorted in descending order by yield. The visualization uses a linear scale for the x-axis and a band scale for sorted company names, with axes generated by `d3.axisBottom` and `d3.axisLeft`. Rectangles are drawn in SVG with a steelblue fill, and the x-axis labels are formatted as percentages using `d3.format`.
AI-generated descriptionMIT Licensed