Published
Edited
Oct 14, 2019
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
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
}
}]
/*xAxes: [{
type: 'time',
time: {
unit: 'day',
stepSize: 1,
min: minDate,
max: maxDate
}
}]*/
}
}
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more