Skip to main content

getChartSpecificZoneColor

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/data/zones/chartZoneColorUtils / getChartSpecificZoneColor

Function: getChartSpecificZoneColor()

getChartSpecificZoneColor(chartField: string, zoneIndex: number): string

Defined in: utils/data/zones/chartZoneColorUtils.js:144

Gets the saved color for a specific zone and chart type or returns default

Parameters​

chartField​

string

Full chart field name (e.g., "hr_zone_doughnut", "power_lap_zone_stacked")

zoneIndex​

number

0-based zone index

Returns​

string

Hex color code