Skip to content

Instantly share code, notes, and snippets.

View tomshanley's full-sized avatar

Tom Shanley tomshanley

View GitHub Profile
@tomshanley
tomshanley / ShortestPathCalculator.js
Last active March 9, 2017 01:35
D3 matrix, with sort and grouping
/*
*
* Dijkstra Short Path Calculator and Graph Plotter
* Uses D3 JS (V3)
*
*/
var ShortestPathCalculator = function(nodes, paths) {
this.nodes = nodes; // nodes => [ { index: 0, value: 'a', r: 20 }, ... ]
@tomshanley
tomshanley / README.md
Last active March 29, 2016 02:02
Force directed graph using tabletop.js and shortestpath v2
@tomshanley
tomshanley / .block
Last active July 21, 2016 02:44
v4 curve interpolation comparison
license: gpl-3.0
@tomshanley
tomshanley / d3.js
Last active August 11, 2016 23:01
Beeswarm to line chart
// https://d3js.org Version 4.1.0. Copyright 2016 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.d3 = global.d3 || {})));
}(this, function (exports) { 'use strict';
var version = "4.1.0";
function ascending(a, b) {
@tomshanley
tomshanley / d3.js
Last active August 11, 2016 23:10
Mutliple connected beeswarm plots
// https://d3js.org Version 4.1.0. Copyright 2016 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.d3 = global.d3 || {})));
}(this, function (exports) { 'use strict';
var version = "4.1.0";
function ascending(a, b) {
@tomshanley
tomshanley / d3.js
Last active August 15, 2016 01:57
Marimekko using d3.treemapSliceDice and version 4 of D3
// https://d3js.org Version 4.1.0. Copyright 2016 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.d3 = global.d3 || {})));
}(this, function (exports) { 'use strict';
var version = "4.1.0";
function ascending(a, b) {
@tomshanley
tomshanley / d3.js
Last active August 15, 2016 23:09
Beeswarm to line chart v2
// https://d3js.org Version 4.1.0. Copyright 2016 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.d3 = global.d3 || {})));
}(this, function (exports) { 'use strict';
var version = "4.1.0";
function ascending(a, b) {
@tomshanley
tomshanley / d3.js
Last active February 1, 2018 09:59
Area chart with negative area
// https://d3js.org Version 4.1.0. Copyright 2016 Mike Bostock.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.d3 = global.d3 || {})));
}(this, function (exports) { 'use strict';
var version = "4.1.0";
function ascending(a, b) {
@tomshanley
tomshanley / bootstrap-table-filter-control.js
Last active September 19, 2016 23:18
Indicators table
/**
* @author: Dennis Hernández
* @webSite: http://djhvscf.github.io/Blog
* @version: v2.1.0
*/
(function ($) {
'use strict';