Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart with D3.js

Public visualization

Bar chart with D3.js

0 stars0🌍 Public
KKanishka33
Last edited Jun 5, 2020
Created on Jun 5, 2020

This bar chart visualizes genderwise comparison of sharks, showing the frequency distribution of male and female observations from a CSV dataset. The chart uses SVG rendering with D3.js v5, employing `d3.scaleLinear` for the y-axis, `d3.scaleBand` for categorical x-axis positioning, and `d3.axisLeft`/`d3.axisBottom` for gridlines and ticks. Interactive hover effects trigger `transition` animations, highlighting divergence percentages via appended text and a dashed limit line.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed