import { Color } from "../../core/types"; /** * Represents an individual segment witin Chart. */ export interface BarData { /** * Optional label for the bar segment. */ name?: string; /** * The numeric value of the bar segment. This value contributes to the total sum * of the donut chart, determining the segment's size proportionally. */ value: number; /** * The color identifier for the bar segment, which maps to a color in the core color palette. */ color?: Color; } /** * Interface for the DonutChart component. */ export interface IDonutChart { /** * Array of BarData objects defining each segment in the donut chart. * Each segment's size is proportional to its `value` relative to the total value of all segments. */ data: BarData[]; /** * Optional label displayed inside the center of the donut chart. * Typically used to show a summary value or total. */ label?: string; }