Function: createChartConfigs()
createChartConfigs(
theme:Theme,totalChecks:number):ChartConfigs
Defined in: src/services/chartConfig.ts:511
Creates a set of theme-aware Chart.js configuration objects.
Parametersโ
themeโ
Current theme object for styling charts.
totalChecksโ
number = 0
Total number of checks for doughnut percentage formatting.
Returnsโ
ChartConfigs Containing theme-aware chart options.
Remarksโ
Thin wrapper around ChartConfigService for callers that prefer a functional API. Returns memo-friendly plain objects ready to be passed to Chart.js components.
Exampleโ
const { barChartOptions, doughnutOptions, lineChartOptions } =
    createChartConfigs(theme, 100);
<Bar data={chartData} options={barChartOptions} />
<Doughnut data={statusData} options={doughnutOptions} />
<Line data={timeSeriesData} options={lineChartOptions} />
Seeโ
ChartConfigService for the class-based implementation.