Skip to main content

getDisplayZoneColors

FitFileViewer - API Documentation v29.4.0


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

Function: getDisplayZoneColors()

getDisplayZoneColors(zoneType: string, zoneCount: number, colorScheme: string): string[]

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

Gets colors for display in the color picker UI based on the selected scheme

Parameters​

zoneType​

string

"hr" or "power"

zoneCount​

number

Number of zones

colorScheme​

string = "custom"

"classic", "vibrant", "monochrome", or "custom"

Returns​

string[]

Array of colors for UI display