"use client"; import { ResponsiveLine } from "@nivo/line"; import { FC } from "react"; // make sure parent container have a defined height when using // responsive component, otherwise height will be 0 and // no chart will be rendered. // website examples showcase many properties, // you'll often use just a few of them. type MyResponsiveLineProps = { data: LineChartData[]; }; export const MyResponsiveLine: FC = ({ data }) => ( { const series = data.find((serie) => serie.id === point.serieId); return (
{series?.name}
{/* id: {point.data.xFormatted} */} {/*
*/} score: {point.data.yFormatted}
); }} theme={{ axis: { legend: { text: { fontSize: 12, fontWeight: 600, fill: "#4b5563", }, }, ticks: { text: { fontSize: 12, fontWeight: 500, fill: "#4b5563", }, }, }, legends: { text: { fontSize: 12, fontWeight: 600, fill: "#4b5563", }, }, }} /> );