-
public class SeriesBase extends VisualBaseWithBounds
Base class for all base series. Base class defines common methods, such as those for:
- Binding series to a scale: xScale, yScale
- Base color settings: color
-
-
Constructor Summary
Constructors Constructor Description SeriesBase(String jsChart)
-
Method Summary
Modifier and Type Method Description static SeriesBaseinstantiate()StringgetJsBase()SeriesA11ya11y()Getter for the accessibility setting. SeriesBasea11y(Boolean value)Setter for the accessibility setting. SeriesBasea11y(String value)Setter for the accessibility setting. voidbottom()Getter for element bottom bound settings. SeriesBasebottom(Number bottom)Setter for element bottom bound settings. SeriesBasebottom(String bottom)Setter for element bottom bound settings. Boundsbounds()Getter for element bounds settings. SeriesBasebounds(RectObj bounds)Setter for bounds of the element using one parameter. SeriesBasebounds(Rect bounds)Setter for bounds of the element using one parameter. SeriesBasebounds(Bounds bounds)Setter for bounds of the element using one parameter. SeriesBasebounds(Number x, Number y, Number width, Number height)Setter for element bounds settings. SeriesBasebounds(Number x, Number y, Number width, String height)Setter for element bounds settings. SeriesBasebounds(Number x, Number y, String width, Number height)Setter for element bounds settings. SeriesBasebounds(Number x, Number y, String width, String height)Setter for element bounds settings. SeriesBasebounds(Number x, String y, Number width, Number height)Setter for element bounds settings. SeriesBasebounds(Number x, String y, Number width, String height)Setter for element bounds settings. SeriesBasebounds(Number x, String y, String width, Number height)Setter for element bounds settings. SeriesBasebounds(Number x, String y, String width, String height)Setter for element bounds settings. SeriesBasebounds(String x, Number y, Number width, Number height)Setter for element bounds settings. SeriesBasebounds(String x, Number y, Number width, String height)Setter for element bounds settings. SeriesBasebounds(String x, Number y, String width, Number height)Setter for element bounds settings. SeriesBasebounds(String x, Number y, String width, String height)Setter for element bounds settings. SeriesBasebounds(String x, String y, Number width, Number height)Setter for element bounds settings. SeriesBasebounds(String x, String y, Number width, String height)Setter for element bounds settings. SeriesBasebounds(String x, String y, String width, Number height)Setter for element bounds settings. SeriesBasebounds(String x, String y, String width, String height)Setter for element bounds settings. voidcolor()Getter for the series color. SeriesBasecolor(String color)Setter for the series color. LinearColorcolorScale()Getter for the color scale. SeriesBasecolorScale(LinearColor settings)Setter for the color scale. SeriesBasecolorScale(OrdinalColor settings)Setter for the color scale. SeriesBasecolorScale(String settings)Setter for the color scale. SeriesBasecolorScale(ScaleTypes settings)Setter for the color scale. Viewdata(List<DataEntry> data)voidenabled()Getter for the element state (enabled or disabled). SeriesBaseenabled(Boolean enabled)Setter for the element enabled state. RectgetPixelBounds()Returns pixel bounds of the element due to parent bounds and self bounds settings. SeriesPointgetPoint(Number index)Gets wrapped point by index. voidgetStat(Statistics key)Gets the statistics value by key. voidgetStat(String key)Gets the statistics value by key. voidheight()Getter for element height settings. SeriesBaseheight(Number height)Setter for element height setting. SeriesBaseheight(String height)Setter for element height setting. SeriesBasehover()Hovers points. SeriesBasehover(Number index)Hovers point by index. SeriesBasehover(Array<Number> indexes)Hovers points by indexes. StateSettingshovered()Getter for hovered state settings. SeriesBasehovered(String value)Setter for hovered state settings. voidid()Getter for the series id. SeriesBaseid(String id)Setter for the series id. SeriesBaseid(Number id)Setter for the series id. LabelsFactorylabels()Getter for the series data labels. SeriesBaselabels(String settings)Setter for the series data labels. SeriesBaselabels(Boolean settings)Setter for the series data labels. voidleft()Getter for element left bound settings. SeriesBaseleft(Number left)Setter for element left bound settings. SeriesBaseleft(String left)Setter for element left bound settings. LegendItemSettingslegendItem()Getter for legend item settings for series. SeriesBaselegendItem(String settings)Setter for legend item settings for series. MarkersFactorymarkers()Getter for series data markers. SeriesBasemarkers(String value)Setter for series data markers. SeriesBasemarkers(Boolean value)Setter for series data markers. voidmaxHeight()Getter for the maximum height. SeriesBasemaxHeight(Number height)Setter for the maximum height. SeriesBasemaxHeight(String height)Setter for the maximum height. voidmaxWidth()Getter for the maximum width. SeriesBasemaxWidth(Number width)Setter for the maximum width. SeriesBasemaxWidth(String width)Setter for the maximum width. voidmeta(String key)Getter for series meta data. SeriesBasemeta(String object, String value)Setter for series meta data using object. voidminHeight()Getter for the minimum height. SeriesBaseminHeight(Number height)Setter for the minimum height. SeriesBaseminHeight(String height)Setter for the minimum height. voidminWidth()Getter for the minimum width. SeriesBaseminWidth(Number width)Setter for the minimum width. SeriesBaseminWidth(String width)Setter for the minimum width. voidname()Getter for the series name. SeriesBasename(String name)Setter for the series name. StateSettingsnormal()Getter for normal state settings. SeriesBasenormal(String value)Setter for normal state settings. voidprint(PaperSize paperSizeOrOptions, Boolean landscape)Prints all elements on related stage. voidprint(String paperSizeOrOptions, Boolean landscape)Prints all elements on related stage. voidremoveAllListeners(String type)Removes all listeners from an object. voidright()Getter for element right bound settings. SeriesBaseright(Number right)Setter for element right bound setting. SeriesBaseright(String right)Setter for element right bound setting. SeriesBaseselect(Number index)Selects point by index. SeriesBaseselect(Array<Number> indexes)Selects point by indexes. StateSettingsselected()Getter for selected state settings. SeriesBaseselected(String value)Setter for selected state settings. voidselectionMode()Gets the state of the series for selection mode. SeriesBaseselectionMode(SelectionMode value)Allows to select points of the series. SeriesBaseselectionMode(String value)Allows to select points of the series. Tooltiptooltip()Getter for the series data tooltip. SeriesBasetooltip(String settings)Setter for the series data tooltip. SeriesBasetooltip(Boolean settings)Setter for the series data tooltip. voidtop()Getter for element top bound settings. SeriesBasetop(Number top)Setter for element top bound settings. SeriesBasetop(String top)Setter for element top bound settings. SeriesBaseunhover(Number indexOrIndexes)Removes hover from the series. SeriesBaseunhover(Array<Number> indexOrIndexes)Removes hover from the series. 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(). SeriesBaseunselect()Deselects all selected points. SeriesBaseunselect(Number index)Deselects selected point by index. SeriesBaseunselect(Array<Number> indexes)Deselects selected points by indexes. voidwidth()Getter for element width settings. SeriesBasewidth(Number width)Setter for element width setting. SeriesBasewidth(String width)Setter for element width setting. voidzIndex()Getter for the Z-index of the element. SeriesBasezIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. SeriesBasecontainer(Layer element)Setter for the container. SeriesBasecontainer(Stage element)Setter for the container. SeriesBasecontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. SeriesBaseparentBounds(Rect bounds)Setter for the parent bounds using single value. SeriesBaseparentBounds(String bounds)Setter for the parent bounds using single value. SeriesBaseparentBounds(Number bounds)Setter for the parent bounds using single value. SeriesBaseparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. Viewdata(View data)Viewdata(List<DataEntry> data, TreeFillingMethod fillMethod)Viewdata(List<DataEntry> data, String fillMethod)-
Methods inherited from class com.anychart.core.VisualBaseWithBounds
bottom, bottom, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, bounds, container, container, container, enabled, height, height, instantiate, left, left, maxHeight, maxHeight, maxWidth, maxWidth, minHeight, minHeight, minWidth, minWidth, parentBounds, parentBounds, parentBounds, parentBounds, right, right, top, top, width, width, zIndex -
Methods inherited from class com.anychart.core.VisualBase
container, container, container, enabled, instantiate, parentBounds, parentBounds, parentBounds, parentBounds, zIndex -
Methods inherited from class com.anychart.core.Base
instantiate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SeriesBase
SeriesBase(String jsChart)
-
-
Method Detail
-
instantiate
static SeriesBase instantiate()
-
a11y
SeriesA11y a11y()
Getter for the accessibility setting.
-
a11y
SeriesBase a11y(Boolean value)
Setter for the accessibility setting.
-
a11y
SeriesBase a11y(String value)
Setter for the accessibility setting.
-
bottom
void bottom()
Getter for element bottom bound settings.
-
bottom
SeriesBase bottom(Number bottom)
Setter for element bottom bound settings.
-
bottom
SeriesBase bottom(String bottom)
Setter for element bottom bound settings.
-
bounds
SeriesBase bounds(RectObj bounds)
Setter for bounds of the element using one parameter.
-
bounds
SeriesBase bounds(Rect bounds)
Setter for bounds of the element using one parameter.
-
bounds
SeriesBase bounds(Bounds bounds)
Setter for bounds of the element using one parameter.
-
bounds
SeriesBase bounds(Number x, Number y, Number width, Number height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(Number x, Number y, Number width, String height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(Number x, Number y, String width, Number height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(Number x, Number y, String width, String height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(Number x, String y, Number width, Number height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(Number x, String y, Number width, String height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(Number x, String y, String width, Number height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(Number x, String y, String width, String height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(String x, Number y, Number width, Number height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(String x, Number y, Number width, String height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(String x, Number y, String width, Number height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(String x, Number y, String width, String height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(String x, String y, Number width, Number height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(String x, String y, Number width, String height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(String x, String y, String width, Number height)
Setter for element bounds settings.
-
bounds
SeriesBase bounds(String x, String y, String width, String height)
Setter for element bounds settings.
-
color
void color()
Getter for the series color.
-
color
SeriesBase color(String color)
Setter for the series color.
-
colorScale
LinearColor colorScale()
Getter for the color scale.
-
colorScale
SeriesBase colorScale(LinearColor settings)
Setter for the color scale.
-
colorScale
SeriesBase colorScale(OrdinalColor settings)
Setter for the color scale.
-
colorScale
SeriesBase colorScale(String settings)
Setter for the color scale.
-
colorScale
SeriesBase colorScale(ScaleTypes settings)
Setter for the color scale.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
enabled
SeriesBase enabled(Boolean enabled)
Setter for the element enabled state.
-
getPixelBounds
Rect getPixelBounds()
Returns pixel bounds of the element due to parent bounds and self bounds settings.
-
getPoint
SeriesPoint getPoint(Number index)
Gets wrapped point by index.
-
getStat
void getStat(Statistics key)
Gets the statistics value by key.
-
height
void height()
Getter for element height settings.
-
height
SeriesBase height(Number height)
Setter for element height setting.
-
height
SeriesBase height(String height)
Setter for element height setting.
-
hover
SeriesBase hover()
Hovers points.
-
hover
SeriesBase hover(Number index)
Hovers point by index.
-
hover
SeriesBase hover(Array<Number> indexes)
Hovers points by indexes.
-
hovered
StateSettings hovered()
Getter for hovered state settings.
-
hovered
SeriesBase hovered(String value)
Setter for hovered state settings.
-
id
void id()
Getter for the series id.
-
id
SeriesBase id(String id)
Setter for the series id.
-
id
SeriesBase id(Number id)
Setter for the series id.
-
labels
LabelsFactory labels()
Getter for the series data labels.
-
labels
SeriesBase labels(String settings)
Setter for the series data labels.
-
labels
SeriesBase labels(Boolean settings)
Setter for the series data labels.
-
left
void left()
Getter for element left bound settings.
-
left
SeriesBase left(Number left)
Setter for element left bound settings.
-
left
SeriesBase left(String left)
Setter for element left bound settings.
-
legendItem
LegendItemSettings legendItem()
Getter for legend item settings for series.
-
legendItem
SeriesBase legendItem(String settings)
Setter for legend item settings for series.
-
markers
MarkersFactory markers()
Getter for series data markers.
-
markers
SeriesBase markers(String value)
Setter for series data markers.
-
markers
SeriesBase markers(Boolean value)
Setter for series data markers.
-
maxHeight
void maxHeight()
Getter for the maximum height.
-
maxHeight
SeriesBase maxHeight(Number height)
Setter for the maximum height.
-
maxHeight
SeriesBase maxHeight(String height)
Setter for the maximum height.
-
maxWidth
void maxWidth()
Getter for the maximum width.
-
maxWidth
SeriesBase maxWidth(Number width)
Setter for the maximum width.
-
maxWidth
SeriesBase maxWidth(String width)
Setter for the maximum width.
-
meta
SeriesBase meta(String object, String value)
Setter for series meta data using object.
-
minHeight
void minHeight()
Getter for the minimum height.
-
minHeight
SeriesBase minHeight(Number height)
Setter for the minimum height.
-
minHeight
SeriesBase minHeight(String height)
Setter for the minimum height.
-
minWidth
void minWidth()
Getter for the minimum width.
-
minWidth
SeriesBase minWidth(Number width)
Setter for the minimum width.
-
minWidth
SeriesBase minWidth(String width)
Setter for the minimum width.
-
name
void name()
Getter for the series name.
-
name
SeriesBase name(String name)
Setter for the series name.
-
normal
StateSettings normal()
Getter for normal state settings.
-
normal
SeriesBase normal(String value)
Setter for normal state settings.
-
print
void print(PaperSize paperSizeOrOptions, Boolean landscape)
Prints all elements on related stage.
-
print
void print(String paperSizeOrOptions, Boolean landscape)
Prints all elements on related stage.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
right
void right()
Getter for element right bound settings.
-
right
SeriesBase right(Number right)
Setter for element right bound setting.
-
right
SeriesBase right(String right)
Setter for element right bound setting.
-
select
SeriesBase select(Number index)
Selects point by index.
-
select
SeriesBase select(Array<Number> indexes)
Selects point by indexes.
-
selected
StateSettings selected()
Getter for selected state settings.
-
selected
SeriesBase selected(String value)
Setter for selected state settings.
-
selectionMode
void selectionMode()
Gets the state of the series for selection mode.
-
selectionMode
SeriesBase selectionMode(SelectionMode value)
Allows to select points of the series. To select multiple points, press 'ctrl' and click on them.
-
selectionMode
SeriesBase selectionMode(String value)
Allows to select points of the series. To select multiple points, press 'ctrl' and click on them.
-
tooltip
SeriesBase tooltip(String settings)
Setter for the series data tooltip.
-
tooltip
SeriesBase tooltip(Boolean settings)
Setter for the series data tooltip.
-
top
void top()
Getter for element top bound settings.
-
top
SeriesBase top(Number top)
Setter for element top bound settings.
-
top
SeriesBase top(String top)
Setter for element top bound settings.
-
unhover
SeriesBase unhover(Number indexOrIndexes)
Removes hover from the series.
-
unhover
SeriesBase unhover(Array<Number> indexOrIndexes)
Removes hover from the series.
-
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().
-
unselect
SeriesBase unselect()
Deselects all selected points.
-
unselect
SeriesBase unselect(Number index)
Deselects selected point by index.
-
unselect
SeriesBase unselect(Array<Number> indexes)
Deselects selected points by indexes.
-
width
void width()
Getter for element width settings.
-
width
SeriesBase width(Number width)
Setter for element width setting.
-
width
SeriesBase width(String width)
Setter for element width setting.
-
zIndex
void zIndex()
Getter for the Z-index of the element.
-
zIndex
SeriesBase zIndex(Number zIndex)
Setter for the Z-index of the element.
-
container
SeriesBase container(Layer element)
Setter for the container.
-
container
SeriesBase container(Stage element)
Setter for the container.
-
container
SeriesBase container(String element)
Setter for the container.
-
parentBounds
Rect parentBounds()
Getter for the parent bounds. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
SeriesBase parentBounds(Rect bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
SeriesBase parentBounds(String bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
SeriesBase parentBounds(Number bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
SeriesBase parentBounds(Number left, Number top, Number width, Number height)
Setter for the parent bounds using several values. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
data
View data(List<DataEntry> data, TreeFillingMethod fillMethod)
-
-
-
-