function generateData(num = 100) {
const copingMechanisms = ["Meditation", "Breathing", "Tapping", "Walk", "Stretching", "Hot Drink"];
return Array.from({ length: num }, (_, i) => ({
timestamp: new Date(Date.now() - i * 3600 * 1000).toISOString(),
user: `User ${Math.floor(Math.random() * 5) + 1}`,
coping_mechanism: copingMechanisms[Math.floor(Math.random() * copingMechanisms.length)],
stress_before: Math.floor(Math.random() * (100 - 30) + 30),
stress_after: Math.floor(Math.random() * (80 - 20) + 20),
hr_before: Math.floor(Math.random() * (120 - 60) + 60),
hr_after: Math.floor(Math.random() * (100 - 50) + 50),
hrv_before: Math.floor(Math.random() * (80 - 20) + 20),
hrv_after: Math.floor(Math.random() * (100 - 30) + 30)
}));
}