Skip to content

Instantly share code, notes, and snippets.

View paulinm's full-sized avatar

Matthew Paulini paulinm

View GitHub Profile
@paulinm
paulinm / gauge.js
Last active August 21, 2019 07:30 — forked from tomerd/gauge.js
A Google-style Gauge Implemented using D3 with Optional Min, Max, and Running Average Tracking
function Gauge(placeholderName, configuration)
{
this.placeholderName = placeholderName;
var minValue = null;
var maxValue = null;
var avgValue = null;
var avgCounter = 0;
var self = this; // for internal d3 functions