public class Dial extends BaseGaugePart<Dial>
BaseChart.setGaugePlotOptions(GaugePlotOptions) method or directly on a
series via the Series.setPlotOptions(PlotOptions) method.
Sample usage:
Chart.setGaugePlotOptions(
new GaugePlotOptions()
.setDialOptions(
new Dial()
.setBaseLength("75%")
)
);
| Constructor and Description |
|---|
Dial() |
| Modifier and Type | Method and Description |
|---|---|
Dial |
setBaseLength(String baseLength)
Convenience method for setting the "baseLength" option for a gauge's dial.
|
Dial |
setBaseWidth(Number baseWidth)
Convenience method for setting the "baseWidth" option for a gauge's dial.
|
Dial |
setRearLength(String rearLength)
Convenience method for setting the "rearLength" option for a gauge's dial.
|
Dial |
setTopWidth(Number topWidth)
Convenience method for setting the "topLength" option for a gauge's dial.
|
setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderWidth, setRadiusgetOptions, setOptionpublic Dial setBaseLength(String baseLength)
dial.setOption("baseLength", "75%");
The length of the dial's base part, relative to the total radius or length of the dial. Defaults to 70%.baseLength - The length of the base of the dial as a percentage of its radius.Dial for convenient method chaining.public Dial setBaseWidth(Number baseWidth)
dial.setOption("baseWidth", 5)
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.baseWidth - The width, in pixels, of the dial.Dial for convenient method chaining.public Dial setRearLength(String rearLength)
dial.setOption("rearLength", "15%");
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%.rearLength - The length of the rear end of the dial as a percentage of the radius.Dial for convenient method chaining.public Dial setTopWidth(Number topWidth)
dial.setOption("topLength", 2);
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.topWidth - The width, in pixels, of the tip of the dial.Dial for convenient method chaining.Copyright © 2015. All Rights Reserved.