Public
Edited
Apr 18, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
decisionTimes = [
{ name: "year 1 story", decision_time: 8 },
{ name: "year 2 story", decision_time: 11 },
{ name: "year 3 story", decision_time: 15 },
{ name: "year 4 non fiction", decision_time: 14 },
{ name: "year 5 non fiction", decision_time: 18 },
{ name: "year 6 story", decision_time: 21 },
{ name: "Key Stage 3 non fiction", decision_time: 15 },
{ name: "GCSE English Language essay", decision_time: 25 },
{ name: "Professional essay (1500 words)", decision_time: 167 },
{ name: "Audio sample", decision_time: 20 }
]
Insert cell
Insert cell
Insert cell
toHHMMSS = function (s) {
var sec_num = parseInt(s, 10); // don't forget the second param
var hours = Math.floor(sec_num / 3600);
var minutes = Math.floor((sec_num - hours * 3600) / 60);
var seconds = sec_num - hours * 3600 - minutes * 60;

if (hours < 10) {
hours = "0" + hours;
}
if (minutes < 10) {
minutes = "0" + minutes;
}
if (seconds < 10) {
seconds = "0" + seconds;
}
return hours + ":" + minutes + ":" + seconds;
}
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