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