Package org.zkoss.chart.plotOptions
Class Jitter
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.Jitter
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class Jitter extends Optionable
Apply a jitter effect for the rendered markers. When plotting discrete values, a little random noise may help telling the points apart. The jitter setting applies a random displacement of up to n axis units in either direction. So for example on a horizontal X axis, setting the jitter.x to 0.24 will render the point in a random position between 0.24 units to the left and 0.24 units to the right of the true axis position. On a category axis, setting it to 0.5 will fill up the bin and make the data appear continuous. When rendered on top of a box plot or a column series, a jitter value of 0.24 will correspond to the underlying series' default groupPadding and pointPadding settings.- Since:
- 7.2.1.0
- Author:
- rudyhuang
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description Jitter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getX()
Returns the maximal X offset for the random jitter effect.Number
getY()
Returns the maximal Y offset for the random jitter effect.void
setX(Number x)
Sets the maximal X offset for the random jitter effect.void
setY(Number y)
Sets the maximal Y offset for the random jitter effect.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getX
public Number getX()
Returns the maximal X offset for the random jitter effect.Default: 0
-
setX
public void setX(Number x)
Sets the maximal X offset for the random jitter effect.
-
getY
public Number getY()
Returns the maximal Y offset for the random jitter effect.Default: 0
-
setY
public void setY(Number y)
Sets the maximal Y offset for the random jitter effect.
-
-