Skip to main content

getZoneColors

FitFileViewer - API Documentation v29.4.0


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

Function: getZoneColors()

getZoneColors(zoneType: string, zoneCount: number): string[]

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

Gets an array of colors for all zones of a given type

Parameters​

zoneType​

string

"hr" or "power"

zoneCount​

number

Number of zones

Returns​

string[]

Array of hex color codes