import { ChartLabel, ChartLegend, ChartPie, ChartThemeColor } from '@patternfly/react-charts/victory';
import { Tooltip } from '@patternfly/react-core';
import { useRef } from 'react';
interface PetData {
x: string;
y: number;
}
export const ChartTooltipLegend: React.FunctionComponent = () => {
// Custom legend label component
// Note: Tooltip wraps children with a div tag, so we add a reference to ChartLabel instead
const LegendLabel = ({ datum, ...rest }) => {
const ref = useRef(null);
return (