UNPKG

pagamio-frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

50 lines (49 loc) 1.85 kB
import type { QueryProps } from 'src/shared/types'; import type { ChartToolTipProps, DistributionQueryProps, StatisticsQueryProps, TableColumn, TooltipField } from '../types'; interface WaterfallChartProps<TData extends { id: string | number; }> { title?: string; colors?: { positive: string; negative: string; total: string; }; className?: string; themeColor?: string; url?: string; query: QueryProps; yAxisLabel: string; xAxisLabel: string; seriesDataValueKey: string; xAxisDataValueKey: string; chartToolTip: ChartToolTipProps; tooltipValueFormat: string; tooltipTitle?: string; tooltipUnit?: string; tooltipAdditionalFields?: (string | TooltipField)[]; metricDetailData: { title: string; statisticsUrl?: string; itemStatisticsQuery: StatisticsQueryProps; valueMetricsQuery: StatisticsQueryProps; averageMetricsQuery: StatisticsQueryProps; distributionMetricsQuery: DistributionQueryProps; nameKey: string; valueKey: string; dataGridSearchKey: string; dataGridColumns: TableColumn<TData>[]; dataSearchInputPlaceHolder: string; detailsTableTitle?: string; topFiveChartTitle?: string; bottomFiveChartTitle?: string; yAxisDataNameKey: string; xAxisNameKey: string; xAxisLabel: string; yAxisLabel: string; }; } declare const WaterfallChart: <TData extends { id: string | number; }>({ query, title, colors, className, url, xAxisDataValueKey, xAxisLabel, yAxisLabel, seriesDataValueKey, tooltipValueFormat, chartToolTip, tooltipTitle, tooltipUnit, tooltipAdditionalFields, metricDetailData, ...props }: WaterfallChartProps<TData>) => import("react/jsx-runtime").JSX.Element; export default WaterfallChart;