Skip to main content

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:

Refer to the following help topic for additional information: Create Standard Charts — Presentation API for Java.

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

See Also

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 DataPoint.

getDisplayBubblesAs3D() Method

Returns whether the data point bubble has a 3D effect.

Declaration

public boolean getDisplayBubblesAs3D()

Returns

Type Description
boolean

true if the data point bubble has a 3D effect; otherwise, false.

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

true if the data point inverts the fill color for a negative value; otherwise, false.

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

true to display the data point bubble with a 3D effect; otherwise, false.

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

true to invert the fill color for a negative value; otherwise, false.

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.