Built with blockbuilder.org
Last active
May 17, 2018 02:49
-
-
Save juzkev/4578bd6e52efac8fd841261eb13bbe95 to your computer and use it in GitHub Desktop.
read time test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: mit |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 | |
2018-04-01 00:00:00 | |
2018-04-01 01:00:00 | |
2018-04-01 02:00:00 | |
2018-04-01 03:00:00 | |
2018-04-01 04:00:00 | |
2018-04-01 05:00:00 | |
2018-04-01 06:00:00 | |
2018-04-01 07:00:00 | |
2018-04-01 08:00:00 | |
2018-04-01 09:00:00 | |
2018-04-01 10:00:00 | |
2018-04-01 11:00:00 | |
2018-04-01 12:00:00 | |
2018-04-01 13:00:00 | |
2018-04-01 14:00:00 | |
2018-04-01 15:00:00 | |
2018-04-01 16:00:00 | |
2018-04-01 17:00:00 | |
2018-04-01 18:00:00 | |
2018-04-01 19:00:00 | |
2018-04-01 20:00:00 | |
2018-04-01 21:00:00 | |
2018-04-01 22:00:00 | |
2018-04-01 23:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<script src="https://raw.githubusercontent.com/MasterMaps/d3-slider/master/d3.slider.js"></script> | |
<style> | |
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; } | |
</style> | |
</head> | |
<body> | |
<script> | |
// Feel free to change or delete any of the code you see in this editor! | |
var timearr = new Array(); | |
// Load data and let's do it. | |
d3.csv("datetime.csv", function(error, data) { | |
data.map(function(d){ | |
timearr.push(d[0]); | |
}); | |
}); | |
var svg = d3.select("body").append("svg") | |
.attr("width", 960) | |
.attr("height", 500) | |
svg.append("text") | |
.text(timearr.length) | |
.attr("y", 200) | |
.attr("x", 120) | |
.attr("font-size", 36) | |
.attr("font-family", "monospace") | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment