diff --git a/app/results/page.tsx b/app/results/page.tsx index e278635..d9bfe5d 100644 --- a/app/results/page.tsx +++ b/app/results/page.tsx @@ -1,11 +1,41 @@ -"use client"; +'use client'; +import { Bar } from 'react-chartjs-2'; -import {DayCard} from "@components/custom/dayCard"; +import prisma from '@lib/prisma'; + +import Head from 'next/head'; + +import { Chart as ChartJS, CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip, Legend, Filler } from 'chart.js'; + +ChartJS.register(CategoryScale, LinearScale, PointElement, LineElement, Filler, Title, Tooltip, Legend); + +interface IPower { + date: string; + value: number; +} + +interface IChart { + labels: string[]; + datasets: [ + { + label: string; + data: number[]; + fill: true; + backgroundColor: string; + borderColor: string; + } + ]; +} export default function Results() { - return ( -
- -
- ) + return ( + <> + + Solar + + + + + + ); }