See beeswarm-path for a tidier implementation of beeswarm along a path.
<script type="text/javascript"> | |
$(document).ready(function() { | |
// The event listener for the file upload | |
document.getElementById('txtFileUpload').addEventListener('change', upload, false); | |
// Method that checks that the browser supports the HTML5 File API | |
function browserSupportFileUpload() { | |
var isCompatible = false; | |
if (window.File && window.FileReader && window.FileList && window.Blob) { |
license: mit |
function rightWay(obj) { | |
for (var key in obj) { | |
// Ignore properties that are inherited. | |
if (!obj.hasOwnProperty(key)) { | |
continue; | |
} | |
console.log(key); | |
} | |
} |
node_modules | |
d3.js |
d3.sankey = function() { | |
var sankey = {}, | |
nodeWidth = 24, | |
nodePadding = 8, | |
size = [1, 1], | |
nodes = [], | |
links = []; | |
sankey.nodeWidth = function(_) { | |
if (!arguments.length) return nodeWidth; |
/* Extend the Underscore object with the following methods */ | |
// Rate limit ensures a function is never called more than every [rate]ms | |
// Unlike underscore's _.throttle function, function calls are queued so that | |
// requests are never lost and simply deferred until some other time | |
// | |
// Parameters | |
// * func - function to rate limit | |
// * rate - minimum time to wait between function calls | |
// * async - if async is true, we won't wait (rate) for the function to complete before queueing the next request |
https://naturalearth.s3.amazonaws.com/10m_cultural/ https://naturalearth.s3.amazonaws.com/10m_cultural/10m_cultural.zip https://naturalearth.s3.amazonaws.com/10m_cultural/ne_10m_admin_0_antarctic_claim_limit_lines.zip https://naturalearth.s3.amazonaws.com/10m_cultural/ne_10m_admin_0_antarctic_claims.zip https://naturalearth.s3.amazonaws.com/10m_cultural/ne_10m_admin_0_boundary_lines_disputed_areas.zip https://naturalearth.s3.amazonaws.com/10m_cultural/ne_10m_admin_0_boundary_lines_land.zip https://naturalearth.s3.amazonaws.com/10m_cultural/ne_10m_admin_0_boundary_lines_map_units.zip https://naturalearth.s3.amazonaws.com/10m_cultural/ne_10m_admin_0_boundary_lines_maritime_indicator.zip https://naturalearth.s3.amazonaws.com/10m_cultural/ne_10m_admin_0_countries.zip https://naturalearth.s3.amazonaws.com/10m_cultural/ne_10m_admin_0_countries_lakes.zip
var p1 = { | |
x: 20, | |
y: 20 | |
}; | |
var p2 = { | |
x: 40, | |
y: 40 | |
}; |
ZIP,LAT,LNG | |
00601,18.180555, -66.749961 | |
00602,18.361945, -67.175597 | |
00603,18.455183, -67.119887 | |
00606,18.158345, -66.932911 | |
00610,18.295366, -67.125135 | |
00612,18.402253, -66.711397 | |
00616,18.420412, -66.671979 | |
00617,18.445147, -66.559696 | |
00622,17.991245, -67.153993 |