import { Pie } from '@ant-design/plots'; import numeral from 'numeral'; const TooltipContent = (props: any) => { return (
{props.x}
{props.y}
); }; const GPUUtilization: React.FC = () => { const data = [ { label: 'Idle GPUs', value: 20 }, { label: 'Allocated GPUs', value: 120 } ]; return ( { return `${item.label}: ${numeral(item.value).format('0,0')}`; } }} /> ); }; export default GPUUtilization;