Skip to main content
100%

Simple graph with table in v7

✓ Published0🌍 Public
Dd3noob
Last edited Jun 19, 2021
Created on Jun 19, 2021

This example shows a date-based line graph of closing values from a CSV file, accompanied by a table displaying the same raw data. The SVG line chart uses d3.line with a time scale (d3.scaleTime) and linear scale (d3.scaleLinear), while axes are generated with d3.axisBottom and d3.axisLeft. A separate HTML table is constructed via d3.select and append, with rows and cells bound to the parsed data. The code relies on d3.csv for loading and d3.timeParse for date formatting.

AI-generated description

This is a simple graph demonstrating the addition of a table with a graph (open in full screen to see the table). This was written using d3.js v7 and is a follow on to the simple line graph.

This graph is part of the code samples for the update to the book D3 Tips and Tricks to version 7 of d3.js.

mit Licensed

Similar vizzes