Class PointDataset<T extends Dataset<T,O>,O>

java.lang.Object
software.xdev.chartjs.model.dataset.Dataset<T,O>
software.xdev.chartjs.model.dataset.PointDataset<T,O>
Direct Known Subclasses:
BaseLineDataset, RadarDataset

public abstract class PointDataset<T extends Dataset<T,O>,O> extends Dataset<T,O>
  • Constructor Details

    • PointDataset

      public PointDataset()
  • Method Details

    • getLabel

      public String getLabel()
    • setLabel

      public T setLabel(String label)
      The label for the dataset which appears in the legend and tooltips
    • getFill

      public Fill getFill()
      See Also:
    • setFill

      public T setFill(Fill<?> fill)
      If true, fill the area under the line
    • getLineTension

      public Float getLineTension()
      See Also:
    • setLineTension

      public T setLineTension(Float lineTension)
      Bezier curve tension of the line. Set to 0 to draw straightlines.
    • getBackgroundColor

      public Object getBackgroundColor()
      See Also:
    • setBackgroundColor

      public T setBackgroundColor(Object backgroundColor)
      The fill color under the line.
    • getBorderWidth

      public Integer getBorderWidth()
      See Also:
    • setBorderWidth

      public T setBorderWidth(Integer borderWidth)
      The width of the line in pixels
    • getBorderColor

      public Object getBorderColor()
      See Also:
    • setBorderColor

      public T setBorderColor(Object borderColor)
      The color of the line.
    • getBorderCapStyle

      public BorderCapStyle getBorderCapStyle()
      See Also:
    • setBorderCapStyle

      public T setBorderCapStyle(BorderCapStyle borderCapStyle)
      Default line cap style.
      • butt The ends of lines are squared off at the endpoints.
      • round The ends of lines are rounded.
      • square The ends of lines are squared off by adding a box with an equal width and half the height of the line's thickness.
    • getBorderDash

      public List<Integer> getBorderDash()
      See Also:
    • addBorderDash

      public T addBorderDash(Integer borderDash)
      See Also:
    • setBorderDash

      public T setBorderDash(List<Integer> borderDash)
      Default line dash. A list of numbers that specifies distances to alternately draw a line and a gap (in coordinate space units). If the number of elements in the array is odd, the elements of the array get copied and concatenated. For example, [5, 15, 25] will become [5, 15, 25, 5, 15, 25].
    • getBorderDashOffset

      public Float getBorderDashOffset()
      See Also:
    • setBorderDashOffset

      public T setBorderDashOffset(Float borderDashOffset)
      Default line dash offset. A float specifying the amount of the offset. Initially 0.0.
    • getBorderJoinStyle

      public BorderJoinStyle getBorderJoinStyle()
      See Also:
    • setBorderJoinStyle

      public T setBorderJoinStyle(BorderJoinStyle borderJoinStyle)

      Default line join style.

      • round Rounds off the corners of a shape by filling an additional sector of disc centered at the common endpoint of connected segments. The radius for these rounded corners is equal to the line width.
      • bevel Fills an additional triangular area between the common endpoint of connected segments, and the separate outside rectangular corners of each segment.
      • miter Connected segments are joined by extending their outside edges to connect at a single point, with the effect of filling an additional lozenge-shaped area. This setting is effected by the miterLimit property.
    • getPointBorderColor

      public List<Object> getPointBorderColor()
      See Also:
    • addPointBorderColor

      public T addPointBorderColor(Object pointBorderColor)
      See Also:
    • setPointBorderColor

      public T setPointBorderColor(List<Object> pointBorderColor)
      The border color for points.
    • getPointBackgroundColor

      public List<Object> getPointBackgroundColor()
      See Also:
    • addPointBackgroundColor

      public T addPointBackgroundColor(Object pointBackgroundColor)
      See Also:
    • setPointBackgroundColor

      public T setPointBackgroundColor(List<Object> pointBackgroundColor)
      The fill color for points
    • getPointBorderWidth

      public List<Integer> getPointBorderWidth()
      See Also:
    • addPointBorderWidth

      public T addPointBorderWidth(Integer pointBorderWidth)
      See Also:
    • setPointBorderWidth

      public T setPointBorderWidth(List<Integer> pointBorderWidth)
      The width of the point border in pixels
    • getPointRadius

      public List<Integer> getPointRadius()
      See Also:
    • addPointRadius

      public T addPointRadius(Integer pointRadius)
      See Also:
    • setPointRadius

      public T setPointRadius(List<Integer> pointRadius)
      The radius of the point shape. If set to 0, nothing is rendered.
    • getPointHoverRadius

      public List<Integer> getPointHoverRadius()
      See Also:
    • addPointHoverRadius

      public T addPointHoverRadius(Integer pointHoverRadius)
      See Also:
    • setPointHoverRadius

      public T setPointHoverRadius(List<Integer> pointHoverRadius)
      The radius of the point when hovered
    • getPointHitRadius

      public List<Integer> getPointHitRadius()
      See Also:
    • addPointHitRadius

      public T addPointHitRadius(Integer pointHitRadius)
      See Also:
    • setPointHitRadius

      public T setPointHitRadius(List<Integer> pointHitRadius)
      The pixel size of the non-displayed point that reacts to mouse events
    • getPointHoverBackgroundColor

      public List<Object> getPointHoverBackgroundColor()
      See Also:
    • addPointHoverBackgroundColor

      public T addPointHoverBackgroundColor(Object pointHoverBackgroundColor)
      See Also:
    • setPointHoverBackgroundColor

      public T setPointHoverBackgroundColor(List<Object> pointHoverBackgroundColor)
      Point background color when hovered
    • getPointHoverBorderColor

      public List<Object> getPointHoverBorderColor()
      See Also:
    • addPointHoverBorderColor

      public T addPointHoverBorderColor(Object pointHoverBorderColor)
      See Also:
    • setPointHoverBorderColor

      public T setPointHoverBorderColor(List<Object> pointHoverBorderColor)
      Point border color when hovered
    • getPointHoverBorderWidth

      public List<Integer> getPointHoverBorderWidth()
      See Also:
    • addPointHoverBorderWidth

      public T addPointHoverBorderWidth(Integer pointHoverBorderWidth)
      See Also:
    • setPointHoverBorderWidth

      public T setPointHoverBorderWidth(List<Integer> pointHoverBorderWidth)
      Border width of point when hovered
    • getPointStyle

      public List<PointStyle> getPointStyle()
      See Also:
    • addPointStyle

      public T addPointStyle(PointStyle pointStyle)
      See Also:
    • setPointStyle

      public T setPointStyle(List<PointStyle> pointStyle)
      The style of point. Options are 'circle', 'triangle', 'rect', 'rectRot', 'cross', 'crossRot', 'star', 'line', and 'dash'. If the option is an image, that image is drawn on the canvas using drawImage.