public class GaugePlotOptions extends BaseGaugePlotOptions<GaugePlotOptions>
BaseChart.setGaugePlotOptions(GaugePlotOptions) )} method or directly on a
series via the Series.setPlotOptions(PlotOptions) method.
Note that these options are only needed if you want to specifically control the general options
for all gauge type series in the entire chart. If you instead want to control the options for all
series in the chart (not just those of a gauge type), then you can use the SeriesPlotOptions
class instead. Or, if you want to control the plot options for just one series (and not all gauge type
series in the chart), use the Series.setPlotOptions(PlotOptions) method.PlotOptions.Cursor, PlotOptions.PointPlacement, PlotOptions.Stacking| Constructor and Description |
|---|
GaugePlotOptions() |
| Modifier and Type | Method and Description |
|---|---|
GaugePlotOptions |
setDialOptions(Dial dial)
Convenience method for setting the "dial" option for gauge charts.
|
GaugePlotOptions |
setPivotOptions(Pivot pivot)
Convenience method for setting the "pivot" option for gauge charts.
|
GaugePlotOptions |
setWrap(boolean wrap)
Convenience method for setting the "wrap" option for gauge charts.
|
setOvershoot, setWrapgetDataLabels, setAllowPointSelect, setAnimation, setAnimation, setBaseDataLabels, setColor, setColor, setCropThreshold, setCursor, setDashStyle, setDataGrouping, setDataLabels, setEnableMouseTracking, setHoverStateEnabled, setHoverStateLineWidth, setHoverStateMarker, setId, setLegendIndex, setLineWidth, setLinkedTo, setLinkedTo, setMarker, setNegativeColor, setNegativeColor, setPointInterval, setPointPlacement, setPointStart, setSelected, setShadow, setShowCheckbox, setShowInLegend, setStacking, setStickyTracking, setThreshold, setTurboThreshold, setVisible, setZIndex, setZoneAxis, setZonesgetOptions, setOptionpublic GaugePlotOptions setDialOptions(Dial dial)
gaugePlotOptions.setOption("wrap", false)
chart.setGaugePlotOptions(new GaugePlotOptions()
.setPivotOptions(new Dial()
.setRadius(10)
.setBorderWidth(1)
)
);
dial - An instance of the Dial class which can be used to set the various dial options for the gauge.GaugePlotOptions for convenient method chaining.public GaugePlotOptions setPivotOptions(Pivot pivot)
gaugePlotOptions.setOption("/pivot/radius", "50%");
Sample usage:
chart.setGaugePlotOptions(new GaugePlotOptions()
.setDialOptions(new Dial()
.setRadius("50%")
.setBaseWidth(10)
)
);
pivot - An instance of the Pivot class which can be used to set various options pivot options for the gauge.GaugePlotOptions for convenient method chaining.public GaugePlotOptions setWrap(boolean wrap)
gaugePlotOptions.setOption("wrap", false)
When this option is true, the dial will wrap around the axes.
For instance, in a full-range gauge going from 0 to 360, a value of 400 will point to 40.
When wrap is false, the dial stops at 360. Defaults to truewrap - Whether the dial will wrap around its maximum value.GaugePlotOptions for convenient method chaining.Copyright © 2015. All Rights Reserved.