@nova-ui/charts
Version:
Nova Charts is a library created to provide potential consumers with solutions for various data visualizations that conform with the Nova Design Language. It's designed to solve common patterns identified by UX designers, but also be very flexible so that
20 lines (19 loc) • 851 B
TypeScript
import { DomainCalculator } from "../types";
/**
* Returns automatically calculated domain for given scaleKey based on given set of chart series. It considers scales with fixed domains for limiting
* considered data set.
*
* @param {IChartSeries<IAccessors>[]} chartSeriesSet
* @param {string} scaleKey
* @param scale
* @returns {[any, any]} domain
*/
export declare const getAutomaticDomain: DomainCalculator;
/**
* Works like getAutomaticDomain, but also includes provided interval in the calculated result
*
* @param {[number , number]} interval
* @returns {(chartSeriesSet: IChartSeries<IAccessors>[], scaleId: string) => [number , number]} A domain calculator
* that includes the specified interval in its calculation
*/
export declare const getAutomaticDomainWithIncludedInterval: (interval: [number, number]) => DomainCalculator;