Commit 1656a787 authored by James Ramsey's avatar James Ramsey
Browse files

Update main.js

parent 9b9cdef3
// import the csv dataset and run code inside of this
d3.csv("tbp_data.csv")
d3.csv("data.csv")
// parse the data in proper datatypes
.row(function(d){ return {
......@@ -28,7 +28,7 @@ d3.csv("tbp_data.csv")
'#ffff7f'];
// set up line stroke
var stroke = width/5000
var stroke = width/4000
// Set up line function
var line = d3.line()
......@@ -79,7 +79,7 @@ d3.csv("tbp_data.csv")
.append("path")
.attr("d", function(d) { return line(d.values); })
.attr("stroke", function(d, i) { return colours[i]; })
.attr("stroke-width", 0.35)
.attr("stroke-width", stroke)
.attr("fill", "none");
// Create the body circles
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment