import { CategoricalScaleSpec, ContinuousScaleSpec, CssProps, CurveSpec, DataInteractivityProps, PathProps, RectangleProps, SvgElementVariantProps, ViewProps, WithId, SvgElementProps, NumericPositionSpec, ComponentProps } from '@chsk/core'; export type HistogramDataItem = WithId & { data: Array; }; export type HistogramProcessedDataItem = WithId & { index: number; points: Array; breaks: number[]; n: number; mean?: number; sd?: number; }; export type HistogramInteractiveDataItem = HistogramProcessedDataItem & { bin?: number; }; export interface HistogramProps extends SvgElementVariantProps, Pick { /** variant */ variant?: 'count' | 'density'; /** data */ data: Array; /** breakpoints for bins */ breaks: number | number[]; /** scale for horizontal axis */ scaleX?: ContinuousScaleSpec; /** scale for vertical axis */ scaleY?: ContinuousScaleSpec; /** scale for colors */ scaleColor?: CategoricalScaleSpec; } export interface HistogramCurveProps extends SvgElementProps, DataInteractivityProps { /** ids to display (defaults to all ids) */ ids?: string[]; /** curve type */ curve?: CurveSpec; } export type HistogramSeriesLayer = 'area' | 'curve'; export interface HistogramSeriesProps extends HistogramCurveProps { /** list of components to display */ layers: HistogramSeriesLayer[]; /** styles for areas */ areaStyle?: CssProps; /** styles for curve */ curveStyle?: CssProps; /** styles for bars */ barStyle?: CssProps; } export interface HistogramBarsProps extends SvgElementProps, DataInteractivityProps, ComponentProps { /** ids to display (defaults to all ids) */ ids?: string[]; } //# sourceMappingURL=types.d.ts.map