@nova-ui/dashboards
Version:
Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and
14 lines (13 loc) • 819 B
TypeScript
import { ITimeframe } from "@nova-ui/bits";
import { ITimeseriesWidgetData } from "../../types";
/**
* Use this function to apply endpoints on status data returned by a data source so that when the status
* chart is zoomed (filtered), each status visualization is ensured to have valid start and end values
*
* @param timeframeFilter The timeframe used for filtering the data
* @param filteredSeriesData The series data after the filter is applied
* @param originalSeriesData The superset of series data with no filter applied
*
* @returns The filtered data including start and end data points applied to each series
*/
export declare function applyStatusEndpoints(timeframeFilter: ITimeframe, filteredSeriesData: ITimeseriesWidgetData[], originalSeriesData: ITimeseriesWidgetData[]): ITimeseriesWidgetData[];