Class Scale<T extends Ticks<T>,S extends Scale<T,S>>
- Direct Known Subclasses:
BarScale
,CategoryScale
,LinearScale
,RadialLinearScale
,TimeScale
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected JavaScriptFunction
protected Boolean
protected GridLines
protected BigDecimal
protected BigDecimal
protected ScalesPosition
protected String
protected Boolean
protected BigDecimal
protected BigDecimal
protected BigDecimal
protected T
protected ScaleTitle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMax()
getMin()
getStack()
getTicks()
getTitle()
protected S
self()
setAfterBuildTicks
(JavaScriptFunction afterBuildTicks) Callback that runs after ticks are created.setAfterCalculateTickRotation
(JavaScriptFunction afterCalculateTickRotation) Callback that runs after tick rotation is determined.setAfterDataLimits
(JavaScriptFunction afterDataLimits) Callback that runs after data limits are determined.setAfterFit
(JavaScriptFunction afterFit) Callback that runs after the scale fits to the canvas.setAfterSetDimensions
(JavaScriptFunction afterSetDimensions) Callback that runs after dimensions are set.setAfterTickToLabelConversion
(JavaScriptFunction afterTickToLabelConversion) Callback that runs after ticks are converted into strings.setAfterUpdate
(JavaScriptFunction afterUpdate) Callback that runs at the end of the update process.setBeforeBuildTicks
(JavaScriptFunction beforeBuildTicks) Callback that runs before ticks are created.setBeforeCalculateTickRotation
(JavaScriptFunction beforeCalculateTickRotation) Callback that runs before tick rotation is determined.setBeforeDataLimits
(JavaScriptFunction beforeDataLimits) Callback that runs before data limits are determined.setBeforeFit
(JavaScriptFunction beforeFit) Callback that runs before the scale fits to the canvas.setBeforeSetDimensions
(JavaScriptFunction beforeSetDimensions) Callback that runs before dimensions are set.setBeforeTickToLabelConversion
(JavaScriptFunction beforeTickToLabelConversion) Callback that runs before ticks are converted into strings.setBeforeUpdate
(JavaScriptFunction beforeUpdate) Callback called before the update process starts.setDisplay
(Boolean display) If true, show the scale including gridlines, ticks, and labels.setGridLines
(GridLines gridLines) See grid line configuration section.setMax
(BigDecimal max) setMin
(BigDecimal min) setPosition
(ScalesPosition position) Position of the scale.setStacked
(Boolean stacked) If true, bars are stacked on the x-axissetStackWeight
(BigDecimal stackWeight) setSuggestedMax
(BigDecimal suggestedMax) setSuggestedMin
(BigDecimal suggestedMin) Defines options for the tick marks that are generated by the axissetTitle
(ScaleTitle title) See scale title configuration section.
-
Field Details
-
ticks
-
display
-
position
-
min
-
max
-
suggestedMin
-
suggestedMax
-
stack
-
stackWeight
-
beforeUpdate
-
beforeSetDimensions
-
afterSetDimensions
-
beforeDataLimits
-
afterDataLimits
-
beforeBuildTicks
-
afterBuildTicks
-
beforeTickToLabelConversion
-
afterTickToLabelConversion
-
beforeCalculateTickRotation
-
afterCalculateTickRotation
-
beforeFit
-
afterFit
-
afterUpdate
-
gridLines
-
title
-
stacked
-
-
Constructor Details
-
Scale
public Scale()
-
-
Method Details
-
getTicks
- See Also:
-
setTicks
Defines options for the tick marks that are generated by the axis -
getMin
-
setMin
-
getMax
-
setMax
-
getSuggestedMin
-
setSuggestedMin
-
getSuggestedMax
-
setSuggestedMax
-
getDisplay
- See Also:
-
setDisplay
If true, show the scale including gridlines, ticks, and labels. Overrides gridLines.display, scaleLabel.display, and ticks.display.
Default
true
-
getPosition
- See Also:
-
setPosition
Position of the scale. Possible values are 'top', 'left', 'bottom' and 'right'.
Default
"left"
-
getBeforeUpdate
- See Also:
-
setBeforeUpdate
Callback called before the update process starts. Passed a single argument, the scale instance.
Default
undefined
-
getBeforeSetDimensions
-
setBeforeSetDimensions
Callback that runs before dimensions are set. Passed a single argument, the scale instance.
Default
undefined
-
getAfterSetDimensions
-
setAfterSetDimensions
Callback that runs after dimensions are set. Passed a single argument, the scale instance.
Default
undefined
-
getBeforeDataLimits
- See Also:
-
setBeforeDataLimits
Callback that runs before data limits are determined. Passed a single argument, the scale instance.
Default
undefined
-
getAfterDataLimits
- See Also:
-
setAfterDataLimits
Callback that runs after data limits are determined. Passed a single argument, the scale instance.
Default
undefined
-
getBeforeBuildTicks
- See Also:
-
setBeforeBuildTicks
Callback that runs before ticks are created. Passed a single argument, the scale instance.
Default
undefined
-
getAfterBuildTicks
- See Also:
-
setAfterBuildTicks
Callback that runs after ticks are created. Useful for filtering ticks. Passed a single argument, the scale instance.
Default
undefined
-
getBeforeTickToLabelConversion
-
setBeforeTickToLabelConversion
Callback that runs before ticks are converted into strings. Passed a single argument, the scale instance.
Default
undefined
-
getAfterTickToLabelConversion
-
setAfterTickToLabelConversion
Callback that runs after ticks are converted into strings. Passed a single argument, the scale instance.
Default
undefined
-
getBeforeCalculateTickRotation
-
setBeforeCalculateTickRotation
Callback that runs before tick rotation is determined. Passed a single argument, the scale instance.
Default
undefined
-
getAfterCalculateTickRotation
-
setAfterCalculateTickRotation
Callback that runs after tick rotation is determined. Passed a single argument, the scale instance.
Default
undefined
-
getBeforeFit
- See Also:
-
setBeforeFit
Callback that runs before the scale fits to the canvas. Passed a single argument, the scale instance.
Default
undefined
-
getAfterFit
- See Also:
-
setAfterFit
Callback that runs after the scale fits to the canvas. Passed a single argument, the scale instance.
Default
undefined
-
getAfterUpdate
- See Also:
-
setAfterUpdate
Callback that runs at the end of the update process. Passed a single argument, the scale instance.
Default
undefined
-
getGridLines
- See Also:
-
setGridLines
See grid line configuration section.
Default
-
-
getTitle
- See Also:
-
setTitle
See scale title configuration section.
Default
-
getStack
-
setStack
-
getStackWeight
-
setStackWeight
-
getStacked
- See Also:
-
setStacked
If true, bars are stacked on the x-axis -
self
-