-
public class Logarithmic extends Linear
The Logarithmic class contains methods for configuring Logarithmic scale.Note: To create instance use log method.
-
-
Constructor Summary
Constructors Constructor Description Logarithmic(String jsChart)
-
Method Summary
Modifier and Type Method Description static Logarithmicinstantiate()StringgetJsBase()voidalignMaximum()Getter for a flag if the maximum should be aligned by major ticks interval. LogarithmicalignMaximum(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. LogarithmicalignMinimum(Boolean enabled)Setter for a flag if the minimum should be aligned by major ticks interval. LogarithmicextendDataRange(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 the tick by its position ratio. voidinverted()Getter for the scale inversion. Logarithmicinverted(Boolean enabled)Setter for scale inversion. voidlogBase()Getter for the logarithmic base value. LogarithmiclogBase(Number baseValue)Setter for the logarithmic base value. voidmaximum()Getter for the scale maximum. Logarithmicmaximum(Number maximum)Setter for the scale maximum. voidmaximumGap()Getter for the scale maximum gap. LogarithmicmaximumGap(Number gap)Setter for the scale maximum gap. voidminimum()Getter for the scale minimum. Logarithmicminimum(Number minimum)Setter for the scale minimum. voidminimumGap()Getter for the scale minimum gap. LogarithmicminimumGap(Number gap)Setter for the scale minimum gap. ScatterTicksminorTicks()Getter for set of scale minor ticks in terms of data values. LogarithmicminorTicks(String settings)Setter for set of scale minor ticks in terms of data values. LogarithmicminorTicks(Array<String> settings)Setter for set of scale minor ticks in terms of data values. voidremoveAllListeners(String type)Removes all listeners from an object. voidsoftMaximum()Getter for the soft maximum. LogarithmicsoftMaximum(Number maximum)Setter for the soft maximum. voidsoftMinimum()Getter for the soft minimum. LogarithmicsoftMinimum(Number minimum)Setter for the soft minimum. voidstackDirection()Getter for the stacking direction. LogarithmicstackDirection(ScaleStackDirection direction)Setter for the stacking direction. LogarithmicstackDirection(String direction)Setter for the stacking direction. voidstackMode()Getter for the stacked mode. LogarithmicstackMode(ScaleStackMode value)Setter for the stacked mode. LogarithmicstackMode(String value)Setter for the stacked mode. LogarithmicstartAutoCalc()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. voidstickToZero()Getter for stick to zero. LogarithmicstickToZero(Boolean enabled)Setter for stick to zero. ScatterTicksticks()Getter for set of scale ticks in terms of data values. Logarithmicticks(String settings)Setter for set of scale ticks in terms of data values. Logarithmicticks(Array<String> settings)Setter for set of scale ticks in terms of data values. voidtransform(String value)Returns the 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(). voidcompareWith()Getter for date the which should be used as a changes zero for series. LogarithmiccompareWith(ScaleCompareWithMode mode)Setter for the date which should be used as a changes zero for series. LogarithmiccompareWith(String mode)Setter for the date which should be used as a changes zero for series. LogarithmiccompareWith(Number mode)Setter for the date which should be used as a changes zero for series. voidcomparisonMode()Getter for the scale changes mode. LogarithmiccomparisonMode(ScaleComparisonMode mode)Setter for the scale changes mode. LogarithmiccomparisonMode(String mode)Setter for the scale changes mode. voidmaxTicksCount()Getter for the maximum ticks count. LogarithmicmaxTicksCount(Number count)Setter for the maximum ticks count. -
Methods inherited from class com.anychart.scales.Linear
alignMaximum, alignMinimum, compareWith, compareWith, compareWith, comparisonMode, comparisonMode, extendDataRange, instantiate, inverted, maxTicksCount, maximum, maximumGap, minimum, minimumGap, minorTicks, minorTicks, softMaximum, softMinimum, stackDirection, stackDirection, stackMode, stackMode, startAutoCalc, stickToZero, ticks, ticks -
Methods inherited from class com.anychart.scales.ScatterBase
alignMaximum, alignMinimum, extendDataRange, instantiate, inverted, maxTicksCount, maximum, minimum, startAutoCalc -
Methods inherited from class com.anychart.scales.Base
instantiate, inverted, startAutoCalc -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Logarithmic
Logarithmic(String jsChart)
-
-
Method Detail
-
instantiate
static Logarithmic instantiate()
-
alignMaximum
void alignMaximum()
Getter for a flag if the maximum should be aligned by major ticks interval.
-
alignMaximum
Logarithmic 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
Logarithmic alignMinimum(Boolean enabled)
Setter for a flag if the minimum should be aligned by major ticks interval.
-
extendDataRange
Logarithmic 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 the tick by its position ratio. Note: returns correct values only after finishAutoCalc or chart.draw().
-
inverted
void inverted()
Getter for the scale inversion.
-
inverted
Logarithmic 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.
-
logBase
void logBase()
Getter for the logarithmic base value.
-
logBase
Logarithmic logBase(Number baseValue)
Setter for the logarithmic base value.Note: Affects tick values auto calculation.
-
maximum
void maximum()
Getter for the scale maximum.
-
maximum
Logarithmic maximum(Number maximum)
Setter for the scale maximum.
-
maximumGap
void maximumGap()
Getter for the scale maximum gap.
-
maximumGap
Logarithmic maximumGap(Number gap)
Setter for the scale maximum gap.
-
minimum
void minimum()
Getter for the scale minimum.
-
minimum
Logarithmic minimum(Number minimum)
Setter for the scale minimum.
-
minimumGap
void minimumGap()
Getter for the scale minimum gap.
-
minimumGap
Logarithmic minimumGap(Number gap)
Setter for the scale minimum gap.
-
minorTicks
ScatterTicks minorTicks()
Getter for set of scale minor ticks in terms of data values.
-
minorTicks
Logarithmic minorTicks(String settings)
Setter for set of scale minor ticks in terms of data values.
-
minorTicks
Logarithmic minorTicks(Array<String> settings)
Setter for set of scale minor ticks in terms of data values.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
softMaximum
void softMaximum()
Getter for the soft maximum.
-
softMaximum
Logarithmic softMaximum(Number maximum)
Setter for the soft maximum.
-
softMinimum
void softMinimum()
Getter for the soft minimum.
-
softMinimum
Logarithmic softMinimum(Number minimum)
Setter for the soft minimum.
-
stackDirection
void stackDirection()
Getter for the stacking direction.
-
stackDirection
Logarithmic stackDirection(ScaleStackDirection direction)
Setter for the stacking direction.
-
stackDirection
Logarithmic stackDirection(String direction)
Setter for the stacking direction.
-
stackMode
void stackMode()
Getter for the stacked mode.
-
stackMode
Logarithmic stackMode(ScaleStackMode value)
Setter for the stacked mode.
-
stackMode
Logarithmic stackMode(String value)
Setter for the stacked mode.
-
startAutoCalc
Logarithmic 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.
-
stickToZero
void stickToZero()
Getter for stick to zero.
-
stickToZero
Logarithmic stickToZero(Boolean enabled)
Setter for stick to zero. Flag to stick to zero value on auto calc if gaps lead to zero crossing.
-
ticks
ScatterTicks ticks()
Getter for set of scale ticks in terms of data values.
-
ticks
Logarithmic ticks(String settings)
Setter for set of scale ticks in terms of data values.
-
ticks
Logarithmic ticks(Array<String> settings)
Setter for set of scale ticks in terms of data values.
-
transform
void transform(String value)
Returns the 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().
-
compareWith
void compareWith()
Getter for date the which should be used as a changes zero for series.
-
compareWith
Logarithmic compareWith(ScaleCompareWithMode mode)
Setter for the date which should be used as a changes zero for series.
-
compareWith
Logarithmic compareWith(String mode)
Setter for the date which should be used as a changes zero for series.
-
compareWith
Logarithmic compareWith(Number mode)
Setter for the date which should be used as a changes zero for series.
-
comparisonMode
void comparisonMode()
Getter for the scale changes mode.
-
comparisonMode
Logarithmic comparisonMode(ScaleComparisonMode mode)
Setter for the scale changes mode.
-
comparisonMode
Logarithmic comparisonMode(String mode)
Setter for the scale changes mode.
-
maxTicksCount
void maxTicksCount()
Getter for the maximum ticks count.
-
maxTicksCount
Logarithmic maxTicksCount(Number count)
Setter for the maximum ticks count.
-
-
-
-