Preparing search index...
The search index is not available
LineUpJS - v4.11.0
LineUpJS
ScaleMappingFunction
Class ScaleMappingFunction
a mapping function based on a d3 scale (linear, sqrt, log)
Implements
IMappingFunction
Index
Constructors
constructor
Accessors
domain
range
scale
Type
Methods
apply
clone
eq
get
Range
invert
toJSON
Constructors
constructor
new
Scale
Mapping
Function
(
)
:
ScaleMappingFunction
Returns
ScaleMappingFunction
new
Scale
Mapping
Function
(
dump
)
:
ScaleMappingFunction
Parameters
dump
:
ITypedDump
Returns
ScaleMappingFunction
new
Scale
Mapping
Function
(
domain
,
type
,
range
)
:
ScaleMappingFunction
Parameters
domain
:
number
[]
type
:
string
range
:
number
[]
Returns
ScaleMappingFunction
Accessors
domain
get
domain
(
)
:
number
[]
Returns
number
[]
set
domain
(
domain
)
:
void
Parameters
domain
:
number
[]
Returns
void
range
get
range
(
)
:
number
[]
Returns
number
[]
set
range
(
range
)
:
void
Parameters
range
:
number
[]
Returns
void
scale
Type
get
scaleType
(
)
:
string
Returns
string
Methods
apply
apply
(
v
)
:
number
Parameters
v
:
number
Returns
number
clone
clone
(
)
:
ScaleMappingFunction
Returns
ScaleMappingFunction
eq
eq
(
other
)
:
boolean
Parameters
other
:
IMappingFunction
Returns
boolean
get
Range
get
Range
(
format
)
:
[
string
,
string
]
Parameters
format
:
(
(
v
)
=>
string
)
(
v
)
:
string
Parameters
v
:
number
Returns
string
Returns
[
string
,
string
]
invert
invert
(
r
)
:
number
Parameters
r
:
number
Returns
number
toJSON
toJSON
(
)
:
{
domain
:
number
[]
;
range
:
number
[]
;
type
:
string
;
}
Returns
{
domain
:
number
[]
;
range
:
number
[]
;
type
:
string
;
}
domain
:
number
[]
range
:
number
[]
type
:
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
constructor
domain
range
scale
Type
apply
clone
eq
get
Range
invert
toJSON
LineUpJS - v4.11.0
Loading...
a mapping function based on a d3 scale (linear, sqrt, log)