DataPoint Class
Contains custom appearance settings of an individual data point in a standard chart series.
Declaration
public class DataPoint extends ChartElement
Remarks
A IDataPointDictionary object stores DataPoint objects by zero-based data point index. Call the getCustomDataPoints() method of a series (for example, BubbleSeries.getCustomDataPoints()) to access the dictionary.
DataPoint.setFill(value), DataPoint.setOutlineStyle(value), and DataPoint.setEffects(value) methods specify the fill, outline, and shape effects of the data point. The following DataPoint methods specify settings that apply to specific series types:
- setExplosion(int value) - pie and doughnut series.
- setInvertNegative(boolean value) - bar and bubble series.
- setDisplayBubblesAs3D(boolean value) - bubble series.
- setMarker(Marker value) - line, radar, and scatter series.
Refer to the following help topic for additional information: Create Standard Charts — Presentation API for Java.
Inherited Members
Inheritance
DataPoint()
Initializes a new instance of the DataPoint class.
Declaration
public DataPoint()
Methods
deepClone() Method
Returns a deep copy of this DataPoint instance.
Declaration
public DataPoint deepClone()
Returns
| Type | Description |
|---|---|
DataPoint |
A deep copy of this |
getDisplayBubblesAs3D() Method
Returns whether the data point bubble has a 3D effect.
Declaration
public boolean getDisplayBubblesAs3D()
Returns
| Type | Description |
|---|---|
| boolean |
|
getExplosion() Method
Returns the distance between the pie slice of the data point and the chart center.
Declaration
public int getExplosion()
Returns
| Type | Description |
|---|---|
| int | The distance between the slice tip and the chart center as a percentage of the chart radius. |
getInvertNegative() Method
Returns whether the data point inverts the fill color if the point value is negative.
Declaration
public boolean getInvertNegative()
Returns
| Type | Description |
|---|---|
| boolean |
|
getMarker() Method
Returns marker settings of the data point.
Declaration
public Marker getMarker()
Returns
| Type | Description |
|---|---|
| Marker | Marker settings of the data point. |
setDisplayBubblesAs3D(boolean value) Method
Sets whether to display the data point bubble with a 3D effect.
Declaration
public void setDisplayBubblesAs3D(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
The setDisplayBubblesAs3D(value) method applies to data points in bubble series.
For a new DataPoint object, the API uses false.
setExplosion(int value) Method
Sets the distance between the pie slice of the data point and the chart center.
Declaration
public void setExplosion(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | The distance between the slice tip and the chart center as a percentage of the chart radius. |
Remarks
The setExplosion(value) method applies to data points in pie and doughnut series. For example, if you call the setExplosion(50) method, the API moves the slice tip away from the chart center by half of the chart radius.
For a new DataPoint object, the API uses 0 (the slice tip is in the chart center).
setInvertNegative(boolean value) Method
Sets whether the data point inverts the fill color if the point value is negative.
Declaration
public void setInvertNegative(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
The setInvertNegative(value) method applies to data points in bar and bubble series.
For a new DataPoint object, the API uses false.
setMarker(Marker value) Method
Sets marker settings of the data point.
Declaration
public void setMarker(Marker value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Marker | Marker settings of the data point. |
Remarks
The setMarker(value) method applies to data points in line, radar, and scatter series.
For a new DataPoint object, the getMarker() method returns a Marker object with default settings.