@allurereport/plugin-dashboard
Version:
Allure Dashboard Plugin – plugin for generating dashboard with a mix of charts
10 lines (9 loc) • 593 B
TypeScript
import type { Statistic } from "@allurereport/core-api";
import type { PieArcDatum } from "d3-shape";
import { type PieChartData, type PieChartOptions, type PieSlice } from "../model.js";
type BasePieSlice = Pick<PieSlice, "status" | "count">;
export declare const d3Arc: import("d3-shape").Arc<any, PieArcDatum<BasePieSlice>>;
export declare const d3Pie: import("d3-shape").Pie<any, BasePieSlice>;
export declare const getPercentage: (value: number, total: number) => number;
export declare const getPieChartData: (stats: Statistic, chartOptions: PieChartOptions) => PieChartData;
export {};