Class LinearTicks
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Numberprotected Numberprotected Numberprotected Numberprotected Numberprotected Numberprotected NumberFields inherited from class software.xdev.chartjs.model.options.ticks.Ticks
autoSkip, autoSkipPadding, callback, display, fontColor, fontFamily, fontSize, fontStyle, labelOffset, maxRotation, minRotation, mirror, padding -
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(Number fixedStepSize) User defined fixed step size for the scale.User defined maximum number for the scale, overrides maximum value from data.setMaxTicksLimit(Number maxTicksLimit) Maximum number of ticks and gridlines to show.User defined minimum number for the scale, overrides minimum value from data.setStepSize(Number stepSize) if defined, it can be used along with the min and the max to give a custom number of steps.setSuggestedMax(Number suggestedMax) User defined maximum number for the scale, overrides maximum value except for if it is lower than the maximum value.setSuggestedMin(Number 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, setAutoSkip, setAutoSkipPadding, setCallback, setDisplay, setFontColor, setFontFamily, setFontSize, setFontStyle, setLabelOffset, setMaxRotation, setMinRotation, setMirror, setPadding
-
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
User defined minimum number for the scale, overrides minimum value from data.
Default
- -
getMax
- 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
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
-
-