Skip to main content
100%

D3.js Table Example

✓ Published0🌍 Public
Yyuting89830@gmail.com
Last edited Dec 30, 2023
Created on Dec 30, 2023
Forked from Hello HTML

This example displays a D3.js-generated HTML table that organizes power plant data from a JSON file, including details such as unit names, capacities, and operational statuses. The code uses d3.json to load the dataset and selects a div container to append the table, with d3.select and .append building both the header row and body rows dynamically. Each cell is populated using the .text or .html methods, allowing for inline markup in the source data. The table presents the raw array structure from the JSON’s aaData field, showing grouped entries by energy type with subtotals and annotations.

AI-generated description
MIT Licensed

Similar vizzes