-
public class ScatterTicks extends Base
The ScatterTicks class contains methods for configuring ticks on the Scatter scale.
-
-
Constructor Summary
Constructors Constructor Description ScatterTicks(String jsChart)
-
Method Summary
Modifier and Type Method Description static ScatterTicksinstantiate()StringgetJsBase()voidallowFractional()Getter for the allowFractional flag. ScatterTicksallowFractional(Boolean enabled)Setter for the allowFractional flag. voidbase()Getter for ticks base value. ScatterTicksbase(Number baseValue)Setter for ticks base value. voidcount()Getter for ticks count. ScatterTickscount(Number count)Setter for ticks count value. ScatterTickscount(Number minimumCount, Number maximumCount)Setter for ticks count value using two parameters. voidget()Returns an array of ticks. voidinterval()Getter for ticks interval value. ScatterTicksinterval(Number value)Setter for ticks interval value. voidmode()Getter for the ticks mode. ScatterTicksmode(ScatterTicksMode mode)Setter for the ticks mode. ScatterTicksmode(String mode)Setter for the ticks mode. voidremoveAllListeners(String type)Removes all listeners from an object. ScatterTicksset(Array<String> ticks)Setups ticks as an explicit array of fixed ticks. 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(). -
-
Constructor Detail
-
ScatterTicks
ScatterTicks(String jsChart)
-
-
Method Detail
-
instantiate
static ScatterTicks instantiate()
-
allowFractional
void allowFractional()
Getter for the allowFractional flag.
-
allowFractional
ScatterTicks allowFractional(Boolean enabled)
Setter for the allowFractional flag. Whether to the allow fractional values in ticks.Note: When mode set to 'logarithmic', the allowFractional flag is always false.
-
base
void base()
Getter for ticks base value.
-
base
ScatterTicks base(Number baseValue)
Setter for ticks base value. Note: it is a number that is guaranteed to set a tick if the number is located between minimum and maximum values of the scale.
-
count
void count()
Getter for ticks count.
-
count
ScatterTicks count(Number count)
Setter for ticks count value. Note: Final number of ticks can be greater (one more tick can be added).
-
count
ScatterTicks count(Number minimumCount, Number maximumCount)
Setter for ticks count value using two parameters. Note: Final number of ticks can be greater than maximum (one more tick can be added).
-
get
void get()
Returns an array of ticks. Each tick is a value in terms of data, to make a tick on. Note: returns correct values only after finishAutoCalc or after chart.draw()
-
interval
void interval()
Getter for ticks interval value. Note: You can get interval value only if it was set explicitly, otherwise its returns NaN.
-
interval
ScatterTicks interval(Number value)
Setter for ticks interval value.
-
mode
void mode()
Getter for the ticks mode.
-
mode
ScatterTicks mode(ScatterTicksMode mode)
Setter for the ticks mode. Note: Use only with logarithmic scales.
-
mode
ScatterTicks mode(String mode)
Setter for the ticks mode. Note: Use only with logarithmic scales.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
set
ScatterTicks set(Array<String> ticks)
Setups ticks as an explicit array of fixed ticks.
-
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().
-
-
-
-