Skip to content

Instantly share code, notes, and snippets.

@chriswhong chriswhong/chart.js
Last active Jul 27, 2018

Embed
What would you like to do?
A D3 Stacked Bar Chart showing NYC Planning Labs' Weekly Commits on Major Projects between July 2017 and July 2018
// based on https://bl.ocks.org/mbostock/3886208
const svg = d3.select('svg');
const margin = {
top: 20, right: 20, bottom: 100, left: 40,
};
const width = +svg.attr('width') - margin.left - margin.right;
const height = +svg.attr('height') - margin.top - margin.bottom;
const g = svg.append('g').attr('transform', `translate(${margin.left},${margin.top})`);
const x = d3.scaleBand()
.rangeRound([0, width])
.paddingInner(0.05)
.align(0.1);
const y = d3.scaleLinear()
.rangeRound([height, 0]);
const z = d3.scaleOrdinal()
.range(['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494']);
const legendX = d3.scaleBand()
.rangeRound([0, width])
.paddingInner(0.05)
.align(0.1);
d3.json('labs-data.json', (labsData) => {
// transform into an object for each week, with key for each project, value = total commits
// use week unix timestamps from the first project for
const weeks = labsData[0].data.map(d => d.week);
// for each week, get counts for all projects
const data = weeks.map((week, i) => {
const mergedWeek = {
week: new Date(week * 1000), // parse unix timestamp into date
};
let count = 0;
// add property to mergedWeek for each project
labsData.forEach(({ project, data: projectData }) => {
mergedWeek[project] = projectData[i].total;
count += projectData[i].total;
});
mergedWeek.total = count;
return mergedWeek;
});
const keys = Object.keys(data[0]).slice(1).slice(0, -1);
x.domain(data.map(d => d.week));
y.domain([0, d3.max(data, d => d.total)]).nice();
z.domain(keys);
legendX.domain(keys);
g.append('g')
.selectAll('g')
.data(d3.stack().keys(keys)(data))
.enter()
.append('g')
.attr('fill', d => z(d.key))
.selectAll('rect')
.data(d => d)
.enter()
.append('rect')
.attr('x', d => x(d.data.week))
.attr('y', d => y(d[1]))
.attr('height', d => y(d[0]) - y(d[1]))
.attr('width', x.bandwidth());
g.append('g')
.attr('class', 'axis')
.attr('transform', `translate(0,${height})`)
.call(
d3.axisBottom(x)
.tickFormat(
d3.timeFormat('%b %d'),
),
)
.selectAll('text')
.attr('y', 10)
.attr('x', 24)
.attr('dy', '.35em')
.attr('transform', 'rotate(45)');
g.append('g')
.attr('class', 'axis')
.call(d3.axisLeft(y).ticks(null, 's'))
.append('text')
.attr('x', 2)
.attr('y', y(y.ticks().pop()) + 0.5)
.attr('dy', '0.32em')
.attr('fill', '#000')
.attr('font-weight', 'bold')
.attr('text-anchor', 'start')
.text('Weekly Commits');
const legend = g.append('g')
.attr('font-family', 'sans-serif')
.attr('font-size', 10)
.attr('text-anchor', 'start')
.selectAll('g')
.data(keys.slice().reverse())
.enter()
.append('g');
// .attr("transform", function(d, i) { return "translate(0," + i * 20 + ")"; });
legend.append('rect')
.attr('x', d => legendX(d))
.attr('y', height + 50)
.attr('width', 19)
.attr('height', 19)
.attr('fill', z);
legend.append('text')
.attr('x', d => legendX(d) + 28)
.attr('y', height + 60)
.attr('dy', '0.32em')
.text(d => d);
});
<!DOCTYPE html>
<style>
.axis .domain {
display: none;
}
</style>
<svg width="960" height="250"></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="chart.js"></script>
[
{
"project":"Community Profiles",
"data":[
{
"days":[
0,
30,
14,
32,
36,
30,
12
],
"total":154,
"week":1501372800
},
{
"days":[
3,
4,
7,
24,
32,
30,
2
],
"total":102,
"week":1501977600
},
{
"days":[
0,
29,
14,
8,
25,
5,
0
],
"total":81,
"week":1502582400
},
{
"days":[
0,
5,
15,
14,
14,
13,
0
],
"total":61,
"week":1503187200
},
{
"days":[
0,
7,
16,
21,
49,
9,
0
],
"total":102,
"week":1503792000
},
{
"days":[
2,
0,
15,
5,
5,
2,
0
],
"total":29,
"week":1504396800
},
{
"days":[
0,
0,
2,
31,
2,
9,
0
],
"total":44,
"week":1505001600
},
{
"days":[
0,
1,
27,
5,
1,
0,
1
],
"total":35,
"week":1505606400
},
{
"days":[
0,
0,
0,
2,
3,
0,
0
],
"total":5,
"week":1506211200
},
{
"days":[
0,
1,
0,
0,
1,
0,
0
],
"total":2,
"week":1506816000
},
{
"days":[
0,
0,
1,
0,
0,
0,
0
],
"total":1,
"week":1507420800
},
{
"days":[
0,
0,
0,
1,
0,
0,
0
],
"total":1,
"week":1508025600
},
{
"days":[
0,
1,
0,
0,
0,
0,
0
],
"total":1,
"week":1508630400
},
{
"days":[
0,
0,
0,
0,
0,
2,
0
],
"total":2,
"week":1509235200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1509840000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1510444800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1511049600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1511654400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1512259200
},
{
"days":[
0,
0,
1,
14,
2,
5,
0
],
"total":22,
"week":1512864000
},
{
"days":[
0,
3,
2,
0,
0,
0,
0
],
"total":5,
"week":1513468800
},
{
"days":[
0,
0,
7,
4,
0,
5,
0
],
"total":16,
"week":1514073600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1514678400
},
{
"days":[
0,
0,
0,
2,
0,
0,
0
],
"total":2,
"week":1515283200
},
{
"days":[
0,
1,
0,
0,
0,
0,
1
],
"total":2,
"week":1515888000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1516492800
},
{
"days":[
0,
1,
0,
3,
0,
0,
0
],
"total":4,
"week":1517097600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1517702400
},
{
"days":[
0,
1,
0,
0,
0,
0,
0
],
"total":1,
"week":1518307200
},
{
"days":[
0,
0,
0,
0,
1,
0,
0
],
"total":1,
"week":1518912000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1519516800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1520121600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1520726400
},
{
"days":[
0,
0,
0,
1,
0,
0,
0
],
"total":1,
"week":1521331200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1521936000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1522540800
},
{
"days":[
0,
0,
1,
1,
0,
0,
0
],
"total":2,
"week":1523145600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1523750400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1524355200
},
{
"days":[
0,
2,
0,
0,
0,
0,
0
],
"total":2,
"week":1524960000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1525564800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1526169600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1526774400
},
{
"days":[
0,
0,
0,
2,
0,
0,
0
],
"total":2,
"week":1527379200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527984000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1528588800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1529193600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1529798400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1530403200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1531008000
},
{
"days":[
0,
0,
0,
0,
0,
1,
0
],
"total":1,
"week":1531612800
},
{
"days":[
0,
1,
0,
0,
0,
0,
0
],
"total":1,
"week":1532217600
}
]
},
{
"project":"ZoLa",
"data":[
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501372800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501977600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1502582400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1503187200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1503792000
},
{
"days":[
0,
0,
0,
6,
27,
33,
12
],
"total":78,
"week":1504396800
},
{
"days":[
4,
3,
14,
4,
30,
18,
0
],
"total":73,
"week":1505001600
},
{
"days":[
4,
2,
13,
12,
29,
26,
3
],
"total":89,
"week":1505606400
},
{
"days":[
0,
8,
15,
25,
25,
3,
24
],
"total":100,
"week":1506211200
},
{
"days":[
0,
8,
17,
21,
26,
10,
3
],
"total":85,
"week":1506816000
},
{
"days":[
1,
0,
7,
10,
3,
4,
0
],
"total":25,
"week":1507420800
},
{
"days":[
0,
4,
7,
5,
13,
5,
2
],
"total":36,
"week":1508025600
},
{
"days":[
6,
11,
0,
0,
0,
0,
0
],
"total":17,
"week":1508630400
},
{
"days":[
0,
1,
0,
0,
0,
0,
0
],
"total":1,
"week":1509235200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1509840000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1510444800
},
{
"days":[
0,
42,
32,
16,
5,
11,
0
],
"total":106,
"week":1511049600
},
{
"days":[
1,
2,
0,
0,
0,
0,
0
],
"total":3,
"week":1511654400
},
{
"days":[
0,
2,
2,
1,
0,
0,
0
],
"total":5,
"week":1512259200
},
{
"days":[
0,
0,
0,
0,
2,
2,
0
],
"total":4,
"week":1512864000
},
{
"days":[
0,
6,
0,
0,
0,
0,
0
],
"total":6,
"week":1513468800
},
{
"days":[
0,
0,
1,
23,
12,
4,
2
],
"total":42,
"week":1514073600
},
{
"days":[
0,
10,
1,
0,
0,
0,
0
],
"total":11,
"week":1514678400
},
{
"days":[
0,
0,
2,
0,
0,
0,
0
],
"total":2,
"week":1515283200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1515888000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1516492800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1517097600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1517702400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1518307200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1518912000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1519516800
},
{
"days":[
0,
7,
6,
2,
0,
0,
0
],
"total":15,
"week":1520121600
},
{
"days":[
0,
0,
1,
0,
0,
0,
0
],
"total":1,
"week":1520726400
},
{
"days":[
0,
16,
7,
7,
5,
5,
0
],
"total":40,
"week":1521331200
},
{
"days":[
0,
1,
0,
1,
2,
3,
0
],
"total":7,
"week":1521936000
},
{
"days":[
0,
0,
0,
0,
1,
0,
0
],
"total":1,
"week":1522540800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1523145600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1523750400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1524355200
},
{
"days":[
0,
0,
0,
3,
0,
5,
0
],
"total":8,
"week":1524960000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1525564800
},
{
"days":[
0,
0,
0,
0,
2,
0,
0
],
"total":2,
"week":1526169600
},
{
"days":[
0,
0,
0,
0,
0,
1,
0
],
"total":1,
"week":1526774400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527379200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527984000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1528588800
},
{
"days":[
0,
2,
0,
0,
0,
0,
0
],
"total":2,
"week":1529193600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1529798400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1530403200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1531008000
},
{
"days":[
0,
0,
0,
26,
3,
3,
0
],
"total":32,
"week":1531612800
},
{
"days":[
0,
0,
3,
2,
0,
0,
0
],
"total":5,
"week":1532217600
}
]
},
{
"project":"Population Factfinder",
"data":[
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501372800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501977600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1502582400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1503187200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1503792000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1504396800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1505001600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1505606400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1506211200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1506816000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1507420800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1508025600
},
{
"days":[
0,
0,
9,
8,
31,
19,
0
],
"total":67,
"week":1508630400
},
{
"days":[
0,
5,
19,
25,
14,
25,
0
],
"total":88,
"week":1509235200
},
{
"days":[
2,
24,
2,
16,
19,
0,
0
],
"total":63,
"week":1509840000
},
{
"days":[
0,
9,
25,
37,
30,
6,
0
],
"total":107,
"week":1510444800
},
{
"days":[
1,
4,
0,
1,
0,
0,
0
],
"total":6,
"week":1511049600
},
{
"days":[
0,
15,
8,
6,
17,
16,
0
],
"total":62,
"week":1511654400
},
{
"days":[
0,
7,
21,
16,
18,
10,
0
],
"total":72,
"week":1512259200
},
{
"days":[
0,
0,
0,
0,
2,
2,
3
],
"total":7,
"week":1512864000
},
{
"days":[
1,
3,
3,
10,
21,
11,
0
],
"total":49,
"week":1513468800
},
{
"days":[
0,
0,
2,
1,
2,
1,
0
],
"total":6,
"week":1514073600
},
{
"days":[
0,
0,
15,
19,
56,
31,
7
],
"total":128,
"week":1514678400
},
{
"days":[
20,
7,
0,
1,
0,
1,
4
],
"total":33,
"week":1515283200
},
{
"days":[
0,
2,
0,
0,
0,
0,
0
],
"total":2,
"week":1515888000
},
{
"days":[
0,
1,
0,
0,
0,
0,
0
],
"total":1,
"week":1516492800
},
{
"days":[
0,
0,
0,
1,
0,
2,
0
],
"total":3,
"week":1517097600
},
{
"days":[
0,
5,
8,
1,
9,
7,
1
],
"total":31,
"week":1517702400
},
{
"days":[
0,
4,
15,
6,
11,
7,
0
],
"total":43,
"week":1518307200
},
{
"days":[
8,
0,
0,
0,
1,
1,
0
],
"total":10,
"week":1518912000
},
{
"days":[
4,
0,
2,
0,
0,
0,
0
],
"total":6,
"week":1519516800
},
{
"days":[
0,
12,
16,
4,
2,
5,
0
],
"total":39,
"week":1520121600
},
{
"days":[
0,
0,
0,
0,
1,
0,
0
],
"total":1,
"week":1520726400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1521331200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1521936000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1522540800
},
{
"days":[
0,
0,
2,
0,
0,
0,
0
],
"total":2,
"week":1523145600
},
{
"days":[
0,
2,
0,
0,
0,
0,
0
],
"total":2,
"week":1523750400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1524355200
},
{
"days":[
0,
6,
1,
0,
0,
0,
0
],
"total":7,
"week":1524960000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1525564800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1526169600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1526774400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527379200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527984000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1528588800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1529193600
},
{
"days":[
0,
0,
0,
0,
0,
0,
7
],
"total":7,
"week":1529798400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1530403200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1531008000
},
{
"days":[
0,
10,
13,
0,
0,
2,
0
],
"total":25,
"week":1531612800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1532217600
}
]
},
{
"project":"GeoSearch",
"data":[
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501369200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501974000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1502578800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1503183600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1503788400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1504393200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1504998000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1505602800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1506207600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1506812400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1507417200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1508022000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1508626800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1509231600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1509836400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1510444800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1511049600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1511654400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1512259200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1512864000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1513468800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1514073600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1514678400
},
{
"days":[
0,
0,
0,
16,
7,
6,
0
],
"total":40,
"week":1515283200
},
{
"days":[
0,
0,
0,
0,
0,
2,
0
],
"total":42,
"week":1515888000
},
{
"days":[
0,
2,
2,
1,
2,
0,
0
],
"total":25,
"week":1516492800
},
{
"days":[
0,
3,
1,
1,
0,
0,
0
],
"total":10,
"week":1517097600
},
{
"days":[
0,
0,
0,
4,
0,
0,
0
],
"total":4,
"week":1517702400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":1,
"week":1518307200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1518912000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1519516800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1520121600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1520726400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1521331200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1521936000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1522540800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1523145600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1523750400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1524355200
},
{
"days":[
0,
2,
0,
0,
0,
0,
0
],
"total":2,
"week":1524960000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1525564800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1526169600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1526774400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527379200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527984000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1528588800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1529193600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1529798400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1530403200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1531008000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1531612800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1532217600
}
]
},
{
"project":"Metro Region Explorer",
"data":[
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501369200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501974000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1502578800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1503183600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1503788400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1504393200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1504998000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1505602800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1506207600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1506812400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1507417200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1508022000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1508626800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1509231600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1509836400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1510444800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1511049600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1511654400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1512259200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1512864000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1513468800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1514073600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1514678400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1515283200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1515888000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1516492800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1517097600
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1517702400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1518307200
},
{
"days":[
0,
0,
6,
12,
6,
21,
0
],
"total":45,
"week":1518912000
},
{
"days":[
0,
33,
7,
43,
12,
5,
0
],
"total":100,
"week":1519516800
},
{
"days":[
0,
0,
0,
14,
13,
12,
1
],
"total":40,
"week":1520121600
},
{
"days":[
1,
20,
8,
9,
10,
7,
0
],
"total":55,
"week":1520726400
},
{
"days":[
0,
1,
0,
0,
0,
0,
0
],
"total":1,
"week":1521331200
},
{
"days":[
0,
1,
4,
4,
10,
5,
0
],
"total":24,
"week":1521936000
},
{
"days":[
0,
0,
1,
0,
1,
2,
0
],
"total":4,
"week":1522540800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1523145600
},
{
"days":[
0,
0,
2,
0,
0,
0,
0
],
"total":2,
"week":1523750400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1524355200
},
{
"days":[
0,
3,
0,
0,
0,
0,
0
],
"total":3,
"week":1524960000
},
{
"days":[
0,
0,
7,
6,
0,
0,
0
],
"total":13,
"week":1525564800
},
{
"days":[
0,
3,
3,
0,
0,
1,
0
],
"total":7,
"week":1526169600
},
{
"days":[
0,
1,
8,
0,
1,
0,
0
],
"total":10,
"week":1526774400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527379200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1527984000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1528588800
},
{
"days":[
0,
0,
0,
1,
0,
0,
0
],
"total":1,
"week":1529193600
},
{
"days":[
0,
0,
0,
0,
1,
0,
0
],
"total":1,
"week":1529798400
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1530403200
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1531008000
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1531612800
},
{
"days":[
0,
0,
6,
1,
0,
0,
0
],
"total":7,
"week":1532217600
}
]
},
{
"project":"Streets",
"data":[
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501372800
},
{
"days":[
0,
0,
0,
0,
0,
0,
0
],
"total":0,
"week":1501977600
},
{
"days":[