UNPKG

react-lightweight-charts-simple

Version:

A simple react wrapper for lightweight-charts library

10 lines (9 loc) 322 B
/** * Get the `lightweight-charts` chart api object and the container `<div />` referrence. * * ❗Only use inside `<Chart />`. * * @returns object.chart: `IChartApi` * @returns object.containerRef: `React.Ref<HTMLDivElement>` */ export declare function useChart(): import("../context").ChartContextValue;