File: logarithmic-interpolator.md | Updated: 11/15/2025
Search...
+ K
Auto
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples GitHub Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Docs Examples Github Contributors
Maintainers Partners Support Learn StatsBETA Discord Merch Blog GitHub Ethos Brand Guide
Documentation
Framework
React
Version
Latest
Search...
+ K
Menu
Getting Started
Adapters
API Reference
Examples
Framework
React
Version
Latest
Menu
Getting Started
Adapters
API Reference
Examples
On this page
Want to skip to the implementation? Check out these examples:
The API below described how to use the logarithmic-interpolator features.
By default, react-ranger uses linear interpolation between data points, but allows you to easily customize it to use your own interpolation functions by passing an object that implements the following interface.
tsx
interpolator: {
getPercentageForValue: (val: number, min: number, max: number): number;
getValueForClientX: (clientX: number, trackDims: object, min: number, max: number): number;
}
interpolator: {
getPercentageForValue: (val: number, min: number, max: number): number;
getValueForClientX: (clientX: number, trackDims: object, min: number, max: number): number;
}
The Interpolator to use. Defaults to the bundled linear-scale interpolator
