-
public class OrdinalColor extends Base
The OrdinalColor class contains methods for configuring Ordinal color scale.Note: To create instance use ordinalColor method.
-
-
Constructor Summary
Constructors Constructor Description OrdinalColor(String jsChart)
-
Method Summary
Modifier and Type Method Description static OrdinalColorinstantiate()StringgetJsBase()voidcolorToValue(String color)Returns value for passed color. voidcolors()Getter for the linear gradient for linear color scale. OrdinalColorcolors(Array<String> colors)Setter for the linear gradient for linear color scale. voidfinishAutoCalc(Boolean silently)Informs the scale that an auto-range calculation started for the chart in past was ended. voidgetIndexByValue(Number value)Returns range index relative passed value. voidgetProcessedRanges()Returns processed ranges. voidgetRangeByValue(Number value)Returns range for passed value. voidgetType()Returns scale type. voidinverseTransform(Number ratio)Returns tick value by its ratio position. voidinverted()Getter for the scale inversion. OrdinalColorinverted(Boolean enabled)Setter for the scale inversion. voidnames()Getter for scale names for data set. OrdinalColornames(Array<String> names)Setter for scale names for data set. OrdinalColornames(String names)Setter for scale names for data set. voidranges()Getter for the scale ranges. OrdinalColorranges(Array<String> ranges)Setter for the scale ranges. voidremoveAllListeners(String type)Removes all listeners from an object. OrdinalColorstartAutoCalc()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 the set of scale ticks in terms of data values. OrdinalColorticks(String ticks)Setter for the set of scale ticks in terms of data values. OrdinalColorticks(Array<String> ticks)Setter for the set of scale ticks in terms of data values. voidtransform(String value, Number subRangeRatio)Returns tick position ratio by its value. 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(). voidvalueToColor(Number value)Converts value to color. -
-
Constructor Detail
-
OrdinalColor
OrdinalColor(String jsChart)
-
-
Method Detail
-
instantiate
static OrdinalColor instantiate()
-
colorToValue
void colorToValue(String color)
Returns value for passed color. Value is a middle of its range.
-
colors
void colors()
Getter for the linear gradient for linear color scale.
-
colors
OrdinalColor colors(Array<String> colors)
Setter for the linear gradient for linear color scale.
-
finishAutoCalc
void finishAutoCalc(Boolean silently)
Informs the scale that an auto-range calculation started for the chart in past was ended.
-
getIndexByValue
void getIndexByValue(Number value)
Returns range index relative passed value.
-
getProcessedRanges
void getProcessedRanges()
Returns processed ranges.
-
getRangeByValue
void getRangeByValue(Number value)
Returns range for passed value.
-
getType
void getType()
Returns scale type.
-
inverseTransform
void inverseTransform(Number ratio)
Returns tick value by its ratio position.
-
inverted
void inverted()
Getter for the scale inversion.
-
inverted
OrdinalColor inverted(Boolean enabled)
Setter for the scale inversion.
-
names
void names()
Getter for scale names for data set.
-
names
OrdinalColor names(Array<String> names)
Setter for scale names for data set.
-
names
OrdinalColor names(String names)
Setter for scale names for data set.
-
ranges
void ranges()
Getter for the scale ranges.
-
ranges
OrdinalColor ranges(Array<String> ranges)
Setter for the scale ranges.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
startAutoCalc
OrdinalColor 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 the set of scale ticks in terms of data values.
-
ticks
OrdinalColor ticks(String ticks)
Setter for the set of scale ticks in terms of data values.
-
ticks
OrdinalColor ticks(Array<String> ticks)
Setter for the set of scale ticks in terms of data values.
-
transform
void transform(String value, Number subRangeRatio)
Returns tick position ratio by its value.
-
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().
-
valueToColor
void valueToColor(Number value)
Converts value to color. Returns color relative to passed value.
-
-
-
-