solrkit
Version:
 
32 lines (31 loc) • 848 B
TypeScript
/// <reference types="react" />
import * as React from 'react';
import 'd3-scale';
import 'd3-svg';
import 'd3-brush';
interface HistogramProps {
max?: number;
min?: number;
precision?: number;
factor?: number;
parse?: (v: string) => number;
data: [number, number, boolean][];
facetHandler?: (a: [number | string, number | string]) => void;
}
declare class Histogram extends React.Component<HistogramProps, {}> {
svg: any;
x: any;
y: any;
line: any;
xAxis: any;
area: any;
brush: any;
dom: any;
shouldComponentUpdate(): boolean;
constructor(props: HistogramProps);
render(): JSX.Element;
componentWillReceiveProps(nextProps: HistogramProps): void;
componentDidMount(): void;
brushend(): void;
}
export { HistogramProps, Histogram };