GDP Growth Rate Monitor
Filters
Select countries...
GDP Growth Rate Data Table
GDP Growth Rate Chart
Note: This monitor uses a static, embedded dataset of historical annual GDP growth rates (Year-over-Year). Data is for informational purposes and may not be the latest available. Last data update: May 2024 (Sample Data).
Table data not available.
"; let chartHTML = "Data Chart
"; const svgElement = chartSVGContainer ? chartSVGContainer.querySelector('svg') : null; if (svgElement) { // Clone the SVG and set explicit width/height for PDF rendering consistency const svgClone = svgElement.cloneNode(true); svgClone.setAttribute('width', '700'); // Fixed width for PDF svgClone.setAttribute('height', '400'); // Fixed height svgClone.style.maxWidth = '100%'; // Ensure it scales down if container is smaller in PDF chartHTML += svgClone.outerHTML; if (legendSection) { chartHTML += `Legend
${legendSection.innerHTML}
`;
}
} else {
chartHTML += "Chart not available or not generated.
"; } const currentDateTime = new Date().toLocaleString(); const pdfContent = `GDP Growth Rate Monitor Report
Generated: ${currentDateTime}
${filtersHTML} ${tableHTML} ${chartHTML}This report uses a static, embedded dataset of historical annual GDP growth rates. Data is for informational purposes and may not be the latest available.
`; const pdfWindow = window.open('', '_blank'); if (pdfWindow) { pdfWindow.document.write(pdfContent); pdfWindow.document.close(); setTimeout(() => { pdfWindow.print(); }, 500); } else { alert("Popup blocked. Please allow popups for this site to download the report."); } }