Skip to main content
100%

Pseudo Viz with Data

✓ Published2🌍 Public
MMartha Cash
Last edited Feb 20, 2023
Created on Feb 13, 2023
Forked from Pseudo Viz

A stacked bar chart displays chess game outcomes for white, black, and draw categories, broken down by victory type: mate, resign, and out-of-time, with draws shown as a single segment. Green represents wins from time expiry, yellow shows resignations, and red indicates checkmate. The visualization uses d3.stack() to layer the bars, d3.scaleBand for x-axis positioning, and d3.scaleLinear for the y-axis. Data comes from a CSV loaded via fetch and parsed with d3.csvParse, with aggregates computed through a manual loop over game records.

AI-generated description

Pseudo viz for the chess dataset that shows the number of wins and draws for total games played based on the color. Green represents games won from the other player running out of time, yellow represents resign, and red represents a check mate. Ideally, I wanted to make this a donut chart but was having trouble so I started with a bar chart. One thing I would like to add is labels on the bar chart.

Source: http://using-d3js.com/05_06_stacks.html

MIT Licensed

Similar vizzes