import Button from '@/components/Button'; import { Icon } from '@iconify/react'; import React from 'react'; import { Cell, Pie, PieChart, ResponsiveContainer } from 'recharts'; interface UniformityGaugeChartSkeletonProps { label?: string; kandang?: string; week?: string; currentValue?: number; totalValue?: number; } const UniformityGaugeChartSkeleton: React.FC< UniformityGaugeChartSkeletonProps > = ({}) => { const numberOfSegments = 50; const value = 0; const filledSegments = Math.round((value / 100) * numberOfSegments); const data = Array.from({ length: numberOfSegments }, (_, index) => ({ name: index, value: 1, filled: index < filledSegments, })); const activeColor = '#1890ff'; const inactiveColor = '#f0f0f0'; return (
{data.map((entry, index) => ( ))}
No Filters Selected Please choose filters to narrow down your results and make your search easier.
); }; export default UniformityGaugeChartSkeleton;