public class DataSeriesItem extends AbstractSeriesItem
DataSeries.| Constructor and Description |
|---|
DataSeriesItem()
Creates an empty item, without values, colors, etc.
|
DataSeriesItem(Date date,
Number y)
Deprecated.
as of 4.0. Use
DataSeriesItem(Instant, Number) |
DataSeriesItem(Date date,
Number low,
Number high)
Deprecated.
as of 4.0. Use
DataSeriesItem(Instant, Number,Number) |
DataSeriesItem(Instant instant,
Number y)
Constructs a DataSeriesItem with the given instant as X value and Y
value.
|
DataSeriesItem(Instant instant,
Number low,
Number high)
Constructs a DataSeriesItem with the given instant as X value with min
and max values for use in range visualizations.
|
DataSeriesItem(Number x,
Number y)
Constructs an item with X and Y values
|
DataSeriesItem(Number x,
Number low,
Number high)
Constructs a DataSeriesItem with the given X, min and max values for use
in range visualizations.
|
DataSeriesItem(String name,
Number y)
Constructs an item with a name and a Y value
|
DataSeriesItem(String name,
Number y,
Number colorIndex)
Constructs an item with a name and a value on the Y-axis and assigns the
specified color to the item.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCursor() |
DataLabels |
getDataLabels() |
Dial |
getDial()
Returns the current dial.
|
Number |
getHigh()
Returns the upper range for visualizations.
|
Number |
getLow()
Returns the lower range for visualizations.
|
boolean |
isCustomized()
Checks if the data can be rendered in an optimized manner.
|
boolean |
isSelected()
Checks whether or not the item is selected.
|
protected void |
makeCustomized()
Marks the item as customized, so that it can be rendered in a more
optimal way.
|
void |
setColorIndex(Number colorIndex)
A specific color index to use for the point, so its graphic representations
are given the class name highcharts-color-{n}.
|
void |
setCursor(String cursor)
Sets the
cursor CSS attribute to be shown on mouse over |
void |
setDataLabels(DataLabels dataLabels)
Set the label configuration for this item
|
void |
setDial(Dial dial)
Sets the dial or arrow pointer of the gauge.
|
void |
setHigh(Number high)
Sets the upper range for visualizations.
|
void |
setId(String id)
Sets the ID for the point.
|
void |
setLegendIndex(Number legendIndex)
Sets the sequential index of the pie slice in the legend.
|
void |
setLow(Number low)
Sets the lower range for visualizations.
|
void |
setMarker(Marker marker)
Sets the marker of this data series item
|
void |
setName(String name)
Sets the name of the data item as shown in the legend, tooltip, dataLabel
etc.
|
void |
setSelected(Boolean selected)
Sets whether the data item is selected or not.
|
void |
setSliced(boolean sliced)
Sets whether to display a slice offset from the center.
|
getClassName, getColorIndex, getId, getLegendIndex, getMarker, getName, getSliced, getX, getY, setClassName, setX, setX, setX, setYpublic DataSeriesItem()
public DataSeriesItem(String name, Number y)
name - Name of the item.y - Y-value of the item.public DataSeriesItem(String name, Number y, Number colorIndex)
name - Name of the item.y - Y-value of the item.colorIndex - Color index of the item.public DataSeriesItem(Number x, Number y)
x - X-value of the item.y - Y-value of the item.public DataSeriesItem(Instant instant, Number y)
instant - Instant of the item, as its X-value.y - Y-value of the item.@Deprecated public DataSeriesItem(Date date, Number y)
DataSeriesItem(Instant, Number)public DataSeriesItem(Instant instant, Number low, Number high)
instant - Instant of the item, as its X-value.low - Lower value for range visualization.high - Upper value for range visualization.@Deprecated public DataSeriesItem(Date date, Number low, Number high)
DataSeriesItem(Instant, Number,Number)public void setName(String name)
setName in class AbstractSeriesItemname - Name of the item.public void setSliced(boolean sliced)
setSliced in class AbstractSeriesItemsliced - When true, this item should be displayed with a small
offset from the centre of the pie chart; when false,
this item will be rendered normally.public boolean isSelected()
setSelected(Boolean)public void setSelected(Boolean selected)
selected - Whether or not the item should be selected.public void setId(String id)
setId in class AbstractSeriesItemid - New id.public void setLegendIndex(Number legendIndex)
setLegendIndex in class AbstractSeriesItemlegendIndex - Index in the legend.public void setMarker(Marker marker)
setMarker in class AbstractSeriesItemmarker - Marker of the item.public void setColorIndex(Number colorIndex)
setColorIndex in class AbstractSeriesItemcolorIndex - Color of the item.public void setDial(Dial dial)
Note This is only applicable for gauge charts.
dial - Dial to use.public Dial getDial()
setDial(Dial)public boolean isCustomized()
protected void makeCustomized()
public Number getLow()
public void setLow(Number low)
low - New lower range.public Number getHigh()
public void setHigh(Number high)
high - New upper range.public DataLabels getDataLabels()
setDataLabels(DataLabels)public void setDataLabels(DataLabels dataLabels)
dataLabels - public String getCursor()
setCursor(String)public void setCursor(String cursor)
cursor CSS attribute to be shown on mouse over
Accepts CSS cursor values like: alias, all-scroll, auto,
cell, context-menu, col-resize, copy, crosshair, default, e-resize,
ew-resize, grab, grabbing, help, move, n-resize, ne-resize, nesw-resize,
ns-resize, nw-resize, nwse-resize, no-drop, none, not-allowed, pointer,
progress, row-resize, s-resize, se-resize, sw-resize, text,
vertical-text, w-resize, wait, zoom-in, zoom-out
Note that not all browsers have support for all values.
cursor - Copyright © 2020. All rights reserved.