@mui/x-charts
Version:
The community edition of MUI X Charts components.
11 lines • 699 B
TypeScript
import type { ChartSeriesType } from "../../../../../models/seriesType/config.js";
import type { SeriesId } from "../../../../../models/seriesType/common.js";
import type { ProcessedSeries } from "../../../corePlugins/useChartSeries/index.js";
/**
* Returns the previous series type and id that contains some data.
* Returns `null` if no other series have data.
*/
export declare function getPreviousNonEmptySeries<OutSeriesType extends Exclude<ChartSeriesType, 'sankey'> = Exclude<ChartSeriesType, 'sankey'>>(series: ProcessedSeries<ChartSeriesType>, availableSeriesTypes: Set<OutSeriesType>, type?: ChartSeriesType, seriesId?: SeriesId): {
type: OutSeriesType;
seriesId: SeriesId;
} | null;