Skip to main content

getChartSpecificZoneColors

FitFileViewer - API Documentation v29.4.0


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

Function: getChartSpecificZoneColors()

getChartSpecificZoneColors(chartField: string, zoneCount: number): string[]

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

Gets an array of colors for all zones of a specific chart type

Parameters​

chartField​

string

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

zoneCount​

number

Number of zones

Returns​

string[]

Array of hex color codes