Class LinearTicks
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Boolean
protected BigDecimal
protected BigDecimal
protected BigDecimal
protected BigDecimal
protected BigDecimal
protected BigDecimal
protected BigDecimal
Fields inherited from class software.xdev.chartjs.model.options.ticks.Ticks
autoSkip, autoSkipPadding, callback, display, fontColor, fontFamily, fontSize, fontStyle, labelOffset, maxRotation, minRotation, mirror, padding, reverse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMax()
getMin()
setBeginAtZero
(Boolean beginAtZero) if true, scale will inclulde 0 if it is not already included.setFixedStepSize
(BigDecimal fixedStepSize) User defined fixed step size for the scale.setMax
(int max) setMax
(BigDecimal max) User defined maximum number for the scale, overrides maximum value from data.setMaxTicksLimit
(BigDecimal maxTicksLimit) Maximum number of ticks and gridlines to show.setMin
(int min) setMin
(BigDecimal min) User defined minimum number for the scale, overrides minimum value from data.setStepSize
(double stepSize) setStepSize
(int stepSize) setStepSize
(BigDecimal stepSize) if defined, it can be used along with the min and the max to give a custom number of steps.setSuggestedMax
(BigDecimal suggestedMax) User defined maximum number for the scale, overrides maximum value except for if it is lower than the maximum value.setSuggestedMin
(BigDecimal suggestedMin) User defined minimum number for the scale, overrides minimum value except for if it is higher than the minimum value.Methods inherited from class software.xdev.chartjs.model.options.ticks.Ticks
getAutoSkip, getAutoSkipPadding, getCallback, getDisplay, getFontColor, getFontFamily, getFontSize, getFontStyle, getLabelOffset, getMaxRotation, getMinRotation, getMirror, getPadding, getReverse, setAutoSkip, setAutoSkipPadding, setCallback, setDisplay, setFontColor, setFontFamily, setFontSize, setFontStyle, setLabelOffset, setMaxRotation, setMinRotation, setMirror, setPadding, setReverse
-
Field Details
-
beginAtZero
-
min
-
max
-
maxTicksLimit
-
fixedStepSize
-
stepSize
-
suggestedMax
-
suggestedMin
-
-
Constructor Details
-
LinearTicks
public LinearTicks()
-
-
Method Details
-
getBeginAtZero
-
setBeginAtZero
if true, scale will inclulde 0 if it is not already included.
Default
-
-
getMin
- See Also:
-
setMin
- See Also:
-
setMin
User defined minimum number for the scale, overrides minimum value from data.
Default
-
-
getMax
- See Also:
-
setMax
- See Also:
-
setMax
User defined maximum number for the scale, overrides maximum value from data.
Default
-
-
getMaxTicksLimit
- See Also:
-
setMaxTicksLimit
Maximum number of ticks and gridlines to show. If not defined, it will limit to 11 ticks but will show all gridlines.
Default
11
-
getFixedStepSize
- See Also:
-
setFixedStepSize
User defined fixed step size for the scale. If set, the scale ticks will be enumerated by multiple of stepSize, having one tick per increment. If not set, the ticks are labeled automatically using the nice numbers algorithm.
Default
-
-
getStepSize
- See Also:
-
setStepSize
- See Also:
-
setStepSize
- See Also:
-
setStepSize
if defined, it can be used along with the min and the max to give a custom number of steps. See the example below.
Default
-
-
getSuggestedMax
- See Also:
-
setSuggestedMax
User defined maximum number for the scale, overrides maximum value except for if it is lower than the maximum value.
Default
-
-
getSuggestedMin
- See Also:
-
setSuggestedMin
User defined minimum number for the scale, overrides minimum value except for if it is higher than the minimum value.
Default
-
-