import { ChartSeriesSlots } from './slots/ChartSeriesEnum'; import { CHART_SERIES_KEY_COMPONENT } from './constants'; import { M4LOverridesStyleRules } from '@m4l/components'; import { SxProps, Theme } from '@mui/material/styles'; /** * Dictionary used to label compact magnitudes in the chart y-axis. */ export interface CompactNumberDictionary { billion: string; million: string; thousand: string; trillion: string; } /** * Localization options used when formatting compact y-axis labels. */ export interface CompactNumberLocalizationOptions { /** Optional compact suffix labels; partial entries override the caller-resolved dictionary. */ compactDictionary?: Partial; decimalSymbol?: string | null; locale?: string | null; maximumFractionDigits?: number; thousandsSymbol?: string | null; } /** * Item for the series chart (API shape). */ export interface ChartSeriesValueItem { /** * Axis for the x-axis. */ xAxis: { title: string; field: string; }[]; /** * Axis for the y-axis. */ yAxis: { id: string; title: string; }[]; /** * Series for the series chart. */ series: { type: string; pallet_color: string; title: string; field: string; yAxisId: string; }[]; /** * Values for the series chart. */ values: { [key: string]: { r: number; v: string; } | string; }[]; } /** * Props for the series chart component. */ export interface ChartSeriesProps { /** Chart values (name, formatted value, numeric value, color). */ values: ChartSeriesValueItem; /** Chart scrollable option. */ scrollable?: boolean; /** Localization options used when formatting compact y-axis labels. */ numberLocalization?: CompactNumberLocalizationOptions; /** System styles applied to the chart root container. */ sx?: SxProps; } export type ChartSeriesOwnerState = { color?: string; }; export type ChartSeriesSlotsType = keyof typeof ChartSeriesSlots; export type ChartSeriesStyles = M4LOverridesStyleRules; //# sourceMappingURL=types.d.ts.map