/****************************************************************************** * Copyright 2024 - 2025 TypeFox GmbH * This program and the accompanying materials are made available under the * terms of the MIT License, which is available in the project root. ******************************************************************************/ /** * Generates & exports an HTML radar chart report using plotly JS */ import { type EvaluatorResult, type EvaluatorResultData, type EvaluatorResultMetadata } from './evaluator.js'; /** * Generates an HTML radar chart from the provided data * @param evalResults Evaluator results to chart * @param dest Output file to write the chart to * @param rFunc polar r function, used to extract the r values from the data * @param theta theta values, i.e. the property names to use for the radar chart */ export declare function generateRadarChart(chartName: string, evalResults: EvaluatorResult[], dest: string, rFunc: (d: T, metadata: Record) => Record, preprocess?: (arr: EvaluatorResult[]) => EvaluatorResult[]): void; export declare function generateHistogram(chartName: string, evalResults: EvaluatorResult[], dest: string, dataFunc: (d: T, metadata: Record) => Record, preprocess?: (arr: EvaluatorResult[]) => EvaluatorResult[]): void; /** * Normalizes all numeric data entries in results (while also retaining non-numeric entries) */ export declare function normalizeData(data: EvaluatorResult[]): EvaluatorResult[]; /** * Generates a historical chart from the provided data, showing runners along the X, and their performance over time along the X axis */ export declare function generateHistoricalChart(chartName: string, folder: string, dest: string, dataFunc: (d: T, metadata: EvaluatorResultMetadata) => number, options?: { preprocess?: (arr: EvaluatorResult[]) => EvaluatorResult[]; filter?: (r: EvaluatorResult) => boolean; take?: number; chartType?: string; }): void; //# sourceMappingURL=chart.d.ts.map