UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

70 lines (69 loc) 1.4 kB
declare const chartConfig: ChartOptionsType; type ChartTooltipType = { backgroundColor: string; bodyColor: string; titleFont: { size: number; }; bodyFont: { size: number; }; titleColor: string; displayColors: false; borderWidth: number; borderColor: string; cornerRadius: number; padding: number; footerFont: { weight: string; }; animation: { duration: number; }; }; export type ChartOptionsType = { responsive: boolean; maintainAspectRatio: boolean; animation: { duration: number; }; hover: { animationDuration: number; }; plugins: { legend: { position: string; }; tooltip: ChartTooltipType; }; indexAxis?: string; cutout?: string; scales?: ChartScalesType; }; type ChartScalesType = { y?: ChartScaleAxis; x?: ChartScaleAxis; }; type ChartScaleAxis = { stacked?: boolean; position?: string; type?: string; min?: number; offset?: boolean; labels?: Array<string | number>; grid?: { display: boolean; drawBorder: boolean; }; title?: { display: boolean; text: string; }; ticks?: { fontSize?: number; padding?: number; maxRotation?: number; stepSize?: number; }; }; export default chartConfig;