import { IAnimated, IBox } from "../../core/types"; import { BarData } from '../DonutChart/types'; /** * Props for the MeterBar component * * @interface IMeterBar */ export interface IMeterBar extends IBox, IAnimated { /** * Array of BarData objects defining each segment in the meter bar. * Each segment's size is proportional to its `value` relative to the total value of all segments. */ data: BarData[]; /** * The total value that all segments should add up to. * This defines the maximum value of the meter bar. */ value: number; /** * The label for the entire meter bar. * This label is used for accessibility purposes, helping screen readers * convey the overall purpose of the meter bar. */ label?: string; /** * Whether to show the final progress segment label (or value) in the meter bar on the right. * @default false */ showProgress?: boolean; }