D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
35degrees
Full window
Github gist
Loading CSV Data
An example of D3
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Load CSV</title> </head> <body> <script src="https://d3js.org/d3.v4.min.js"></script> <script> const row = d => { d.petalLength = +d.petalLength; d.petalWidth = +d.petalWidth; d.sepalLength = +d.sepalLength; d.sepalWidth = +d.sepalWidth; return d; } d3.csv('iris.csv', row, data => { console.log(data) }) </script> </body> </html>
https://d3js.org/d3.v4.min.js