Class 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
    • Constructor Detail

      • Jitter

        public Jitter()
    • 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.