UNPKG

react-financial-charts

Version:
78 lines (77 loc) 2.61 kB
import * as PropTypes from "prop-types"; import * as React from "react"; import { strokeDashTypes } from "../utils"; interface XAxisProps { readonly axisAt?: number | "top" | "bottom" | "middle"; readonly className?: string; readonly domainClassName?: string; readonly fill?: string; readonly flexTicks?: boolean; readonly fontFamily?: string; readonly fontSize?: number; readonly fontWeight?: number; readonly getMouseDelta?: (startXY: [number, number], mouseXY: [number, number]) => number; readonly innerTickSize?: number; readonly onContextMenu?: any; readonly onDoubleClick?: any; readonly orient?: "top" | "bottom"; readonly outerTickSize?: number; readonly showDomain?: boolean; readonly showTicks?: boolean; readonly showTickLabel?: boolean; readonly stroke?: string; readonly strokeOpacity?: number; readonly strokeWidth?: number; readonly tickFormat?: (data: any) => string; readonly tickPadding?: number; readonly tickSize?: number; readonly tickLabelFill?: string; readonly ticks?: number; readonly tickStroke?: string; readonly tickStrokeOpacity?: number; readonly tickStrokeWidth?: number; readonly tickStrokeDasharray?: strokeDashTypes; readonly tickValues?: number[]; readonly xZoomHeight?: number; readonly zoomEnabled?: boolean; readonly zoomCursorClassName?: string; } export declare class XAxis extends React.Component<XAxisProps> { static defaultProps: { axisAt: string; className: string; domainClassName: string; fill: string; fontFamily: string; fontSize: number; fontWeight: number; getMouseDelta: (startXY: [number, number], mouseXY: [number, number]) => number; opacity: number; orient: string; outerTickSize: number; innerTickSize: number; showTicks: boolean; showTickLabel: boolean; showDomain: boolean; stroke: string; strokeWidth: number; strokeOpacity: number; ticks: number; tickPadding: number; tickLabelFill: string; tickStroke: string; tickStrokeOpacity: number; xZoomHeight: number; zoomEnabled: boolean; zoomCursorClassName: string; }; static contextTypes: { chartConfig: PropTypes.Validator<object>; xAxisZoom: PropTypes.Validator<(...args: any[]) => any>; }; render(): JSX.Element; private readonly axisZoomCallback; private readonly helper; private readonly getXScale; } export {};