Venture Capital Investment Risk Evaluator

Venture Capital Risk Evaluator

Quantify the risk of your next startup investment.

Startup Characteristics

Your risk evaluation will appear here.

Risk Contribution

Risk Chart

AI Investment Thesis

${totalScore.toFixed(0)}

`; document.getElementById('pdf-chart-img').src = riskChart ? riskChart.toBase64Image() : ''; document.getElementById('pdf-thesis').textContent = thesis; const contentToPrint = document.getElementById('pdf-output'); contentToPrint.style.display = 'block'; try { const canvas = await html2canvas(contentToPrint, { scale: 2 }); const { jsPDF } = window.jspdf; const imgData = canvas.toDataURL('image/png'); const pdf = new jsPDF({ orientation: 'portrait', unit: 'pt', format: 'a4' }); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = (canvas.height * pdfWidth) / canvas.width; pdf.addImage(imgData, 'PNG', 0, 0, pdfWidth, pdfHeight); pdf.save(`VC-Risk-Report.pdf`); } catch (err) { console.error("Error generating PDF:", err); alert("Could not generate PDF."); } finally { contentToPrint.style.display = 'none'; } } // --- EVENT LISTENERS --- evaluateBtn.addEventListener('click', handleEvaluation); downloadPdfBtn.addEventListener('click', handlePdfDownload); // --- INITIALIZATION --- lucide.createIcons(); });
Scroll to Top