import { ChartDonutUtilization } from '@patternfly/react-charts/victory'; interface UsageData { x?: string; y?: number; name?: string; } export const ChartUtilSmallRightSubtitle: React.FunctionComponent = () => { const data: UsageData = { x: 'Storage capacity', y: 45 }; const legendData: UsageData[] = [{ name: `Storage capacity: 45%` }, { name: 'Unused' }]; return (
(datum.x ? `${datum.x}: ${datum.y}%` : null)} legendData={legendData} legendPosition="bottom" name="chart9" padding={{ bottom: 45, // Adjusted to accommodate legend left: 20, right: 20, top: 20 }} subTitle="of 100 GBps" subTitlePosition="right" title="45%" thresholds={[{ value: 60 }, { value: 90 }]} width={350} />
); };