"use client"; import Usecase from "./Usecase"; import TopCard from "../Insights/TopCard"; import { MyResponsiveLine } from "../Insights/LineChart"; import { MyResponsivePie } from "../Insights/PieChart"; import { MyResponsiveBar } from "../Insights/BarChart"; const suggestions = "Based on the recent data, maintaining a neutral emotional state is predominant. Although there is a slight emergence of negative emotions like disgust, sadness, and anger, they are balanced by an equal presence of joy and surprise. Encourage positive interactions and activities to enhance the joy and neutral emotions further."; const cardData = { main_emotion_1: { title: "Joy", value: 28.8, change: 28 }, main_emotion_2: { title: "Suprise", value: 19.2, change: -12 }, change_1: { title: "Anger", value: 12.1, change: 69 }, change_2: { title: "Fear", value: 5.9, change: -52 }, }; const barData = [ { emotion: "Surprise", Today: 0.28, Yesterday: 0.25 }, { emotion: "Joy", Today: 0.13, Yesterday: 0.22 }, { emotion: "Sadness", Today: 0.12, Yesterday: 0.18 }, { emotion: "Anger", Today: 0.12, Yesterday: 0.12 }, { emotion: "Neutral", Today: 0.12, Yesterday: 0.1 }, { emotion: "Fear", Today: 0.12, Yesterday: 0.1 }, { emotion: "Disgust", Today: 0.12, Yesterday: 0.09 }, ]; const lineData = [ { id: "Negative", name: "Negative", data: [ { x: "2024-09-4", y: 0.23122093090355336 }, { x: "2024-09-5", y: 0.21122093090355345 }, { x: "2024-09-6", y: 0.13122093090355345 }, { x: "2024-09-7", y: 0.18122093090355345 }, { x: "2024-09-8", y: 0.43122093090355345 }, { x: "2024-09-9", y: 0.23122093090355345 }, { x: "2024-09-10", y: 0.13122093090355345 }, ], }, { id: "Neutral", name: "Neutral", data: [ { x: "2024-09-4", y: 0.2433541552767576 }, { x: "2024-09-5", y: 0.1433541552767577 }, { x: "2024-09-6", y: 0.11122093090355345 }, { x: "2024-09-7", y: 0.20122093090355345 }, { x: "2024-09-8", y: 0.23122093090355345 }, { x: "2024-09-9", y: 0.20122093090355345 }, { x: "2024-09-10", y: 0.23122093090355345 }, ], }, { id: "Positive", name: "Positive", data: [ { x: "2024-09-4", y: 0.3233541552767576 }, { x: "2024-09-5", y: 0.2433541552767577 }, { x: "2024-09-6", y: 0.23122093090355345 }, { x: "2024-09-7", y: 0.23122093090355345 }, { x: "2024-09-8", y: 0.13122093090355345 }, { x: "2024-09-9", y: 0.28122093090355345 }, { x: "2024-09-10", y: 0.33122093090355345 }, ], }, ]; const pieData = [ { id: "Positive", label: "Positive", value: 0.43 }, { id: "Neutral", label: "Neutral", value: 0.34 }, { id: "Negative", label: "Negative", value: 0.23 }, ]; export default function InsightsDemo() { const isEmpty = (data: any) => { return !data || data.length === 0; }; const placeholder = (
Talk to a character to view your trends