-
public class DateTime extends ScatterBase
The DateTime class contains methods for configuring DateTime scale.Note: To create instance use dateTime method.
-
-
Method Summary
Modifier and Type Method Description static DateTimeinstantiate()StringgetJsBase()voidalignMaximum()Getter for a flag if the maximum should be aligned by major ticks interval. DateTimealignMaximum(Boolean enabled)Getter for a flag if the maximum should be aligned by major ticks interval. voidalignMinimum()Setter for a flag if the minimum should be aligned by major ticks interval. DateTimealignMinimum(Boolean enabled)Setter for a flag if the minimum should be aligned by major ticks interval. DateTimeextendDataRange(String var_args)Extends the current input domain with the passed values (if such don't exist in the domain). voidfinishAutoCalc(Boolean silently)Informs the scale that an auto-range calculation started for the chart in past was ended. voidgetType()Returns scale type. voidinverseTransform(Number ratio)Returns tick by its position ratio. voidinverted()Getter for the scale inversion. DateTimeinverted(Boolean enabled)Setter for scale inversion. voidmaximum()Getter for the scale maximum. DateTimemaximum(Number maximum)Setter for the scale maximum. voidmaximumGap()Getter for the scale maximum gap. DateTimemaximumGap(Number gap)Setter for the scale maximum gap. voidminimum()Getter for the scale minimum. DateTimeminimum(Number minimum)Setter for the scale minimum. voidminimumGap()Getter for the scale minimum gap. DateTimeminimumGap(Number gap)Setter for the scale minimum gap. DateTimeTicksminorTicks()Getter for the set of scale ticks in terms of data values. DateTimeminorTicks(String settings)Setter for the set of scale ticks in terms of data values. DateTimeminorTicks(Array<String> settings)Setter for the set of scale ticks in terms of data values. voidremoveAllListeners(String type)Removes all listeners from an object. voidsoftMaximum()Getter for the soft maximum. DateTimesoftMaximum(Number maximum)Setter for the soft maximum. voidsoftMinimum()Getter for the soft minimum. DateTimesoftMinimum(Number minimum)Setter for soft minimum. DateTimestartAutoCalc()Informs scale that an auto-range calculation started for the chart, so it should reset its data range on the first call of this method if needed. DateTimeTicksticks()Getter for set of scale ticks in terms of data values. DateTimeticks(String settings)Setter for the set of scale ticks in terms of data values. DateTimeticks(Array<String> settings)Setter for the set of scale ticks in terms of data values. voidtransform(String value)Returns tick position ratio by its name. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). voidmaxTicksCount()Getter for the maximum ticks count. DateTimemaxTicksCount(Number count)Setter for the maximum ticks count. -
Methods inherited from class com.anychart.scales.ScatterBase
alignMaximum, alignMinimum, extendDataRange, instantiate, inverted, maxTicksCount, maximum, minimum, startAutoCalc -
Methods inherited from class com.anychart.scales.Base
instantiate, inverted, startAutoCalc -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DateTime
DateTime(String jsChart)
-
-
Method Detail
-
instantiate
static DateTime instantiate()
-
alignMaximum
void alignMaximum()
Getter for a flag if the maximum should be aligned by major ticks interval.
-
alignMaximum
DateTime alignMaximum(Boolean enabled)
Getter for a flag if the maximum should be aligned by major ticks interval.
-
alignMinimum
void alignMinimum()
Setter for a flag if the minimum should be aligned by major ticks interval.
-
alignMinimum
DateTime alignMinimum(Boolean enabled)
Setter for a flag if the minimum should be aligned by major ticks interval.
-
extendDataRange
DateTime extendDataRange(String var_args)
Extends the current input domain with the passed values (if such don't exist in the domain).Note: Attention! finishAutoCalc drops all passed values.
-
finishAutoCalc
void finishAutoCalc(Boolean silently)
Informs the scale that an auto-range calculation started for the chart in past was ended.
-
getType
void getType()
Returns scale type.
-
inverseTransform
void inverseTransform(Number ratio)
Returns tick by its position ratio.Note: returns correct values only after finishAutoCalc or chart.draw().
-
inverted
void inverted()
Getter for the scale inversion.
-
inverted
DateTime inverted(Boolean enabled)
Setter for scale inversion. If the scale is inverted, axes and series go upside-down or right-to-left instead of bottom-to-top and left-to-right.
-
maximum
void maximum()
Getter for the scale maximum.
-
maximumGap
void maximumGap()
Getter for the scale maximum gap.
-
maximumGap
DateTime maximumGap(Number gap)
Setter for the scale maximum gap.
-
minimum
void minimum()
Getter for the scale minimum.
-
minimumGap
void minimumGap()
Getter for the scale minimum gap.
-
minimumGap
DateTime minimumGap(Number gap)
Setter for the scale minimum gap.
-
minorTicks
DateTimeTicks minorTicks()
Getter for the set of scale ticks in terms of data values.
-
minorTicks
DateTime minorTicks(String settings)
Setter for the set of scale ticks in terms of data values.
-
minorTicks
DateTime minorTicks(Array<String> settings)
Setter for the set of scale ticks in terms of data values.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
softMaximum
void softMaximum()
Getter for the soft maximum.
-
softMaximum
DateTime softMaximum(Number maximum)
Setter for the soft maximum.
-
softMinimum
void softMinimum()
Getter for the soft minimum.
-
softMinimum
DateTime softMinimum(Number minimum)
Setter for soft minimum.
-
startAutoCalc
DateTime startAutoCalc()
Informs scale that an auto-range calculation started for the chart, so it should reset its data range on the first call of this method if needed.
-
ticks
DateTimeTicks ticks()
Getter for set of scale ticks in terms of data values.
-
ticks
DateTime ticks(Array<String> settings)
Setter for the set of scale ticks in terms of data values.
-
transform
void transform(String value)
Returns tick position ratio by its name.Note: returns correct values only after finishAutoCalc or chart.draw().
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
maxTicksCount
void maxTicksCount()
Getter for the maximum ticks count.
-
maxTicksCount
DateTime maxTicksCount(Number count)
Setter for the maximum ticks count.
-
-
-
-