Skip to main content

getZoneColor

FitFileViewer - API Documentation v29.4.0


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

Function: getZoneColor()

getZoneColor(zoneType: string, zoneIndex: number): string

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

Gets the saved color for a specific zone or returns default

Parameters​

zoneType​

string

"hr" or "power"

zoneIndex​

number

0-based zone index

Returns​

string

Hex color code