OptionalformatterFormatter giving full control on how numbers are formatted.
OptionalhoverA 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.
Optionali18nOptionaloutA callback called from the profile when the mouse leaves the profile.
OptionalpoiExtractor for parsing POI data.
OptionalscaleAllows 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).