react-financial-charts
Version:
React charts specific to finance.
25 lines (24 loc) • 786 B
TypeScript
/**
* Bar width is based on the amount of items in the plot data and the distance between the first and last of those
* items.
* @param props the props passed to the series.
* @param moreProps an object holding the xScale, xAccessor and plotData.
* @return {number} the bar width.
*/
export declare const plotDataLengthBarWidth: (props: {
widthRatio: number;
}, moreProps: {
xScale: any;
}) => number;
/**
* Generates a width function that calculates the bar width based on the given time interval.
* @param interval a d3-time time interval.
* @return {Function} the width function.
*/
export declare const timeIntervalBarWidth: (interval: any) => (props: {
widthRatio: number;
}, moreProps: {
xScale: any;
xAccessor: any;
plotData: any;
}) => number;