Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Barchart of Stock yields

Public visualization

Viewing a saved revision (read-only)

9b2eeca30bce496bbbc25322c6767f20

Fork of Barchart of Stock yields

0 stars0🌍 Public
KkannamAmulyachowdary
Last edited Jun 26, 2022
Created on Jun 26, 2022

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 description