Skip to main content
100%

Historgram V1

✓ Published0🌍 Public
MMartha Cash
Last edited Apr 19, 2023
Created on Apr 4, 2023

This interactive histogram visualizes chess game statistics from a CSV dataset, showing the distribution of average ratings, rating differences, game lengths, or turn counts based on a dropdown selection. A bar chart encodes the frequency of values across bins, with the y-axis labeled according to the chosen metric. The visualization uses D3.js v7, employing `d3.scaleLinear` for axes, `d3.histogram` for binning data, and `d3.axisBottom`/`d3.axisLeft` for tick marks. Data is loaded via `csvParse` and rendered dynamically through a custom `densityPlot` function.

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 Density: https://d3-graph-gallery.com/graph/density_basic.html

MIT Licensed

Similar vizzes