cs-2022-class-profile/pages/playground.tsx

29 lines
579 B
TypeScript
Raw Normal View History

2022-06-15 17:24:08 -04:00
import { mockLineGraphlData } from "data/mocks";
2022-06-03 01:31:07 -04:00
import React from "react";
2022-06-15 17:24:08 -04:00
import LineGraph from "@/components/LineGraph";
2022-06-03 01:31:07 -04:00
export default function Home() {
return (
<>
<h1>Playground</h1>
<p>Show off your components here!</p>
2022-06-15 17:24:08 -04:00
<h2>
<code>{"<LineGraph />"}</code>
</h2>
<LineGraph
// className={styles.barGraphDemo}
data={mockLineGraphlData}
width={700}
2022-08-10 20:12:21 -04:00
height={300}
2022-06-15 17:24:08 -04:00
margin={{
top: 20,
bottom: 40,
left: 50,
right: 20,
}}
/>
2022-06-03 01:31:07 -04:00
</>
);
}