@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
49 lines (48 loc) • 2.29 kB
TypeScript
import { ChangeDetectorRef, OnInit } from "@angular/core";
import { EventBus, IconService, IDataSource, IEvent } from "@nova-ui/bits";
import { IAccessors, IChartAssistSeries, Renderer, SparkChartAssist, StatusAccessors } from "@nova-ui/charts";
import { TimeseriesScalesService } from "../../timeseries-scales.service";
import { ITimeseriesWidgetStatusData, TimeseriesChartTypes, TimeseriesWidgetZoomPlugin } from "../../types";
import { TimeseriesChartComponent } from "../timeseries-chart.component";
export declare class StatusBarChartComponent extends TimeseriesChartComponent<ITimeseriesWidgetStatusData> implements OnInit {
private iconService;
timeseriesScalesService: TimeseriesScalesService;
changeDetector: ChangeDetectorRef;
protected eventBus: EventBus<IEvent>;
static lateLoadKey: string;
chartAssist: SparkChartAssist;
collectionId: string;
protected accessors: StatusAccessors;
protected renderer: Renderer<IAccessors>;
private chartUpdate$;
zoomPlugins: TimeseriesWidgetZoomPlugin[];
timeseriesChartTypes: typeof TimeseriesChartTypes;
summaryLegendBcgColor: string;
summaryLegendColor: string;
constructor(iconService: IconService, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef, eventBus: EventBus<IEvent>);
ngOnInit(): void;
getDataPointData(series: IChartAssistSeries<IAccessors>, key: string): any;
protected buildChart(): void;
protected updateChartData(): void;
/**
* Transforms standard timeseries x/y data so that it can be understood by a status chart
*
* @param data The data to transform
* @param isIntervalProgression Whether the data should be treated as continuous or occurring at a regular interval
*
* @returns The transformed data
*/
protected transformData(data: ITimeseriesWidgetStatusData[], isIntervalProgression: boolean): IStatusData[];
private setGridConfigFromConfiguration;
displayDeleteButton(): boolean;
isStatusChart(): boolean;
getDescriptionSecondary(series: IChartAssistSeries<IAccessors>, index: number): string;
}
interface IStatusData {
start: Date;
end: Date;
thick?: boolean;
color?: string;
icon?: string;
}
export {};