Optional
formatterFormatter giving full control on how numbers are formatted.
Optional
hoverA callback called from the profile when the mouse moves over a point. The point, an item of the elevation data array, is passed as the first argument of the function.
Optional
i18nOptional
outA callback called from the profile when the mouse leaves the profile.
Optional
poiExtractor for parsing POI data.
Optional
scaleAllows to modify the raw x and y scales. Notably, it is possible to modify the y domain according to XY ratio rules, add padding or enforce y lower bound.
Extract the distance from origin of a point (an item of the elevation data array).