Skip to main content

getChartZoneColors

FitFileViewer - API Documentation v29.4.0


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

Function: getChartZoneColors()

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

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

Gets zone colors for chart rendering based on color 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 chart use