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