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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more