Class PlotOptionsSolidgauge
- All Implemented Interfaces:
Serializable
yAxis, which is
extended with some color options, minColor,
maxColor and stops,
to control the color of the gauge itself.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds key to the keys arraygetClip()getCrisp()String[]getKeys()getWrap()voidRemoves first occurrence of key in keys arrayvoidsetAnimation(Boolean animation) Enable or disable the initial animation when a series is displayed.voidsetAnimationLimit(Number animationLimit) For some series, there is a limit that shuts down initial animation by default when the total number of points in the chart is too high.voidsetClassName(String className) A class name to apply to the series' graphical elements.voidDisable this option to allow series rendering in the whole plotting area.voidsetColorByPoint(Boolean colorByPoint) Whether to give each point an individual color.voidsetColorIndex(Number colorIndex) Styled mode only.voidWhen true, each point or column edge is rounded to its nearest pixel in order to render sharp on screen.voidYou can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.voidsetDataLabels(DataLabels dataLabels) Data labels for the gauge.voidsetDescription(String description) Requires Accessibility modulevoidsetEnableMouseTracking(Boolean enableMouseTracking) Enable or disable the mouse tracking for a specific series.voidsetExposeElementToA11y(Boolean exposeElementToA11y) By default, series are exposed to screen readers as regions.voidsetFindNearestPointBy(Dimension findNearestPointBy) Determines whether the series should look for the nearest point in both dimensions or just the x-dimension when hovering the series.voidsetGetExtremesFromAll(Boolean getExtremesFromAll) Whether to use the Y extremes of the total chart width or only the zoomed area when zooming in on parts of the X axis.voidAn array specifying which option maps to which key in the data point array.voidsetLinecap(String linecap) Whether the strokes of the solid gauge should beroundorsquare.voidsetOpacity(Number opacity) Opacity of a series parts: line, fill (e.g.voidsetOvershoot(Number overshoot) Allow the dial to overshoot the end of the perimeter axis by this many degrees.voidsetPointDescriptionFormatter(String _fn_pointDescriptionFormatter) voidsetRounded(Boolean rounded) Wether to draw rounded edges on the gauge.voidsetSelected(Boolean selected) Whether to select the series initially.voidsetShowCheckbox(Boolean showCheckbox) If true, a checkbox is displayed next to the legend item to allow selecting the series.voidsetShowInLegend(Boolean showInLegend) Whether to display this particular series or series type in the legend.voidsetSkipKeyboardNavigation(Boolean skipKeyboardNavigation) If set toTrue, the accessibility module will skip past the points in this series for keyboard navigation.voidsetStickyTracking(Boolean stickyTracking) Sticky tracking of mouse events.voidsetThreshold(Number threshold) The threshold or base level for the gauge.voidsetTooltip(SeriesTooltip tooltip) A configuration object for the tooltip rendering of each single series.voidsetVisible(Boolean visible) Set the initial visibility of the series.voidWhen this option istrue, the dial will wrap around the axes.
-
Constructor Details
-
PlotOptionsSolidgauge
public PlotOptionsSolidgauge()
-
-
Method Details
-
getChartType
- Overrides:
getChartTypein classAbstractPlotOptions
-
getAnimation
- Specified by:
getAnimationin classGaugeOptions- See Also:
-
setAnimation
Enable or disable the initial animation when a series is displayed. Please note that this option only applies to the initial animation of the series itself. For other animations, seeChartModel.setAnimation(Boolean)- Specified by:
setAnimationin classGaugeOptions
-
getAnimationLimit
- See Also:
-
setAnimationLimit
For some series, there is a limit that shuts down initial animation by default when the total number of points in the chart is too high. For example, for a column chart and its derivatives, animation doesn't run if there is more than 250 points totally. To disable this cap, setanimationLimittoInfinity. -
getClassName
- See Also:
-
setClassName
A class name to apply to the series' graphical elements. -
getClip
- Specified by:
getClipin classGaugeOptions- See Also:
-
setClip
Disable this option to allow series rendering in the whole plotting area. Note that clipping should be always enabled when chart.zoomType is setDefaults to
true.- Specified by:
setClipin classGaugeOptions
-
getColorByPoint
- See Also:
-
setColorByPoint
Whether to give each point an individual color.Defaults to
true. -
getColorIndex
- See Also:
-
setColorIndex
Styled mode only. A specific color index to use for the series, so its graphic representations are given the class namehighcharts-color-{n}. -
getCrisp
- Specified by:
getCrispin classGaugeOptions- See Also:
-
setCrisp
When true, each point or column edge is rounded to its nearest pixel in order to render sharp on screen. In some cases, when there are a lot of densely packed columns, this leads to visible difference in column widths or distance between columns. In these cases, settingcrisptofalsemay look better, even though each column is rendered blurry.Defaults to
true.- Specified by:
setCrispin classGaugeOptions
-
getCursor
- Specified by:
getCursorin classGaugeOptions- See Also:
-
setCursor
You can set the cursor to "pointer" if you have click events attached to the series, to signal to the user that the points and lines can be clicked.- Specified by:
setCursorin classGaugeOptions
-
getDataLabels
- Specified by:
getDataLabelsin classGaugeOptions- See Also:
-
setDataLabels
Data labels for the gauge. For gauges, the data labels are enabled by default and shown in a bordered box below the point.- Specified by:
setDataLabelsin classGaugeOptions
-
getDescription
- See Also:
-
setDescription
Requires Accessibility module
A description of the series to add to the screen reader information about the series.
Defaults to: undefined
-
getEnableMouseTracking
- Specified by:
getEnableMouseTrackingin classGaugeOptions- See Also:
-
setEnableMouseTracking
Enable or disable the mouse tracking for a specific series. This includes point tooltips and click events on graphs and points. For large datasets it improves performance.Defaults to: true
- Specified by:
setEnableMouseTrackingin classGaugeOptions
-
getExposeElementToA11y
- See Also:
-
setExposeElementToA11y
By default, series are exposed to screen readers as regions. By enabling this option, the series element itself will be exposed in the same way as the data points. This is useful if the series is not used as a grouping entity in the chart, but you still want to attach a description to the series.
Requires the Accessibility module.
Defaults to: undefined
-
getFindNearestPointBy
- See Also:
-
setFindNearestPointBy
Determines whether the series should look for the nearest point in both dimensions or just the x-dimension when hovering the series. Defaults to
'xy'for scatter series and'x'for most other series. If the data has duplicate x-values, it is recommended to set this to'xy'to allow hovering over all points.Applies only to series types using nearest neighbor search (not direct hover) for tooltip.
-
getGetExtremesFromAll
- Specified by:
getGetExtremesFromAllin classGaugeOptions- See Also:
-
setGetExtremesFromAll
Whether to use the Y extremes of the total chart width or only the zoomed area when zooming in on parts of the X axis. By default, the Y axis adjusts to the min and max of the visible data. Cartesian series only.Defaults to: false
- Specified by:
setGetExtremesFromAllin classGaugeOptions
-
getKeys
- Specified by:
getKeysin classGaugeOptions- See Also:
-
setKeys
An array specifying which option maps to which key in the data point array. This makes it convenient to work with unstructured data arrays from different sources.- Specified by:
setKeysin classGaugeOptions
-
addKey
Adds key to the keys array- Specified by:
addKeyin classGaugeOptions- Parameters:
key- to add- See Also:
-
removeKey
Removes first occurrence of key in keys array- Specified by:
removeKeyin classGaugeOptions- Parameters:
key- to remove- See Also:
-
getOpacity
- Specified by:
getOpacityin classGaugeOptions- See Also:
-
setOpacity
Opacity of a series parts: line, fill (e.g. area) and dataLabels.Defaults to
1.- Specified by:
setOpacityin classGaugeOptions
-
getLinecap
- See Also:
-
setLinecap
Whether the strokes of the solid gauge should beroundorsquare.Defaults to: round
-
getOvershoot
- Specified by:
getOvershootin classGaugeOptions- See Also:
-
setOvershoot
Allow the dial to overshoot the end of the perimeter axis by this many degrees. Say if the gauge axis goes from 0 to 60, a value of 100, or 1000, will show 5 degrees beyond the end of the axis.Defaults to: 0
- Specified by:
setOvershootin classGaugeOptions
-
getPointDescriptionFormatter
-
setPointDescriptionFormatter
-
getRounded
- See Also:
-
setRounded
Wether to draw rounded edges on the gauge.Defaults to: false
-
getSelected
- Specified by:
getSelectedin classGaugeOptions- See Also:
-
setSelected
Whether to select the series initially. IfshowCheckboxis true, the checkbox next to the series name will be checked for a selected series.Defaults to: false
- Specified by:
setSelectedin classGaugeOptions
-
getShowCheckbox
- Specified by:
getShowCheckboxin classGaugeOptions- See Also:
-
setShowCheckbox
If true, a checkbox is displayed next to the legend item to allow selecting the series. The state of the checkbox is determined by theselectedoption.Defaults to: false
- Specified by:
setShowCheckboxin classGaugeOptions
-
getShowInLegend
- Specified by:
getShowInLegendin classGaugeOptions- See Also:
-
setShowInLegend
Whether to display this particular series or series type in the legend. Defaults to false for gauge series.- Specified by:
setShowInLegendin classGaugeOptions
-
getStickyTracking
- Specified by:
getStickyTrackingin classGaugeOptions- See Also:
-
setStickyTracking
Sticky tracking of mouse events. When true, themouseOutevent on a series isn't triggered until the mouse moves over another series, or out of the plot area. When false, themouseOutevent on a series is triggered when the mouse leaves the area around the series' graph or markers. This also implies the tooltip. WhenstickyTrackingis false andtooltip.sharedis false, the tooltip will be hidden when moving the mouse between series. Defaults to true for line and area type series, but to false for columns, pies etc.Defaults to: true
- Specified by:
setStickyTrackingin classGaugeOptions
-
getThreshold
- See Also:
-
setThreshold
The threshold or base level for the gauge.Defaults to: null
-
getTooltip
- Specified by:
getTooltipin classGaugeOptions- See Also:
-
setTooltip
A configuration object for the tooltip rendering of each single series. Properties are inherited from tooltip, but only the following properties can be defined on a series level.- Specified by:
setTooltipin classGaugeOptions
-
getVisible
- Specified by:
getVisiblein classGaugeOptions- See Also:
-
setVisible
Set the initial visibility of the series.Defaults to: true
- Specified by:
setVisiblein classGaugeOptions
-
getWrap
- Specified by:
getWrapin classGaugeOptions- See Also:
-
setWrap
When this option istrue, 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. Whenwrapisfalse, the dial stops at 360.Defaults to: true
- Specified by:
setWrapin classGaugeOptions
-