-
-
Method Summary
Modifier and Type Method Description static Ordinalinstantiate()StringgetJsBase()OrdinalextendDataRange(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 name by its ratio position. voidinverted()Getter for the scale inversion. Ordinalinverted(Boolean enabled)Setter for scale inversion. voidnames()Getter for scale ticks names. Ordinalnames(Array<String> names)Setter for scale ticks names. Ordinalnames(String names)Setter for scale ticks names. voidremoveAllListeners(String type)Removes all listeners from an object. OrdinalstartAutoCalc()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. OrdinalTicksticks()Getter for set of scale ticks in terms of data values. Ordinalticks(String ticks)Setter for set of scale ticks in terms of data values. Ordinalticks(Array<String> ticks)Setter for set of scale ticks in terms of data values. voidtransform(String value, Number subRangeRatio)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(). Ordinalvalues(Array<String> values)voidweights()Getter for scale weights. Ordinalweights(Array<Number> weights)Setter for scale weights. Ordinalvalues(String values)-
-
Constructor Detail
-
Ordinal
Ordinal(String jsChart)
-
-
Method Detail
-
instantiate
static Ordinal instantiate()
-
extendDataRange
Ordinal 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 name by its ratio position. Note: returns correct values only after finishAutoCalc or chart.draw().
-
inverted
void inverted()
Getter for the scale inversion.
-
inverted
Ordinal 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.
-
names
void names()
Getter for scale ticks names.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
startAutoCalc
Ordinal 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
OrdinalTicks ticks()
Getter for set of scale ticks in terms of data values.
-
transform
void transform(String value, Number subRangeRatio)
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().
-
weights
void weights()
Getter for scale weights.
-
-
-
-