This JS+D3 gist is modified from peterk87/8441728
It displays a scatterplot of time/distance RFID data
This JS+D3 gist is modified from peterk87/8441728
It displays a scatterplot of time/distance RFID data
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js"></script> | |
| <script src="http://mbostock.github.com/d3/d3.v2.min.js"></script> | |
| <!--<link rel="stylesheet" href="style.css"/>--> | |
| </head> | |
| <body> | |
| </body> | |
| <script src="smoothcolour.js"></script> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Line Chart</title> | |
| <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
| <style type="text/css"> | |
| body { | |
| font: 10px sans-serif; | |
| } |
| function setup() | |
| { | |
| d3.select('#layer1'); //for initial transition/scaling | |
| getData(); | |
| scheduleUpdate(); | |
| } | |
| var timer; | |
| var run = true; | |
| var samples; |
| #!/usr/bin/env ruby | |
| require 'net/http' | |
| require 'uri' | |
| require 'json' | |
| require 'pathname' | |
| require 'debugger' | |
| require_relative 'timestream-feeder' |
| var DtouchTile = { | |
| width: 200, | |
| height: 200, | |
| init: function(code){ | |
| format = d3.format(",d"); | |
| var pack = d3.layout.pack() | |
| .size([this.width - 4, this.height - 4]) | |
| /* return can be d.size */ | |
| .value(function(d) { return 1; }); |