;
			var histogramDiv = document.getElementById('histogram-' + systemName);
			if (!histogramDiv) return;

			// Example endpoint
			var endpoint = '{{ .Site.BaseURL }}affected/' + systemName + '/index.json';
			fetch(endpoint)
				.then(res => {
					// Handle different HTTP status codes appropriately
					if (res.status === 404) {
						// 404 means no incidents for this system - treat as continuous uptime
						return { pages: [] };
					} else if (!res.ok) {
						// Other HTTP errors (500, 503, etc.) s