Class Time
java.lang.Object
software.xdev.chartjs.model.options.scales.Time
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DisplayFormats
Default-
protected Boolean
Defaultfalse
protected Time
Default-
protected Time
Default-
protected String
Default'millisecond'
protected String
Default-
protected String
Default-
protected String
Default''
protected String
Default-
protected BigDecimal
Default1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMax()
getMin()
getRound()
getUnit()
setDisplayFormats
(DisplayFormats displayFormats) See Display Formats section below.setIsoWeekday
(Boolean isoWeekday) If true and the unit is set to 'week', iso weekdays will be used.If defined, this will override the data maximumIf defined, this will override the data minimumsetMinUnit
(String minUnit) The minimum display format to be used for a time unit.If defined as a string, it is interpreted as a custom format to be used by moment to parse the date.If defined, dates will be rounded to the start of this unit.setTooltipFormat
(String tooltipFormat) The moment js format string to use for the tooltip.If defined, will force the unit to be a certain type.setUnitStepSize
(BigDecimal unitStepSize) The number of units between grid lines.
-
Field Details
-
displayFormats
Default-
- See Also:
-
isoWeekday
Defaultfalse
- See Also:
-
max
Default-
- See Also:
-
min
Default-
- See Also:
-
parser
Default-
- See Also:
-
round
Default-
- See Also:
-
tooltipFormat
Default''
- See Also:
-
unit
Default-
- See Also:
-
minUnit
Default'millisecond'
- See Also:
-
unitStepSize
Default1
- See Also:
-
-
Constructor Details
-
Time
public Time()
-
-
Method Details
-
getDisplayFormats
- See Also:
-
setDisplayFormats
See Display Formats section below. -
getIsoWeekday
- See Also:
-
setIsoWeekday
If true and the unit is set to 'week', iso weekdays will be used. -
getMax
- See Also:
-
setMax
If defined, this will override the data maximum -
getMin
- See Also:
-
setMin
If defined, this will override the data minimum -
getParser
- See Also:
-
setParser
If defined as a string, it is interpreted as a custom format to be used by moment to parse the date. If this is a function, it must return a moment.js object given the appropriate data value. -
getRound
- See Also:
-
setRound
If defined, dates will be rounded to the start of this unit. See Time Units below for the allowed units. -
getTooltipFormat
- See Also:
-
setTooltipFormat
The moment js format string to use for the tooltip. -
getUnit
- See Also:
-
setUnit
If defined, will force the unit to be a certain type. See Time Units section below for details. -
getMinUnit
- See Also:
-
setMinUnit
The minimum display format to be used for a time unit. -
getUnitStepSize
- See Also:
-
setUnitStepSize
The number of units between grid lines.
-