Class PlotOptionsHeatmap
- All Implemented Interfaces:
Serializable
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldallowPointSelect.Getter for the fieldanimation.Getter for the fieldanimationLimit.Getter for the fieldborderColor.Getter for the fieldborderWidth.getColor()Getter for the fieldcolor.Getter for the fieldcolorAxis.Getter for the fieldcolsize.Getter for the fieldcursor.Getter for the fielddataLabels.Getter for the fieldenableMouseTracking.getMapType.Getter for the fieldnullColor.Getter for the fieldrowsize.Getter for the fieldselected.Getter for the fieldshadow.Getter for the fieldshowCheckbox.Getter for the fieldshowInLegend.Getter for the fieldstates.Getter for the fieldstickyTracking.Getter for the fieldtooltip.Getter for the fieldvisible.Getter for the fieldzIndex.voidsetAllowPointSelect(Boolean allowPointSelect) Allow this series' points to be selected by clicking on the shapes.voidsetAnimation(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.voidsetBorderColor(Color borderColor) The border color of the map areas.voidsetBorderWidth(Number borderWidth) The border width of each map area.voidThe main color of the series.voidsetColorAxis(ColorAxis colorAxis) Set this option tofalseto prevent a series from connecting to the global color axis.voidsetColsize(Number colsize) The column size - how many X axis units each column in the heatmap should span.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) Setter for the fielddataLabels.voidsetEnableMouseTracking(Boolean enableMouseTracking) Enable or disable the mouse tracking for a specific series.voidsetNullColor(Color nullColor) The color to apply to null points.voidsetRowsize(Number rowsize) The row size - how many Y axis units each heatmap row should span.voidsetSelected(Boolean selected) Whether to select the series initially.voidWhether to apply a drop shadow to the shapes.voidsetShowCheckbox(Boolean showCheckbox) If true, and the series has a unique legend item, 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.voidA wrapper object for all the series options in specific states.voidsetStickyTracking(Boolean stickyTracking) Sticky tracking of mouse events.voidsetTooltip(SeriesTooltip tooltip) A configuration object for the tooltip rendering of each single series.voidsetVisible(Boolean visible) Set the initial visibility of the series.voidDefine the z index of the series.
-
Constructor Details
-
PlotOptionsHeatmap
public PlotOptionsHeatmap()Constructor for PlotOptionsHeatmap.
-
-
Method Details
-
getMapType
getMapType.
- Overrides:
getMapTypein classAbstractPlotOptions- Returns:
- a
MapTypeobject.
-
getAllowPointSelect
Getter for the field
allowPointSelect.- Returns:
- a
Booleanobject. - See Also:
-
setAllowPointSelect
Allow this series' points to be selected by clicking on the shapes. Selected points can be read through the Chart.getSelectedPoints() method.Defaults to: false
- Parameters:
allowPointSelect- aBooleanobject.
-
getAnimation
Getter for the field
animation.- Returns:
- a
Booleanobject. - See Also:
-
setAnimation
Enable or disable the initial animation when a series is displayed. The animation can also be set as a configuration object. Please note that this option only applies to the initial animation of the series itself. For other animations, see chart.animation and the animation parameter under the API methods. The following properties are supported:
- duration
- The duration of the animation in milliseconds.
- easing
- A string reference to an easing function set on the
Mathobject. See the easing demo.
Due to poor performance, animation is disabled in old IE browsers for map series, but enabled on mapbubble series.
Defaults to: false
- Parameters:
animation- aBooleanobject.
-
getAnimationLimit
Getter for the field
animationLimit.- Returns:
- a
Numberobject. - 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.- Parameters:
animationLimit- aNumberobject.
-
getBorderColor
Getter for the field
borderColor.- Returns:
- a
Colorobject. - See Also:
-
setBorderColor
The border color of the map areas.Defaults to: silver
- Parameters:
borderColor- aColorobject.
-
getBorderWidth
Getter for the field
borderWidth.- Returns:
- a
Numberobject. - See Also:
-
setBorderWidth
The border width of each map area.Defaults to: 1
- Parameters:
borderWidth- aNumberobject.
-
getColor
Getter for the field
color.- Returns:
- a
Colorobject. - See Also:
-
setColor
The main color of the series. In maps, this color is rarely used, as most choropleth maps use the color to denote the value of each point. The series color can however be used in a map with multiple series holding categorized data. The default value is pulled from theoptions.colorsarray.- Parameters:
color- aColorobject.
-
getColorAxis
Getter for the field
colorAxis.- Returns:
- a
ColorAxisobject. - See Also:
-
setColorAxis
Set this option tofalseto prevent a series from connecting to the global color axis. This will cause the series to have its own legend item.Defaults to: undefined
- Parameters:
colorAxis- aColorAxisobject.
-
getColsize
Getter for the field
colsize.- Returns:
- a
Numberobject. - See Also:
-
setColsize
The column size - how many X axis units each column in the heatmap should span.Defaults to: 1
- Parameters:
colsize- aNumberobject.
-
getCursor
Getter for the field
cursor.- Returns:
- a
Cursorobject. - 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.- Parameters:
cursor- aCursorobject.
-
getDataLabels
Getter for the field
dataLabels.- Returns:
- a
DataLabelsobject. - See Also:
-
setDataLabels
Setter for the field
dataLabels.- Parameters:
dataLabels- aDataLabelsobject.
-
getEnableMouseTracking
Getter for the field
enableMouseTracking.- Returns:
- a
Booleanobject. - 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
- Parameters:
enableMouseTracking- aBooleanobject.
-
getNullColor
Getter for the field
nullColor.- Returns:
- a
Colorobject. - See Also:
-
setNullColor
The color to apply to null points.Defaults to: #F8F8F8
- Parameters:
nullColor- aColorobject.
-
getRowsize
Getter for the field
rowsize.- Returns:
- a
Numberobject. - See Also:
-
setRowsize
The row size - how many Y axis units each heatmap row should span.Defaults to: 1
- Parameters:
rowsize- aNumberobject.
-
getSelected
Getter for the field
selected.- Returns:
- a
Booleanobject. - 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
- Parameters:
selected- aBooleanobject.
-
getShadow
Getter for the field
shadow.- Returns:
- a
Booleanobject. - See Also:
-
setShadow
Whether to apply a drop shadow to the shapes. The shadow can be an object configuration containingcolor,offsetX,offsetY,opacityandwidth.Defaults to: false
- Parameters:
shadow- aBooleanobject.
-
getShowCheckbox
Getter for the field
showCheckbox.- Returns:
- a
Booleanobject. - See Also:
-
setShowCheckbox
If true, and the series has a unique legend item, a checkbox is displayed next to the legend item to allow selecting the series. The state of the checkbox is determined by theselectedoption. Note that if a colorAxis is defined, the color axis is represented in the legend, not the series.Defaults to: false
- Parameters:
showCheckbox- aBooleanobject.
-
getShowInLegend
Getter for the field
showInLegend.- Returns:
- a
Booleanobject. - See Also:
-
setShowInLegend
Whether to display this particular series or series type in the legend. Note that if a colorAxis is defined, the color axis is represented in the legend, not the series.Defaults to: true
- Parameters:
showInLegend- aBooleanobject.
-
getStates
Getter for the field
states.- Returns:
- a
Statesobject. - See Also:
-
setStates
A wrapper object for all the series options in specific states.- Parameters:
states- aStatesobject.
-
getStickyTracking
Getter for the field
stickyTracking.- Returns:
- a
Booleanobject. - 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: false
- Parameters:
stickyTracking- aBooleanobject.
-
getTooltip
Getter for the field
tooltip.- Returns:
- a
SeriesTooltipobject. - 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.- Parameters:
tooltip- aSeriesTooltipobject.
-
getVisible
Getter for the field
visible.- Returns:
- a
Booleanobject. - See Also:
-
setVisible
Set the initial visibility of the series.Defaults to: true
- Parameters:
visible- aBooleanobject.
-
getZIndex
Getter for the field
zIndex.- Returns:
- a
Numberobject. - See Also:
-
setZIndex
Define the z index of the series.- Parameters:
zIndex- aNumberobject.
-