Class Dial
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.Dial
- All Implemented Interfaces:
Serializable
Options for the dial or arrow pointer of the gauge.
In
styled mode, the dial is styled with the
.highcharts-gauge-series .highcharts-dial rule.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBackgroundColor(Color backgroundColor) The background or fill color of the gauge's dial.voidsetBaseLength(String baseLength) The length of the dial's base part, relative to the total radius or length of the dial.voidsetBaseWidth(Number baseWidth) The pixel width of the base of the gauge dial.voidsetBorderColor(Color borderColor) The border color or stroke of the gauge's dial.voidsetBorderWidth(Number borderWidth) The width of the gauge dial border in pixels.voidThe radius or length of the dial, in percentages relative to the radius of the gauge itself.voidsetRearLength(String rearLength) The length of the dial's rear end, the part that extends out on the other side of the pivot.voidsetTopWidth(Number topWidth) The width of the top of the dial, closest to the perimeter.
-
Constructor Details
-
Dial
public Dial()
-
-
Method Details
-
getBackgroundColor
- See Also:
-
setBackgroundColor
The background or fill color of the gauge's dial.Defaults to: #000000
-
getBaseLength
- See Also:
-
setBaseLength
The length of the dial's base part, relative to the total radius or length of the dial.Defaults to: 70%
-
getBaseWidth
- See Also:
-
setBaseWidth
The pixel width of the base of the gauge dial. The base is the part closest to the pivot, defined by baseLength.Defaults to: 3
-
getBorderColor
- See Also:
-
setBorderColor
The border color or stroke of the gauge's dial. By default, the borderWidth is 0, so this must be set in addition to a custom border color.Defaults to: #cccccc
-
getBorderWidth
- See Also:
-
setBorderWidth
The width of the gauge dial border in pixels.Defaults to: 0
-
getRadius
- See Also:
-
setRadius
The radius or length of the dial, in percentages relative to the radius of the gauge itself.Defaults to: 80%
-
getRearLength
- See Also:
-
setRearLength
The length of the dial's rear end, the part that extends out on the other side of the pivot. Relative to the dial's length.Defaults to: 10%
-
getTopWidth
- See Also:
-
setTopWidth
The width of the top of the dial, closest to the perimeter. The pivot narrows in from the base to the top.Defaults to: 1
-