Skip to main content

ResolvedChartRuntimeDependencies

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/charts/core/renderChartRuntimeDependencies / ResolvedChartRuntimeDependencies

Interface: ResolvedChartRuntimeDependencies

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:24

Late-bound chart render dependencies resolved for a single render pass.

Properties​

addChartHoverEffectsSafe​

readonly addChartHoverEffectsSafe: (chartContainer: HTMLElement | null | undefined, themeConfig: ChartHoverThemeConfig | null | undefined) => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:25

Add interactive hover, fullscreen, and ripple affordances to chart canvases.

Parameters​

chartContainer​

HTMLElement | null | undefined

themeConfig​

ChartHoverThemeConfig | null | undefined

Returns​

void


addHoverEffectsToExistingChartsSafe​

readonly addHoverEffectsToExistingChartsSafe: () => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:26

Apply hover effects to the active chart container using the current app theme.

Returns​

void


convert​

readonly convert: FieldConverter

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:27


createChartCanvasSafe​

readonly createChartCanvasSafe: (field: string, index: number, runtime: CreateChartCanvasRuntime) => HTMLCanvasElement

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:28

Create the canvas element used by Chart.js renderers.

Parameters​

field​

string

Data field name for the chart.

index​

number

Index of the chart instance.

runtime?​

CreateChartCanvasRuntime = ...

Returns​

HTMLCanvasElement

Configured canvas element for the chart.


createEnhancedChartSafe​

readonly createEnhancedChartSafe: (canvas: HTMLCanvasElement, options: CreateEnhancedChartOptions) => object | null

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:29

Creates a Chart.js chart with FitFileViewer display settings.

Parameters​

canvas​

HTMLCanvasElement

options​

CreateEnhancedChartOptions

Returns​

object | null


removeChartHoverEffectsSafe​

readonly removeChartHoverEffectsSafe: (chartContainer: HTMLElement | null | undefined) => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:30

Remove hover-effect wrappers from a chart container and restore canvas styles.

Parameters​

chartContainer​

HTMLElement | null | undefined

Returns​

void


renderEventMessagesChartSafe​

readonly renderEventMessagesChartSafe: (container: HTMLElement, options: EventMessagesChartOptions, startTime: number | Date) => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:31

Renders a scatter chart showing event-message timestamps.

Parameters​

container​

HTMLElement

Parent element to append the chart canvas into.

options?​

EventMessagesChartOptions = {}

Chart display options.

startTime​

number | Date

Activity start time used to normalize event timestamps.

Returns​

void


renderGPSTimeChartSafe​

readonly renderGPSTimeChartSafe: (container: HTMLElement, data: readonly unknown[], options: GPSTimeChartOptions) => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:32

Renders GPS latitude and longitude over elapsed activity time.

Parameters​

container​

HTMLElement

data​

readonly unknown[]

options​

GPSTimeChartOptions

Returns​

void


renderGPSTrackChartSafe​

readonly renderGPSTrackChartSafe: (container: HTMLElement | null | undefined, data: readonly unknown[], options: GPSTrackOptions) => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:33

Render a scatter chart showing GPS track coordinates.

Parameters​

container​

HTMLElement | null | undefined

data​

readonly unknown[]

options​

GPSTrackOptions

Returns​

void


renderLapZoneChartsSafe​

readonly renderLapZoneChartsSafe: (container: HTMLElement | null | undefined, options: LapZoneChartsOptions | null) => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:34

Render lap-specific stacked and individual zone charts when lap zone data is available.

Parameters​

container​

HTMLElement | null | undefined

Target chart container.

options?​

LapZoneChartsOptions | null

Optional visibility and chart settings.

Returns​

void


renderPerformanceAnalysisChartsSafe​

readonly renderPerformanceAnalysisChartsSafe: (container: HTMLElement, data: PerformanceAnalysisDatum[], labels: (string | number)[], options: PerformanceAnalysisOptions) => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:35

Render performance analysis charts.

Parameters​

container​

HTMLElement

data​

PerformanceAnalysisDatum[]

labels​

(string | number)[]

options​

PerformanceAnalysisOptions

Returns​

void


renderTimeInZoneChartsSafe​

readonly renderTimeInZoneChartsSafe: (container: HTMLElement | null | undefined, options: TimeInZoneChartOptions) => void

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:36

Render HR / Power time-in-zone charts into a container.

Parameters​

container​

HTMLElement | null | undefined

options?​

TimeInZoneChartOptions = {}

Returns​

void


showRenderNotificationSafe​

readonly showRenderNotificationSafe: (currentChartCount: number, currentVisibleFields: number, runtime: ShowRenderNotificationRuntime) => boolean

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:37

Determines whether a chart-render notification should be shown for the current render pass.

Parameters​

currentChartCount​

number

Number of charts currently rendered.

currentVisibleFields​

number

Number of visible fields.

runtime?​

ShowRenderNotificationRuntime = ...

Returns​

boolean

Whether to show a render notification.


themeConfig​

readonly themeConfig: unknown

Defined in: utils/charts/core/renderChartRuntimeDependencies.ts:38