perfrunner-reporters
Version:
Home of the perfrunner reporters
19 lines (18 loc) • 717 B
TypeScript
import { AbstractChart, IViewData } from './abstract.chart';
import { IPerformanceResult } from '../types';
declare type ChartData = Record<string, any[]>;
export declare class MarksChartReporter extends AbstractChart<ChartData> {
readonly name: string;
readonly type: 'chart';
readonly title = "Performance Marks";
protected yAxesLabelCalback: (value: string | number) => string;
protected getViewData: (rawData: IPerformanceResult) => IViewData<ChartData>;
protected getDatasetEntries: (viewData: ChartData) => {
label: string;
data: number[];
borderColor: string;
backgroundColor: string;
borderWidth: number;
}[];
}
export {};