Skip to main content

Interface: UptimeChartOptions

Defined in: shared/types/chartHybrid.ts:57

Enhanced Chart.js options that combine official types with custom business logic.

Remarksโ€‹

This type extends Chart.js official ChartOptions<TType> with our custom scale and plugin configurations for Uptime Watcher business logic while maintaining compatibility with Chart.js APIs.

Templateโ€‹

Chart type ('line' | 'bar' | 'doughnut' | etc.)

Propertiesโ€‹

animation?โ€‹

optional animation: { duration?: number; easing?: string; }

Defined in: shared/types/chartHybrid.ts:59

Animation configuration

duration?โ€‹

optional duration: number

easing?โ€‹

optional easing: string


datasets?โ€‹

optional datasets: Record<string, unknown>

Defined in: shared/types/chartHybrid.ts:64

Dataset configurations


elements?โ€‹

optional elements: Record<string, unknown>

Defined in: shared/types/chartHybrid.ts:66

Element configurations


interaction?โ€‹

optional interaction: { intersect?: boolean; mode?: string; }

Defined in: shared/types/chartHybrid.ts:68

Interaction configuration

intersect?โ€‹

optional intersect: boolean

mode?โ€‹

optional mode: string


maintainAspectRatio?โ€‹

optional maintainAspectRatio: boolean

Defined in: shared/types/chartHybrid.ts:73

Whether to maintain aspect ratio


plugins?โ€‹

optional plugins: ChartPluginsConfig

Defined in: shared/types/chartHybrid.ts:75

Enhanced plugin configuration with theme integration


responsive?โ€‹

optional responsive: boolean

Defined in: shared/types/chartHybrid.ts:77

Whether the chart is responsive


scales?โ€‹

optional scales: ChartScalesConfig

Defined in: shared/types/chartHybrid.ts:79

Enhanced scale configuration with business logic