// Type definitions for ReactNativeChartKit 2.6 // Project: https://github.com/indiespirit/react-native-chart-kit // TypeScript Version: 3.0 import * as React from "react"; // LineChart export interface LineChartProps { data: object; width: number; height: number; withDots?: boolean; withShadow?: boolean; withInnerLines?: boolean; withOuterLines?: boolean; fromZero?: boolean; yAxisLabel?: string; chartConfig: object; decorator?: Function; onDataPointClick?: Function; style?: object; bezier?: boolean; getDotColor?: (dataPoint: any, index: number) => string; horizontalLabelRotation?: number; verticalLabelRotation?: number; } export class LineChart extends React.Component {} // ProgressChart export interface ProgressChartProps { data: Array; width: number; height: number; chartConfig: object; } export class ProgressChart extends React.Component {} // BarChart export interface BarChartProps { data: object; width: number; height: number; fromZero?: boolean; yAxisLabel: string; chartConfig: object; style?: object; horizontalLabelRotation?: number; verticalLabelRotation?: number; } export class BarChart extends React.Component {} // StackedBarChart export interface StackedBarChartProps { data: object; width: number; height: number; chartConfig: object; style?: object; } export class StackedBarChart extends React.Component {} // PieChart export interface PieChartProps { data: Array; width: number; height: number; chartConfig: object; accessor: string; backgroundColor: string; paddingLeft: string; center?: Array; absolute?: boolean; hasLegend?: boolean; } export class PieChart extends React.Component {} // ContributionGraph export interface ContributionGraphProps { values: Array; endDate: Date; numDays: number; width: number; height: number; chartConfig: object; accessor?: string; } export class ContributionGraph extends React.Component< ContributionGraphProps > {} // AbstractChart export class AbstractChart extends React.Component {}