ked[i+3]];
				}

				console.timeEnd('prep');

				return [cpu, ram, tcp];
			}

			function makeChart(data) {
				console.time('chart');

				$.plot("#placeholder", data, {
					xaxis: { mode: "time", timeBase: "milliseconds"},
					hooks: {
						drawOverlay: [
							() => {
								wait.textContent = "Done!";
								console.timeEnd('chart');
							}
						]
					}
				});
			}

			let wait = document.getElementById("wait");
			wait.textContent = "Fetching data.json (2.07MB)....";
			fetch("data.json"