react-financial-charts
Version:
React charts specific to finance.
79 lines (78 loc) • 2.62 kB
TypeScript
import * as PropTypes from "prop-types";
import * as React from "react";
import { strokeDashTypes } from "../utils";
interface YAxisProps {
readonly axisAt?: number | "left" | "right" | "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[], mouseXY: number[]) => number;
readonly innerTickSize?: number;
readonly onContextMenu?: any;
readonly onDoubleClick?: any;
readonly orient?: "left" | "right";
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 yZoomWidth?: number;
readonly zoomEnabled?: boolean;
readonly zoomCursorClassName?: string;
}
export declare class YAxis extends React.Component<YAxisProps> {
static defaultProps: {
axisAt: string;
className: string;
domainClassName: string;
fill: string;
fontFamily: string;
fontSize: number;
fontWeight: number;
getMouseDelta: (startXY: any, mouseXY: any) => number;
innerTickSize: number;
outerTickSize: number;
opacity: number;
orient: string;
showTicks: boolean;
showTickLabel: boolean;
showDomain: boolean;
stroke: string;
strokeWidth: number;
strokeOpacity: number;
tickPadding: number;
tickLabelFill: string;
ticks: number;
tickStroke: string;
tickStrokeOpacity: number;
yZoomWidth: number;
zoomEnabled: boolean;
zoomCursorClassName: string;
};
static contextTypes: {
yAxisZoom: PropTypes.Validator<(...args: any[]) => any>;
chartId: PropTypes.Validator<string | number>;
chartConfig: PropTypes.Validator<object>;
};
render(): JSX.Element;
private readonly axisZoomCallback;
private readonly helper;
private readonly getYScale;
}
export {};