-
public class OrdinalTicks extends Base
The OrdinalTicks class contains methods for configuring ticks on the Ordinal scale.
-
-
Constructor Summary
Constructors Constructor Description OrdinalTicks(String jsChart)
-
Method Summary
Modifier and Type Method Description static OrdinalTicksinstantiate()StringgetJsBase()voidget()Returns an array of ticks. voidinterval()Getter for ticks interval value. OrdinalTicksinterval(Number interval)Setter for ticks interval value. voidmaxCount()Getter for maximum ticks count. OrdinalTicksmaxCount(Number count)Setter for maximum ticks count. voidnames()Getter for the tick names. OrdinalTicksnames(Array<String> names)Setter for the tick names. voidremoveAllListeners(String type)Removes all listeners from an object. OrdinalTicksset(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
-
OrdinalTicks
OrdinalTicks(String jsChart)
-
-
Method Detail
-
instantiate
static OrdinalTicks instantiate()
-
get
void get()
Returns an array of ticks. Each tick can be:
- A value in terms of data, to make a tick on.
- An array of two values to make the tick from the first one to the second one.
-
interval
void interval()
Getter for ticks interval value.
-
interval
OrdinalTicks interval(Number interval)
Setter for ticks interval value. Passed value is rounded and defaults to 1 in case of incorrect settings.
-
maxCount
void maxCount()
Getter for maximum ticks count.
-
maxCount
OrdinalTicks maxCount(Number count)
Setter for maximum ticks count.
-
names
void names()
Getter for the tick names.
-
names
OrdinalTicks names(Array<String> names)
Setter for the tick names.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
set
OrdinalTicks 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().
-
-
-
-