"use client";
import { useTheme } from "next-themes";
import { colors } from "@/lib/colors";
import { useConfig } from "@/hooks/use-config";
import {
CartesianGrid,
Cell,
XAxis,
YAxis,
ResponsiveContainer,
BarChart,
Bar,
Tooltip,
} from "recharts";
import { data } from "./data";
import CustomTooltip from "./custom-tooltip";
const getPath = (x: number, y: number, width: number, height: number) => {
return `M${x},${y + height}C${x + width / 3},${y + height} ${x + width / 2},${y + height / 3
}
${x + width / 2}, ${y}
C${x + width / 2},${y + height / 3} ${x + (2 * width) / 3},${y + height} ${x + width
}, ${y + height}
Z`;
};
const TriangleBar = (props: any) => {
const { fill, x, y, width, height } = props;
return ;
};
const CustomShape = ({ height = 300 }) => {
const { theme: mode } = useTheme();
return (
} />
}
label={{ position: "top" }}
>
{data.map((entry, index) => (
|
))}
);
};
export default CustomShape;