"use client"; // install (please try to align the version of installed @nivo packages) // yarn add @nivo/heatmap import { ResponsiveHeatMap } from "@nivo/heatmap"; 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 MyResponsiveHeatMapProps = { data: HeatMapData[]; }; export const MyResponsiveHeatMap: FC = ({ data }) => ( -.2s", // title: "Value →", // titleAlign: "start", // titleOffset: 4, // }, // ]} theme={{ axis: { ticks: { text: { fontSize: 12, // Change this to your desired font size fontWeight: 600, fill: "#4b5563", // Change this to your desired text color }, }, legend: { text: { fontSize: 12, // Change this to your desired font size fontWeight: 600, fill: "#1f2937", // Change this to your desired text color }, }, }, }} /> );