UNPKG

perfrunner-reporters

Version:

Home of the perfrunner reporters

26 lines (25 loc) 1.06 kB
/// <reference types="chart.js" /> import { AbstractChart, IViewData } from './abstract.chart'; import { ResourceType } from '../../../utils'; import { ExtendedPerformanceEntry } from 'perfrunner-core'; import { IPerformanceResult } from '../types'; declare type ChartData = { [key in ResourceType]: number[]; }; export declare class ResourceSizeChart extends AbstractChart<ChartData> { readonly type: 'chart'; readonly name: string; readonly title: string; protected getViewData: (rawData: IPerformanceResult) => IViewData<ChartData>; protected getDatasetEntries: (viewData: ChartData) => ({ label: string; data: number[]; borderColor: string; backgroundColor: string; borderWidth: number; } | null)[]; protected filter(rawData: ExtendedPerformanceEntry[]): ExtendedPerformanceEntry[]; yAxesLabelCalback: (value: string | number) => string; tooltipLabel: () => (t: import("chart.js").ChartTooltipItem, d: import("chart.js").ChartData) => string; } export {};