public class PlotOptionsGauge extends GaugeOptions
highcharts-more.js
Constructor and Description |
---|
PlotOptionsGauge() |
Modifier and Type | Method and Description |
---|---|
void |
addKey(String key)
Adds key to the keys array
|
Boolean |
getAnimation() |
Number |
getAnimationLimit() |
ChartType |
getChartType() |
String |
getClassName() |
Number |
getColorIndex() |
Cursor |
getCursor() |
DataLabels |
getDataLabels() |
String |
getDescription() |
Dial |
getDial() |
Boolean |
getEnableMouseTracking() |
Boolean |
getExposeElementToA11y() |
Dimension |
getFindNearestPointBy() |
Boolean |
getGetExtremesFromAll() |
String[] |
getKeys() |
String |
getLinkedTo() |
Number |
getOvershoot() |
Pivot |
getPivot() |
String |
getPointDescriptionFormatter() |
Boolean |
getSelected() |
Boolean |
getShowCheckbox() |
Boolean |
getShowInLegend() |
Boolean |
getSkipKeyboardNavigation() |
Boolean |
getStickyTracking() |
Number |
getThreshold() |
SeriesTooltip |
getTooltip() |
Boolean |
getVisible() |
Boolean |
getWrap() |
boolean |
isNegativeColor() |
void |
removeKey(String key)
Removes first occurrence of key in keys array
|
void |
setAnimation(Boolean animation)
Enable or disable the initial animation when a series is displayed.
|
void |
setAnimationLimit(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.
|
void |
setClassName(String className)
A class name to apply to the series' graphical elements.
|
void |
setColorIndex(Number colorIndex)
Styled mode only.
|
void |
setCursor(Cursor cursor)
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.
|
void |
setDataLabels(DataLabels dataLabels)
Data labels for the gauge.
|
void |
setDescription(String description)
Requires Accessibility module
|
void |
setDial(Dial dial)
Options for the dial or arrow pointer of the gauge.
|
void |
setEnableMouseTracking(Boolean enableMouseTracking)
Enable or disable the mouse tracking for a specific series.
|
void |
setExposeElementToA11y(Boolean exposeElementToA11y)
By default, series are exposed to screen readers as regions.
|
void |
setFindNearestPointBy(Dimension findNearestPointBy)
Determines whether the series should look for the nearest point in both
dimensions or just the x-dimension when hovering the series.
|
void |
setGetExtremesFromAll(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.
|
void |
setKeys(String... keys)
An array specifying which option maps to which key in the data point
array.
|
void |
setLinkedTo(String linkedTo)
The id of another series to link to.
|
void |
setNegativeColor(boolean negativeColor)
Enable or disable the color for parts of the graph that are bellow
getThreshold() . |
void |
setOvershoot(Number overshoot)
Allow the dial to overshoot the end of the perimeter axis by this many
degrees.
|
void |
setPivot(Pivot pivot)
Options for the pivot or the center point of the gauge.
|
void |
setPointDescriptionFormatter(String _fn_pointDescriptionFormatter) |
void |
setSelected(Boolean selected)
Whether to select the series initially.
|
void |
setShowCheckbox(Boolean showCheckbox)
If true, a checkbox is displayed next to the legend item to allow
selecting the series.
|
void |
setShowInLegend(Boolean showInLegend)
Whether to display this particular series or series type in the legend.
|
void |
setSkipKeyboardNavigation(Boolean skipKeyboardNavigation)
If set to
True , the accessibility module will skip past the
points in this series for keyboard navigation. |
void |
setStickyTracking(Boolean stickyTracking)
Sticky tracking of mouse events.
|
void |
setThreshold(Number threshold)
The threshold, also called zero level or base level.
|
void |
setTooltip(SeriesTooltip tooltip)
A configuration object for the tooltip rendering of each single series.
|
void |
setVisible(Boolean visible)
Set the initial visibility of the series.
|
void |
setWrap(Boolean wrap)
When this option is
true , the dial will wrap around the
axes. |
public ChartType getChartType()
getChartType
in class AbstractPlotOptions
public Boolean getAnimation()
getAnimation
in class GaugeOptions
setAnimation(Boolean)
public void setAnimation(Boolean animation)
ChartModel.setAnimation(Boolean)
setAnimation
in class GaugeOptions
public Number getAnimationLimit()
setAnimationLimit(Number)
public void setAnimationLimit(Number animationLimit)
animationLimit
to Infinity
.public String getClassName()
setClassName(String)
public void setClassName(String className)
public Number getColorIndex()
setColorIndex(Number)
public void setColorIndex(Number colorIndex)
highcharts-color-{n}
.public Cursor getCursor()
getCursor
in class GaugeOptions
setCursor(Cursor)
public void setCursor(Cursor cursor)
setCursor
in class GaugeOptions
public DataLabels getDataLabels()
getDataLabels
in class GaugeOptions
setDataLabels(DataLabels)
public void setDataLabels(DataLabels dataLabels)
setDataLabels
in class GaugeOptions
public String getDescription()
setDescription(String)
public void setDescription(String description)
Requires Accessibility module
A description of the series to add to the screen reader information about the series.
Defaults to: undefined
public Dial getDial()
setDial(Dial)
public void setDial(Dial dial)
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.
public Boolean getEnableMouseTracking()
getEnableMouseTracking
in class GaugeOptions
setEnableMouseTracking(Boolean)
public void setEnableMouseTracking(Boolean enableMouseTracking)
Defaults to: true
setEnableMouseTracking
in class GaugeOptions
public Boolean getExposeElementToA11y()
setExposeElementToA11y(Boolean)
public void setExposeElementToA11y(Boolean exposeElementToA11y)
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
public Dimension getFindNearestPointBy()
setFindNearestPointBy(Dimension)
public void setFindNearestPointBy(Dimension findNearestPointBy)
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.
public Boolean getGetExtremesFromAll()
getGetExtremesFromAll
in class GaugeOptions
setGetExtremesFromAll(Boolean)
public void setGetExtremesFromAll(Boolean getExtremesFromAll)
Defaults to: false
setGetExtremesFromAll
in class GaugeOptions
public String[] getKeys()
getKeys
in class GaugeOptions
setKeys(String...)
public void setKeys(String... keys)
setKeys
in class GaugeOptions
public void addKey(String key)
addKey
in class GaugeOptions
key
- to addsetKeys(String...)
public void removeKey(String key)
removeKey
in class GaugeOptions
key
- to removesetKeys(String...)
public String getLinkedTo()
setLinkedTo(String)
public void setLinkedTo(String linkedTo)
public boolean isNegativeColor()
setNegativeColor(boolean)
public void setNegativeColor(boolean negativeColor)
getThreshold()
. A negative color is applied by setting this
option to true
combined with the
.highcharts-negative
class name.public Number getOvershoot()
getOvershoot
in class GaugeOptions
setOvershoot(Number)
public void setOvershoot(Number overshoot)
Defaults to: 0
setOvershoot
in class GaugeOptions
public Pivot getPivot()
setPivot(Pivot)
public void setPivot(Pivot pivot)
Options for the pivot or the center point of the gauge.
In styled mode, the pivot is styled with the
.highcharts-gauge-series .highcharts-pivot
rule.
public String getPointDescriptionFormatter()
public void setPointDescriptionFormatter(String _fn_pointDescriptionFormatter)
public Boolean getSelected()
getSelected
in class GaugeOptions
setSelected(Boolean)
public void setSelected(Boolean selected)
showCheckbox
is
true, the checkbox next to the series name will be checked for a selected
series.
Defaults to: false
setSelected
in class GaugeOptions
public Boolean getShowCheckbox()
getShowCheckbox
in class GaugeOptions
setShowCheckbox(Boolean)
public void setShowCheckbox(Boolean showCheckbox)
selected
option.
Defaults to: false
setShowCheckbox
in class GaugeOptions
public Boolean getShowInLegend()
getShowInLegend
in class GaugeOptions
setShowInLegend(Boolean)
public void setShowInLegend(Boolean showInLegend)
setShowInLegend
in class GaugeOptions
public Boolean getSkipKeyboardNavigation()
setSkipKeyboardNavigation(Boolean)
public void setSkipKeyboardNavigation(Boolean skipKeyboardNavigation)
True
, the accessibility module will skip past the
points in this series for keyboard navigation.public Boolean getStickyTracking()
getStickyTracking
in class GaugeOptions
setStickyTracking(Boolean)
public void setStickyTracking(Boolean stickyTracking)
mouseOut
event on a series isn't triggered until the mouse moves over another
series, or out of the plot area. When false, the mouseOut
event on a series is triggered when the mouse leaves the area around the
series' graph or markers. This also implies the tooltip. When
stickyTracking
is false and tooltip.shared
is
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
setStickyTracking
in class GaugeOptions
public Number getThreshold()
setThreshold(Number)
public void setThreshold(Number threshold)
Defaults to: 0
public SeriesTooltip getTooltip()
getTooltip
in class GaugeOptions
setTooltip(SeriesTooltip)
public void setTooltip(SeriesTooltip tooltip)
setTooltip
in class GaugeOptions
public Boolean getVisible()
getVisible
in class GaugeOptions
setVisible(Boolean)
public void setVisible(Boolean visible)
Defaults to: true
setVisible
in class GaugeOptions
public Boolean getWrap()
getWrap
in class GaugeOptions
setWrap(Boolean)
public void setWrap(Boolean wrap)
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: true
setWrap
in class GaugeOptions
Copyright © 2023. All rights reserved.