Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3.js Sortable & Responsive Table

Public visualization

D3.js Sortable & Responsive Table

0 stars0🌍 Public
Aachintyatripathi
Last edited Oct 24, 2020
Created on Oct 24, 2020

This interactive table displays police station accident data from a CSV file, allowing users to sort rows by clicking any column header. Built with D3.js v3, the visualization loads data via `d3.csv` and dynamically creates an HTML table. Clicking a header toggles ascending and descending sort order, updating arrow indicators on the active column. The table is responsive, using CSS media queries to transform from a standard layout on desktop to a card-style display on mobile devices, where each cell is labeled with its corresponding column name.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed