Punchcard github-like using Highcharts.js
by Dave Horner
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="height: 400px; width: 600px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'bubble',
zoomType: 'xy'
},
title: {
text: 'Attendance Punchcard'
},
xAxis: {
categories: ['09:00am', '10:00am', '11:00am', '12:00am', "01:00pm", "02:00pm"]
},
yAxis: {
categories: ['Sun', 'Mon', 'Tue', 'Wed', "Thu", "Fri", "Sat"]
},
series: [{
data: [
[1, 1, 10],
[1, 2, 30],
[1, 3, 20],
[1, 4, 10],
[2, 1, 30],
[2, 2, 5],
[2, 3, 10],
[2, 4, 10],
[3, 1, 30],
[3, 2, 0],
[3, 3, 20],
[3, 4, 10],
[4, 1, 10],
[4, 2, 5],
[4, 3, 30],
[4, 4, 10], ]
}]
});
});