public class XYValueSeries
An extension of the XY series which adds a third dimension. It is used for XY
charts like bubble.
Constructors
public XYValueSeries(String title) | Builds a new XY value series. |
Methods
public void add(double x, double y, double value) | Adds a new value to the series. |
public void add(double x, double y) | Adds a new value to the series. |
public void remove(int index) | Removes an existing value from the series. |
public void clear() | Removes all the values from the series. |
public double getValue(int index) | Returns the value at the specified index. |
public double getMinValue() | Returns the minimum value. |
public double getMaxValue() | Returns the maximum value. |
Inherited methods
From XYSeries
getScaleNumber, getTitle, setTitle, add, getPadding, clearSeriesValues, clearAnnotations, getXYMap, getX, getY, addAnnotation, addAnnotation, removeAnnotation, getAnnotationX, getAnnotationY, getAnnotationCount, getAnnotationAt, getRange, getIndexForKey, getItemCount, getMinX, getMinY, getMaxX, getMaxY
Constructor details
XYValueSeries
public XYValueSeries(String title)Builds a new XY value series.
Parameters
titleString- the series title.
Method details
add
public void add(double x, double y, double value)Adds a new value to the series.
Parameters
xdouble- the value for the X axis
ydouble- the value for the Y axis
valuedouble- the value
add
public void add(double x, double y)Adds a new value to the series.
Parameters
xdouble- the value for the X axis
ydouble- the value for the Y axis
remove
public void remove(int index)Removes an existing value from the series.
Parameters
indexint- the index in the series of the value to remove
clear
public void clear()Removes all the values from the series.
getValue
public double getValue(int index)Returns the value at the specified index.
Parameters
indexint- the index
Returns
the value
getMinValue
public double getMinValue()Returns the minimum value.
Returns
the minimum value
getMaxValue
public double getMaxValue()Returns the maximum value.
Returns
the maximum value