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
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBorderDash
(Integer borderDash) addPointBackgroundColor
(Object pointBackgroundColor) addPointBorderColor
(Object pointBorderColor) addPointBorderWidth
(Integer pointBorderWidth) addPointHitRadius
(Integer pointHitRadius) addPointHoverBackgroundColor
(Object pointHoverBackgroundColor) addPointHoverBorderColor
(Object pointHoverBorderColor) addPointHoverBorderWidth
(Integer pointHoverBorderWidth) addPointHoverRadius
(Integer pointHoverRadius) addPointRadius
(Integer pointRadius) addPointStyle
(PointStyle pointStyle) getFill()
getLabel()
setBackgroundColor
(Object backgroundColor) The fill color under the line.setBorderCapStyle
(BorderCapStyle borderCapStyle) Default line cap style.setBorderColor
(Object borderColor) The color of the line.setBorderDash
(List<Integer> borderDash) Default line dash.setBorderDashOffset
(Float borderDashOffset) Default line dash offset.setBorderJoinStyle
(BorderJoinStyle borderJoinStyle) Default line join style.setBorderWidth
(Integer borderWidth) The width of the line in pixelsIf true, fill the area under the lineThe label for the dataset which appears in the legend and tooltipssetLineTension
(Float lineTension) Bezier curve tension of the line.setPointBackgroundColor
(List<Object> pointBackgroundColor) The fill color for pointssetPointBorderColor
(List<Object> pointBorderColor) The border color for points.setPointBorderWidth
(List<Integer> pointBorderWidth) The width of the point border in pixelssetPointHitRadius
(List<Integer> pointHitRadius) The pixel size of the non-displayed point that reacts to mouse eventssetPointHoverBackgroundColor
(List<Object> pointHoverBackgroundColor) Point background color when hoveredsetPointHoverBorderColor
(List<Object> pointHoverBorderColor) Point border color when hoveredsetPointHoverBorderWidth
(List<Integer> pointHoverBorderWidth) Border width of point when hoveredsetPointHoverRadius
(List<Integer> pointHoverRadius) The radius of the point when hoveredsetPointRadius
(List<Integer> pointRadius) The radius of the point shape.setPointStyle
(List<PointStyle> pointStyle) The style of point.Methods inherited from class software.xdev.chartjs.model.dataset.Dataset
addData, addDataUnchecked, clearData, defaultType, getData, getData, getType, self, setData, setData, setDataUnchecked, setDataUnchecked, setType, withDefaultType
-
Constructor Details
-
PointDataset
public PointDataset()
-
-
Method Details
-
getLabel
-
setLabel
The label for the dataset which appears in the legend and tooltips -
getFill
- See Also:
-
setFill
If true, fill the area under the line -
getLineTension
- See Also:
-
setLineTension
Bezier curve tension of the line. Set to 0 to draw straightlines. -
getBackgroundColor
- See Also:
-
setBackgroundColor
The fill color under the line. -
getBorderWidth
- See Also:
-
setBorderWidth
The width of the line in pixels -
getBorderColor
- See Also:
-
setBorderColor
The color of the line. -
getBorderCapStyle
- See Also:
-
setBorderCapStyle
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
- See Also:
-
addBorderDash
- See Also:
-
setBorderDash
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
- See Also:
-
setBorderDashOffset
Default line dash offset. A float specifying the amount of the offset. Initially 0.0. -
getBorderJoinStyle
- See Also:
-
setBorderJoinStyle
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
- See Also:
-
addPointBorderColor
- See Also:
-
setPointBorderColor
The border color for points. -
getPointBackgroundColor
- See Also:
-
addPointBackgroundColor
- See Also:
-
setPointBackgroundColor
The fill color for points -
getPointBorderWidth
- See Also:
-
addPointBorderWidth
- See Also:
-
setPointBorderWidth
The width of the point border in pixels -
getPointRadius
- See Also:
-
addPointRadius
- See Also:
-
setPointRadius
The radius of the point shape. If set to 0, nothing is rendered. -
getPointHoverRadius
- See Also:
-
addPointHoverRadius
- See Also:
-
setPointHoverRadius
The radius of the point when hovered -
getPointHitRadius
- See Also:
-
addPointHitRadius
- See Also:
-
setPointHitRadius
The pixel size of the non-displayed point that reacts to mouse events -
getPointHoverBackgroundColor
- See Also:
-
addPointHoverBackgroundColor
- See Also:
-
setPointHoverBackgroundColor
Point background color when hovered -
getPointHoverBorderColor
- See Also:
-
addPointHoverBorderColor
- See Also:
-
setPointHoverBorderColor
Point border color when hovered -
getPointHoverBorderWidth
- See Also:
-
addPointHoverBorderWidth
- See Also:
-
setPointHoverBorderWidth
Border width of point when hovered -
getPointStyle
- See Also:
-
addPointStyle
- See Also:
-
setPointStyle
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.
-