Class PlotOptionsMapline
- All Implemented Interfaces:
Serializable
enableMouseTracking to false to turn off interactivity.- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldallAreas.Getter for the fieldallowPointSelect.Getter for the fieldanimation.Getter for the fieldanimationLimit.getColor()Getter for the fieldcolor.Getter for the fieldcolorAxis.Getter for the fieldcursor.Getter for the fielddashStyle.Getter for the fielddataLabels.Getter for the fieldenableMouseTracking.Getter for the fieldfillColor.Getter for the fieldlineWidth.getMapType.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.voidsetAllAreas(Boolean allAreas) Whether all areas of the map defined inmapDatashould be rendered.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.voidThe main color of the series.voidsetColorAxis(ColorAxis colorAxis) Set this option tofalseto prevent a series from connecting to the global color axis.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.voidsetDashStyle(DashStyle dashStyle) A name for the dash style to use for the map area outline or the map line.voidsetDataLabels(DataLabels dataLabels) Setter for the fielddataLabels.voidsetEnableMouseTracking(Boolean enableMouseTracking) Enable or disable the mouse tracking for a specific series.voidsetFillColor(Color fillColor) Fill color for the map line shapesvoidsetLineWidth(Number lineWidth) The width of the map line.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
-
PlotOptionsMapline
public PlotOptionsMapline()Constructor for PlotOptionsMapline.
-
-
Method Details
-
getMapType
getMapType.
- Overrides:
getMapTypein classAbstractPlotOptions- Returns:
- a
MapTypeobject.
-
getAllAreas
Getter for the field
allAreas.- Returns:
- a
Booleanobject. - See Also:
-
setAllAreas
Whether all areas of the map defined inmapDatashould be rendered. Iftrue, areas which don't correspond to a data point, are rendered asnullpoints. Iffalse, those areas are skipped.Defaults to: true
- Parameters:
allAreas- aBooleanobject.
-
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.
-
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.
-
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.
-
getDashStyle
Getter for the field
dashStyle.- Returns:
- a
DashStyleobject. - See Also:
-
setDashStyle
A name for the dash style to use for the map area outline or the map line. The value for thedashStyleinclude:- Solid
- ShortDash
- ShortDot
- ShortDashDot
- ShortDashDotDot
- Dot
- Dash
- LongDash
- DashDot
- LongDashDot
- LongDashDotDot
Defaults to: Solid
- Parameters:
dashStyle- aDashStyleobject.
-
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.
-
getFillColor
Getter for the field
fillColor.- Returns:
- a
Colorobject. - See Also:
-
setFillColor
Fill color for the map line shapesDefaults to: none
- Parameters:
fillColor- aColorobject.
-
getLineWidth
Getter for the field
lineWidth.- Returns:
- a
Numberobject. - See Also:
-
setLineWidth
The width of the map line.Defaults to: 1
- Parameters:
lineWidth- 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.
-