Skip to content

Instantly share code, notes, and snippets.

var chartHeight;
var chartWidth;
// ceiling value; needs to be set
var ceiling;
// Y scale will fit values from 0-10 within pixels 0 - height
var y;
var yneg;
/**
/**
* Return a timestamp with the format "m/d/yy h:MM:ss TT"
* @type {Date}
*/
function timeStamp() {
// Create a date object with the current time
var now = new Date();
// Create an array with the current month, day and time