Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 10 -- Bar Chart - Black Hat

Public visualization

Assignment 10 -- Bar Chart - Black Hat

0 stars0🌍 Public
Vvishusikka
Last edited May 5, 2022
Created on Apr 24, 2022
Forked from Hello VizHub

A bar chart displays the total votes for Donald Trump and Joe Biden in California’s 2020 election, with labels “6M” and “11M” superimposed above their respective bars. The chart is intentionally deceptive: it omits a y-axis scale and truncates the y-axis to start near the minimum vote count, making the tall bars appear closer in height than the actual vote difference. The visualization loads data from a CSV using `d3.csv`, renders SVG rectangles via `d3.select` and `d3.scaleBand`, and colors bars with `colorbrewer.Reds[7]` through a `d3.scaleQuantize`.

AI-generated description

This chart is deceptive because it makes the results appear much closer than they actually were. By leaving out detail and scale the visualization can be skewed to trick the viewer.

Comments

Sign in to join the discussion.

MIT Licensed