-
public class ScatterBase extends Base
The ScatterBase class contains methods for configuring all scatter scales ({api:anychart.scales.Linear}Linear{api}, {api:anychart.scales.Logarithmic}Logarithmic{api} and {api:anychart.scales.DateTime}DateTime{api}). Doesn't declare any ticks, so different scales can declare their own.
-
-
Constructor Summary
Constructors Constructor Description ScatterBase(String jsChart)
-
Method Summary
Modifier and Type Method Description static ScatterBaseinstantiate()StringgetJsBase()voidalignMaximum()Getter for a flag if the maximum should be aligned by major ticks interval. ScatterBasealignMaximum(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. ScatterBasealignMinimum(Boolean enabled)Setter for a flag if the minimum should be aligned by major ticks interval. ScatterBaseextendDataRange(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. voidinverseTransform(Number ratio)Returns tick by its position ratio. voidinverted()Getter for the scale inversion. ScatterBaseinverted(Boolean enabled)Setter for scale inversion. voidmaxTicksCount()Getter for the maximum ticks count. ScatterBasemaxTicksCount(Number count)Setter for the maximum ticks count. voidmaximum()Getter for the scale maximum. ScatterBasemaximum(Number maximum)Setter for the scale maximum. voidminimum()Getter for the scale minimum. ScatterBaseminimum(Number minimum)Setter for the scale minimum. voidremoveAllListeners(String type)Removes all listeners from an object. ScatterBasestartAutoCalc()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. 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(). voidgetType()Returns scale type. -
-
Constructor Detail
-
ScatterBase
ScatterBase(String jsChart)
-
-
Method Detail
-
instantiate
static ScatterBase instantiate()
-
alignMaximum
void alignMaximum()
Getter for a flag if the maximum should be aligned by major ticks interval.
-
alignMaximum
ScatterBase 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
ScatterBase alignMinimum(Boolean enabled)
Setter for a flag if the minimum should be aligned by major ticks interval.
-
extendDataRange
ScatterBase 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.
-
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
ScatterBase 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.
-
maxTicksCount
void maxTicksCount()
Getter for the maximum ticks count.
-
maxTicksCount
ScatterBase maxTicksCount(Number count)
Setter for the maximum ticks count.
-
maximum
void maximum()
Getter for the scale maximum.
-
maximum
ScatterBase maximum(Number maximum)
Setter for the scale maximum.
-
minimum
void minimum()
Getter for the scale minimum.
-
minimum
ScatterBase minimum(Number minimum)
Setter for the scale minimum.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
startAutoCalc
ScatterBase 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.
-
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().
-
getType
void getType()
Returns scale type.
-
-
-
-