Skip to main content
Public

Share visualization

Loading preview…

Fork of Barchart of Stock yields

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Barchart of Stock yields

0
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

Comments

Sign in to join the discussion.

MIT Licensed