Skip to content

Instantly share code, notes, and snippets.

function calendarHeatmap() {
// defaults
var width = 750;
var height = 110;
var legendWidth = 150;
var selector = 'body';
var SQUARE_LENGTH = 11;
var SQUARE_PADDING = 2;
var MONTH_LABEL_PADDING = 6;
var now = moment().endOf('day').toDate();
agGrid.LicenseManager.setLicenseKey("Evaluation_License_Valid_Until__24_November_2018__MTU0MzAxNzYwMDAwMA==a39c92782187aa78196ed1593ccd1527");
var columnDefs = [];
// let the grid know which columns and what data to use
var gridOptions = {
columnDefs: columnDefs,
enableSorting: false,
enableFilter: false,
rowData: null,
agGrid.LicenseManager.setLicenseKey("Evaluation_License_Valid_Until__24_November_2018__MTU0MzAxNzYwMDAwMA==a39c92782187aa78196ed1593ccd1527");
var columnDefs = [
// {headerName: "Foo Group", showRowGroup:"One", cellRenderer:'agGroupCellRenderer', width: 100},
// {headerName: "Month", field: 'time_period', pivot: true, hide: true},
{headerName: "One", field: 'one', rowGroup: true, hide: true },
{headerName: "Two", field: 'two', rowGroup: true, hide: true},
{headerName: "Three", field: 'three', rowGroup: true, hide: true },
{headerName: "Four", field: 'four', rowGroup: true, hide: true },
{headerName: "Five", field: 'five', rowGroup: true, hide: true },
This file has been truncated, but you can view the full file.
[
{
"Month": "Jan",
"One": "ZNDBP DQBHNQS V2 XQHBP",
"Two": "NZVB",
"Three": null,
"Four": null,
"Five": null,
"Six": null,
"Seven": null,
[
{
"Month": "Jan",
"One": "ZNDBP DQBHNQS V2 XQHBP",
"Two": "NZVB",
"Three": "XBZ",
"Four": "XBZ ZQD",
"Five": "XBZ ZQD XNXNQBQ",
"Six": "XBZ ZQD XNXNQBQ XZB",
"Seven": "XBZ ZQD XNXNQBQ XZB 20SX",
[
{
"Month": "Jan",
"One": "ZNDBP DQBHNQS V2 XQHBP",
"Two": "NZVB",
"Three": "XBZ",
"Four": "XBZ ZQD",
"Five": "XBZ ZQD XNXNQBQ",
"Six": "XBZ ZQD XNXNQBQ XZB",
"Seven": "XBZ ZQD XNXNQBQ XZB 20SX",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
### Keybase proof
I hereby claim:
* I am nickfogler on github.
* I am nickfogler (https://keybase.io/nickfogler) on keybase.
* I have a public key whose fingerprint is B39E CB05 3622 77ED F0F6 04DA 2CAC 729D 2492 3472
To claim this, I am signing this object: