D3.js Sortable & Responsive Table
✓ Published2🌍 Public
This interactive table displays Singapore parliamentary election data from a CSV file, showing parties and alliances alongside their SMC and GRC seat counts. Clicking any column header sorts the table rows in ascending or descending order, with ascending and descending sort indicators indicated by arrow glyphs. The example uses d3.csv to load the data and D3’s selection, data binding, and sorting methods to build and reorder the table. CSS media queries and data-th attributes make the table responsive, transforming it from a standard grid into stacked rows on small screens.
AI-generated descriptionMIT Licensed