myChart = new Chart(myCanvas, {
type: 'line',
data: {
datasets: [{
label: '# of Votes',
data: data
}]
},
options: {
scales: {
xAxes: [{
type: 'time',
time: {
unit: 'hour',
stepSize: 1,
displayFormats: {
hour: 'HH'
},
min: minDate,
max: maxDate
}
}]
}
}
})