Preparing search index...
The search index is not available
@carbon/charts
@carbon/charts
CartesianScales
Class CartesianScales
Hierarchy (
View Summary
)
Service
CartesianScales
Index
Constructors
constructor
Properties
domain
Axis
Position
dual
Axes
model
orientation
range
Axis
Position
scales
scale
Types
secondary
Domain
Axis
Position
secondary
Range
Axis
Position
services
Methods
create
Scale
determine
Axis
Duality
determine
Orientation
extends
Domain
find
Domain
And
Range
Axes
find
Domain
And
Range
Axes
Positions
find
Horizontal
Axes
Positions
find
Vertical
Axes
Positions
get
Axis
Options
get
Bounded
Scaled
Values
get
Custom
Domain
Values
Byposition
get
Domain
Axis
Options
get
Domain
Axis
Position
get
Domain
Axis
Scale
Type
get
Domain
Identifier
get
Domain
Label
get
Domain
Lower
Bound
get
Domain
Scale
get
Domain
Value
get
Highest
Domain
Threshold
get
Highest
Range
Threshold
get
MainXAxis
Position
get
MainXScale
get
MainXScale
Type
get
MainYAxis
Position
get
MainYScale
get
MainYScale
Type
get
Orientation
get
Range
Axis
Options
get
Range
Axis
Position
get
Range
Axis
Scale
Type
get
Range
Identifier
get
Range
Label
get
Range
Scale
get
Range
Value
get
Scale
By
Position
get
Scale
Domain
get
Scale
Label
get
Scale
Type
By
Position
get
Value
From
Scale
get
Value
Through
Axis
Position
init
is
Dual
Axes
set
Model
set
Services
update
Constructors
constructor
new
CartesianScales
(
model
:
ChartModel
,
services
:
interfaces
.
Services
,
)
:
CartesianScales
Parameters
model
:
ChartModel
services
:
interfaces
.
Services
Returns
CartesianScales
Properties
Protected
domain
Axis
Position
domainAxisPosition
:
interfaces
.
AxisPositions
Protected
dual
Axes
dualAxes
:
boolean
Protected
model
model
:
ChartModel
Protected
orientation
orientation
:
interfaces
.
CartesianOrientations
Protected
range
Axis
Position
rangeAxisPosition
:
interfaces
.
AxisPositions
Protected
scales
scales
:
{
bottom
:
ScaleLinear
<
number
,
number
,
never
>
;
left
:
ScaleLinear
<
number
,
number
,
never
>
;
right
:
ScaleLinear
<
number
,
number
,
never
>
;
top
:
ScaleLinear
<
number
,
number
,
never
>
;
}
= ...
Protected
scale
Types
scaleTypes
:
{
bottom
:
interfaces
.
ScaleTypes
;
left
:
interfaces
.
ScaleTypes
;
right
:
interfaces
.
ScaleTypes
;
top
:
interfaces
.
ScaleTypes
;
}
= ...
Protected
secondary
Domain
Axis
Position
secondaryDomainAxisPosition
:
interfaces
.
AxisPositions
Protected
secondary
Range
Axis
Position
secondaryRangeAxisPosition
:
interfaces
.
AxisPositions
Protected
services
services
:
interfaces
.
Services
Methods
Protected
create
Scale
createScale
(
axisPosition
:
interfaces
.
AxisPositions
)
:
ScaleFunction
Parameters
axisPosition
:
interfaces
.
AxisPositions
Returns
ScaleFunction
determine
Axis
Duality
determineAxisDuality
()
:
void
Returns
void
determine
Orientation
determineOrientation
()
:
void
Returns
void
extends
Domain
extendsDomain
(
axisPosition
:
interfaces
.
AxisPositions
,
domain
:
any
,
)
:
number
[]
|
Date
[]
Parameters
axisPosition
:
interfaces
.
AxisPositions
domain
:
any
Returns
number
[]
|
Date
[]
find
Domain
And
Range
Axes
findDomainAndRangeAxes
()
:
void
Returns
void
Protected
find
Domain
And
Range
Axes
Positions
findDomainAndRangeAxesPositions
(
verticalAxesPositions
:
any
,
horizontalAxesPositions
:
any
,
)
:
{
primaryDomainAxisPosition
:
interfaces
.
AxisPositions
;
primaryRangeAxisPosition
:
interfaces
.
AxisPositions
;
secondaryDomainAxisPosition
:
interfaces
.
AxisPositions
;
secondaryRangeAxisPosition
:
interfaces
.
AxisPositions
;
}
Parameters
verticalAxesPositions
:
any
horizontalAxesPositions
:
any
Returns
{
primaryDomainAxisPosition
:
interfaces
.
AxisPositions
;
primaryRangeAxisPosition
:
interfaces
.
AxisPositions
;
secondaryDomainAxisPosition
:
interfaces
.
AxisPositions
;
secondaryRangeAxisPosition
:
interfaces
.
AxisPositions
;
}
Protected
find
Horizontal
Axes
Positions
findHorizontalAxesPositions
()
:
{
primary
:
interfaces
.
AxisPositions
;
secondary
:
interfaces
.
AxisPositions
;
}
Returns
{
primary
:
interfaces
.
AxisPositions
;
secondary
:
interfaces
.
AxisPositions
}
Protected
find
Vertical
Axes
Positions
findVerticalAxesPositions
()
:
{
primary
:
interfaces
.
AxisPositions
;
secondary
:
interfaces
.
AxisPositions
;
}
Returns
{
primary
:
interfaces
.
AxisPositions
;
secondary
:
interfaces
.
AxisPositions
}
get
Axis
Options
getAxisOptions
(
position
:
interfaces
.
AxisPositions
)
:
any
Parameters
position
:
interfaces
.
AxisPositions
Returns
any
get
Bounded
Scaled
Values
getBoundedScaledValues
(
datum
:
any
)
:
number
[]
Parameters
datum
:
any
Returns
number
[]
get
Custom
Domain
Values
Byposition
getCustomDomainValuesByposition
(
axisPosition
:
interfaces
.
AxisPositions
)
:
any
Parameters
axisPosition
:
interfaces
.
AxisPositions
Returns
any
get
Domain
Axis
Options
getDomainAxisOptions
()
:
any
Returns
any
get
Domain
Axis
Position
getDomainAxisPosition
(
__namedParameters
?:
{
datum
?:
any
}
,
)
:
interfaces
.
AxisPositions
Parameters
__namedParameters
:
{
datum
?:
any
}
= {}
Returns
interfaces
.
AxisPositions
get
Domain
Axis
Scale
Type
getDomainAxisScaleType
()
:
interfaces
.
ScaleTypes
Returns
interfaces
.
ScaleTypes
get
Domain
Identifier
getDomainIdentifier
(
datum
?:
any
)
:
any
Parameters
Optional
datum
:
any
Returns
any
get
Domain
Label
getDomainLabel
()
:
string
Returns
string
get
Domain
Lower
Bound
getDomainLowerBound
(
position
:
any
)
:
number
Parameters
position
:
any
Returns
number
get
Domain
Scale
getDomainScale
()
:
ScaleLinear
<
number
,
number
,
never
>
Returns
ScaleLinear
<
number
,
number
,
never
>
get
Domain
Value
getDomainValue
(
d
:
string
|
object
)
:
number
Parameters
d
:
string
|
object
Returns
number
get
Highest
Domain
Threshold
getHighestDomainThreshold
()
:
{
scaleValue
:
number
;
threshold
:
interfaces
.
ThresholdOptions
;
}
Returns
{
scaleValue
:
number
;
threshold
:
interfaces
.
ThresholdOptions
}
get
Highest
Range
Threshold
getHighestRangeThreshold
()
:
{
scaleValue
:
number
;
threshold
:
interfaces
.
ThresholdOptions
;
}
Returns
{
scaleValue
:
number
;
threshold
:
interfaces
.
ThresholdOptions
}
get
MainXAxis
Position
getMainXAxisPosition
()
:
interfaces
.
AxisPositions
Returns
interfaces
.
AxisPositions
get
MainXScale
getMainXScale
()
:
ScaleLinear
<
number
,
number
,
never
>
Returns
ScaleLinear
<
number
,
number
,
never
>
get
MainXScale
Type
getMainXScaleType
()
:
interfaces
.
ScaleTypes
Returns
interfaces
.
ScaleTypes
get
MainYAxis
Position
getMainYAxisPosition
()
:
interfaces
.
AxisPositions
Returns
interfaces
.
AxisPositions
get
MainYScale
getMainYScale
()
:
ScaleLinear
<
number
,
number
,
never
>
Returns
ScaleLinear
<
number
,
number
,
never
>
get
MainYScale
Type
getMainYScaleType
()
:
interfaces
.
ScaleTypes
Returns
interfaces
.
ScaleTypes
get
Orientation
getOrientation
()
:
interfaces
.
CartesianOrientations
Returns
interfaces
.
CartesianOrientations
get
Range
Axis
Options
getRangeAxisOptions
()
:
any
Returns
any
get
Range
Axis
Position
getRangeAxisPosition
(
__namedParameters
?:
{
datum
?:
any
;
groups
?:
any
}
,
)
:
interfaces
.
AxisPositions
Parameters
__namedParameters
:
{
datum
?:
any
;
groups
?:
any
}
= {}
Returns
interfaces
.
AxisPositions
get
Range
Axis
Scale
Type
getRangeAxisScaleType
()
:
interfaces
.
ScaleTypes
Returns
interfaces
.
ScaleTypes
get
Range
Identifier
getRangeIdentifier
(
datum
?:
any
)
:
any
Parameters
Optional
datum
:
any
Returns
any
get
Range
Label
getRangeLabel
()
:
string
Returns
string
get
Range
Scale
getRangeScale
()
:
ScaleLinear
<
number
,
number
,
never
>
Returns
ScaleLinear
<
number
,
number
,
never
>
get
Range
Value
getRangeValue
(
d
:
string
|
number
|
object
)
:
number
Parameters
d
:
string
|
number
|
object
Returns
number
get
Scale
By
Position
getScaleByPosition
(
axisPosition
:
interfaces
.
AxisPositions
,
)
:
ScaleLinear
<
number
,
number
,
never
>
Parameters
axisPosition
:
interfaces
.
AxisPositions
Returns
ScaleLinear
<
number
,
number
,
never
>
get
Scale
Domain
getScaleDomain
(
axisPosition
:
interfaces
.
AxisPositions
)
:
any
Parameters
axisPosition
:
interfaces
.
AxisPositions
Returns
any
get
Scale
Label
getScaleLabel
(
position
:
interfaces
.
AxisPositions
)
:
string
Parameters
position
:
interfaces
.
AxisPositions
Returns
string
get
Scale
Type
By
Position
getScaleTypeByPosition
(
axisPosition
:
interfaces
.
AxisPositions
,
)
:
interfaces
.
ScaleTypes
Parameters
axisPosition
:
interfaces
.
AxisPositions
Returns
interfaces
.
ScaleTypes
get
Value
From
Scale
getValueFromScale
(
scale
:
any
,
scaleType
:
interfaces
.
ScaleTypes
,
axisPosition
:
interfaces
.
AxisPositions
,
datum
:
any
,
)
:
number
Parameters
scale
:
any
scaleType
:
interfaces
.
ScaleTypes
axisPosition
:
interfaces
.
AxisPositions
datum
:
any
Returns
number
get
Value
Through
Axis
Position
getValueThroughAxisPosition
(
axisPosition
:
interfaces
.
AxisPositions
,
datum
:
any
,
)
:
number
Parameters
axisPosition
:
interfaces
.
AxisPositions
datum
:
any
Returns
number
init
init
()
:
void
Returns
void
is
Dual
Axes
isDualAxes
()
:
boolean
Returns
boolean
set
Model
setModel
(
newObj
:
ChartModel
)
:
void
Parameters
newObj
:
ChartModel
Returns
void
set
Services
setServices
(
newObj
:
interfaces
.
Services
)
:
void
Parameters
newObj
:
interfaces
.
Services
Returns
void
update
update
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
domain
Axis
Position
dual
Axes
model
orientation
range
Axis
Position
scales
scale
Types
secondary
Domain
Axis
Position
secondary
Range
Axis
Position
services
Methods
create
Scale
determine
Axis
Duality
determine
Orientation
extends
Domain
find
Domain
And
Range
Axes
find
Domain
And
Range
Axes
Positions
find
Horizontal
Axes
Positions
find
Vertical
Axes
Positions
get
Axis
Options
get
Bounded
Scaled
Values
get
Custom
Domain
Values
Byposition
get
Domain
Axis
Options
get
Domain
Axis
Position
get
Domain
Axis
Scale
Type
get
Domain
Identifier
get
Domain
Label
get
Domain
Lower
Bound
get
Domain
Scale
get
Domain
Value
get
Highest
Domain
Threshold
get
Highest
Range
Threshold
get
MainXAxis
Position
get
MainXScale
get
MainXScale
Type
get
MainYAxis
Position
get
MainYScale
get
MainYScale
Type
get
Orientation
get
Range
Axis
Options
get
Range
Axis
Position
get
Range
Axis
Scale
Type
get
Range
Identifier
get
Range
Label
get
Range
Scale
get
Range
Value
get
Scale
By
Position
get
Scale
Domain
get
Scale
Label
get
Scale
Type
By
Position
get
Value
From
Scale
get
Value
Through
Axis
Position
init
is
Dual
Axes
set
Model
set
Services
update
@carbon/charts
Loading...