fieldLabels
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/formatting/display/formatChartFields / fieldLabels
Variable: fieldLabels
constfieldLabels: { }
Defined in: utils/formatting/display/formatChartFields.js:43
Maps FIT file field keys to human-readable chart labels. Used throughout the application to display user-friendly names for chart axes, legends, tooltips, and UI elements.
Exampleβ
import { fieldLabels } from '../formatting/display/formatChartFields';
const label = fieldLabels[fieldKey] || fieldKey;