docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a React component that displays metric gauges in partial circular formats. Gauges are commonly used in dashboards to show metrics like temperature, speed, or performance levels where a full circle is not needed.
Create a reusable DashboardGauge component that can render partial circular progress indicators. The component should support:
Configurable Arc Size - Control how much of the circle is displayed by specifying a gap size in degrees
Configurable Gap Position - Control where the gap appears in the circle
Visual Customization
The component will be used to create dashboard visualizations like semicircular temperature gauges or speedometer-style indicators.
import React from 'react';
interface DashboardGaugeProps {
value: number;
label: string;
gapDegree: number;
gapPosition: 'top' | 'bottom' | 'left' | 'right';
strokeWidth: number;
}
export const DashboardGauge: React.FC<DashboardGaugeProps>;A React progress component library that provides circular progress indicators with configurable gap positioning and degrees.
React library for building user interfaces.
React DOM rendering library.