Skip to main content
100%

Sample CSV for XQuery Book

✓ Published0🌍 Public
CCliffordAnderson
Last edited Sep 8, 2016
Created on Sep 8, 2016

This example visualizes the five-book dataset from CliffordAnderson’s gist, mapping each title to a node whose size encodes the year published and whose color distinguishes binding type. A force-directed layout using `d3.forceSimulation` positions the nodes, while `d3.select` and `transition.attrTween` animate the drag-and-drop interactions. The tooltip, rendered via SVG `<title>`, shows the full title and ISBN on hover. The chart reads the CSV directly from the embedded `books.csv` source, parsing fields with `d3.csvParse` and applying a categorical scale for the binding colors.

AI-generated description

Similar vizzes