UNPKG

financial-chart-made-simple

Version:

The package that allows you to build responsive financial charts styled your way. The chart functionality is similar to that on coinmarketcap.io.

47 lines (46 loc) 1.2 kB
/// <reference types="react" /> import "chartjs-adapter-date-fns"; export declare type ChartProps = { colors?: { above?: string; below?: string; barChart?: string; tooltip?: string; tooltipDate?: string; tooltipTime?: string; tooltipData?: string; xLabel?: string; yLabel?: string; openLabel?: string; minChartLine?: string; minChartBackground?: string; slide?: string; }; font?: string; dataset: { Date: string; Open: number; High?: number; Low?: number; Close?: number; "Adj Close"?: number; Volume: number; }[]; currency?: string; }; export declare const defaultColors: { above: string; below: string; barChart: string; tooltip: string; tooltipDate: string; tooltipTime: string; tooltipData: string; xLabel: string; yLabel: string; openLabel: string; minChartLine: string; minChartBackground: string; slide: string; }; export declare const Chart: ({ colors, font, dataset, currency, }: ChartProps) => JSX.Element;