Global Investment Trend Predictor

Global Investment Trend Predictor

Leverage AI to forecast investment trends based on key macro factors.

Analysis Parameters

Key Economic Factors

Regions of Interest

AI-Generated Investment Trends

Your predicted trends will appear here.

${trend.rationale}

`; dom.content.innerHTML += trendCard; }); dom.downloadBtn.classList.remove('hidden'); } else { dom.placeholder.classList.remove('hidden'); dom.downloadBtn.classList.add('hidden'); } } function downloadPDF() { const { jsPDF } = window.jspdf; const pdfElement = dom.pdfOutput; const reportTitle = "Global Investment Trend Prediction"; html2canvas(pdfElement, { scale: 2 }).then(canvas => { const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: 'a4' }); const pageMargin = 40; const pdfWidth = pdf.internal.pageSize.getWidth(); const contentWidth = pdfWidth - (pageMargin * 2); pdf.setFont('Inter', 'bold'); pdf.setFontSize(24); pdf.text(reportTitle, pdfWidth / 2, pageMargin + 10, { align: 'center' }); pdf.setFontSize(12); pdf.text(`Report generated on ${new Date().toLocaleDateString()}`, pdfWidth / 2, pageMargin + 30, { align: 'center' }); const canvasRatio = canvas.height / canvas.width; const contentHeight = contentWidth * canvasRatio; pdf.addImage(imgData, 'PNG', pageMargin, pageMargin + 60, contentWidth, contentHeight); pdf.save('Investment_Trend_Prediction.pdf'); }); } init(); });
Scroll to Top