import { ChartConfig } from "../Charts"; import { PieChartData } from "../PieChart"; import { RadialChartData } from "../RadialChart"; import { LegendItem } from "../types"; /** * This function returns the data keys for the chart, used for the data keys of the chart. * @param data - The data to be displayed in the chart. * @param categoryKey - The key of the category to be displayed in the chart. * @returns The data keys for the chart. */ export declare const getDataKeys: (data: Array>, categoryKey: string) => string[]; /** * This function returns the chart configuration object, used for the chart configuration object of the chart. * @param dataKeys - The data keys for the chart. * @param colors - The colors for the chart. * @param transformedKeys - The transformed keys for the chart. * @param secondaryColors - The secondary colors for the chart (optional). * @param icons - The icons for the chart (optional). * @returns The chart configuration object for the chart. */ export declare const get2dChartConfig: (dataKeys: string[], colors: string[], transformedKeys: Record, secondaryColors?: string[], icons?: Partial>) => ChartConfig; type CategoricalChartData = RadialChartData | PieChartData; export declare const getCategoricalChartConfig: (data: T, categoryKey: keyof T[number], colors: string[], // Change this from 'theme: string' to 'colors: string[]' transformedKeys: Record) => ChartConfig; /** * This function returns the legend items for the chart, used for the legend items of the chart. * @param dataKeys - The data keys for the chart. * @param colors - The colors for the chart. * @param icons - The icons for the chart. * @returns The legend items for the chart. */ export declare const getLegendItems: (dataKeys: string[], colors: string[], icons?: Partial>) => LegendItem[]; /** * This function returns the color value for a specific data key based on its position in the dataKeys array. * Use this instead of payload.fill to ensure consistent color mapping. * @param dataKey - The data key to get the color for. * @param dataKeys - The array of all data keys in the chart. * @param colors - The array of colors corresponding to the data keys. * @returns The color value for the specified data key. */ export declare const getColorForDataKey: (dataKey: string, dataKeys: string[], colors: string[]) => string; export {}; //# sourceMappingURL=dataUtils.d.ts.map