Skip to content

Instantly share code, notes, and snippets.

@JeffML
Last active August 21, 2019 23:09
Show Gist options
  • Save JeffML/d589da618a4f716a4152ac6ae0a6bf59 to your computer and use it in GitHub Desktop.
Save JeffML/d589da618a4f716a4152ac6ae0a6bf59 to your computer and use it in GitHub Desktop.
example of data returned by jsheatmap
{
"headings": [
"Jun",
"Jul",
"Aug",
"Sep"
],
"high": 9,
"low": 4,
"rows": [
{
"label": "2015",
"cells": {
"values": [
7,
5,
6,
8
],
"colors": [
{
"red": 0.6249999999999998,
"green": 1,
"blue": 0
},
{
"red": 0,
"green": 0.588235294117647,
"blue": 1
},
{
"red": 0,
"green": 1,
"blue": 0.625
},
{
"red": 1,
"green": 0.588235294117647,
"blue": 0
}
],
"scales": [
0.6,
0.2,
0.4,
0.8
]
}
},
{
"label": "2016",
"cells": {
"values": [
7,
5,
5,
7
],
"colors": [
{
"red": 0.6249999999999998,
"green": 1,
"blue": 0
},
{
"red": 0,
"green": 0.588235294117647,
"blue": 1
},
{
"red": 0,
"green": 0.588235294117647,
"blue": 1
},
{
"red": 0.6249999999999998,
"green": 1,
"blue": 0
}
],
"scales": [
0.6,
0.2,
0.2,
0.6
]
}
},
{
"label": "2017",
"cells": {
"values": [
7,
4,
5,
9
],
"colors": [
{
"red": 0.6249999999999998,
"green": 1,
"blue": 0
},
{
"red": 0,
"green": 0,
"blue": 1
},
{
"red": 0,
"green": 0.588235294117647,
"blue": 1
},
{
"red": 1,
"green": 0,
"blue": 0
}
],
"scales": [
0.6,
0,
0.2,
1
]
}
},
{
"label": "2018",
"cells": {
"values": [
6,
5,
7,
8
],
"colors": [
{
"red": 0,
"green": 1,
"blue": 0.625
},
{
"red": 0,
"green": 0.588235294117647,
"blue": 1
},
{
"red": 0.6249999999999998,
"green": 1,
"blue": 0
},
{
"red": 1,
"green": 0.588235294117647,
"blue": 0
}
],
"scales": [
0.4,
0.2,
0.6,
0.8
]
}
},
{
"label": "2019",
"cells": {
"values": [
8,
6,
6,
8
],
"colors": [
{
"red": 1,
"green": 0.588235294117647,
"blue": 0
},
{
"red": 0,
"green": 1,
"blue": 0.625
},
{
"red": 0,
"green": 1,
"blue": 0.625
},
{
"red": 1,
"green": 0.588235294117647,
"blue": 0
}
],
"scales": [
0.8,
0.4,
0.4,
0.8
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment