react-sleek
Version:
React Sleek Component Library
22 lines (21 loc) • 611 B
TypeScript
import * as React from 'react';
import { IChartSerie } from '../ChartTypes';
interface IProps {
data: IChartSerie[];
width: number;
height: number;
}
interface IState {
yAxisLines: number[];
}
export default class LineChart extends React.PureComponent<IProps, IState> {
protected static defaultProps: Partial<IProps>;
constructor(props: IProps);
renderSerie(serie: IChartSerie, index: number): JSX.Element;
renderAxisLine(axisLineValue: number, index: number): JSX.Element;
render(): JSX.Element;
private getSvgX;
private getSvgY;
private drawPoint;
}
export {};