public final class DataPoint extends NativeObjectContainer
Constructor and Description |
---|
DataPoint()
Creates the object with an empty native object.
|
Modifier and Type | Method and Description |
---|---|
double |
getAttribute(Key key)
Returns a custom field value from data point.
|
double |
getR()
Returns the bubble radius in pixels (not scaled).
|
Date |
getT()
Deprecated.
use
getXAsDate() instead. |
double |
getX()
Returns X value as double (for scatter and bubble datasets).
|
Date |
getXAsDate()
Returns X value as date for time series.
|
String |
getXAsString()
Returns X value as string.
|
double |
getY()
Returns Y value.
|
void |
setAttribute(Key key,
double value)
Sets a custom field to data point.
|
void |
setR(double r)
Sets the bubble radius in pixels (not scaled).
It is not scaled by the chart, it is the raw radius in pixels of the bubble that is drawn on the canvas. |
void |
setT(Date t)
Deprecated.
use
setX(Date) instead. |
void |
setX(Date x)
Sets X value as date for time series.
|
void |
setX(double x)
Sets X value as double (for scatter and bubble datasets).
|
void |
setX(String x)
Sets X value as string.
|
void |
setY(double y)
Sets Y value.
|
checkValue, empty, getArrayValue, getNativeChart, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public void setX(double x)
x
- X value as doublepublic double getX()
public void setX(Date x)
x
- X value as date for time seriespublic Date getXAsDate()
null
if is not setpublic void setX(String x)
x
- X value as stringpublic String getXAsString()
UndefinedValues.STRING
if is not setpublic void setY(double y)
y
- Y value.public double getY()
public void setR(double r)
r
- the bubble radius in pixels (not scaled).public double getR()
@Deprecated public void setT(Date t)
setX(Date)
instead.t
- T value.@Deprecated public Date getT()
getXAsDate()
instead.null
if is not set.public void setAttribute(Key key, double value)
key
- key of java script object to set.value
- value to set.public double getAttribute(Key key)
key
- key of java script object to get.UndefinedValues.DOUBLE
.