IMapChartSettings
Type interface
Sources
IMapChartSettings is an interface: it describes a shape of data and is not imported on its own.
Inheritance
IMapChartSettings extends ISerialChartSettings.
IMapChartSettings is not extended by any other symbol.
Properties
animationDurationType
undefined|numberDuration of zoom and rotation animations, in milliseconds: zooming with the wheel, buttons or a double click, and the zoom and rotate methods.
animationEasingType
undefined| (t:Time) =>TimeDefaultam5.ease.out(am5.ease.cubic)Easing of zoom and rotation animations.
More info: Animations: easing functions
autoHomeType
undefined|false|trueDefaultfalseSince 5.21.0Goes to the home position once the map is loaded, as
goHome()does:animated when
animationDurationis set (as by the Animated theme), at once otherwise.boxZoomType
"none"|"drag"|"shift"|"ctrl"|"alt"Default"none"Since 5.20.2Zooms the map to a box drawn with the pointer, while this key is held:
"drag"needs no key. A plain drag pans the map, so use"drag"withpanXandpanYset to"none".The box is drawn with
boxZoomSelection.centerMapOnZoomOutType
undefined|false|trueDefaulttrueSince 5.2.1Centers the map on its home point (
homeGeoPoint, or the middle of the map) whenever it zooms tohomeZoomLevel, such as when fully zoomed out.Otherwise zooming out keeps the point under the pointer, or the middle of the view, in place.
doubleClickZoomType
undefined|false|trueDefaulttrueSince 5.20.2Zooms the map in by
zoomStepon a double click or double tap, and out on Shift + double click.On a map panned by rotating (
panX: "rotateX"orpanY: "rotateY"), the clicked location turns to the middle. Otherwise it stays under the pointer.homeGeoPointType
IGeoPointThe point
goHome()andautoHomecenter the map on. If not set, the middle of the map is used.More info: Panning and zooming the map: initial position and zoom
homeRotationXType
undefined|numberrotationXof the home position, whichgoHome()andautoHomego to.More info: Panning and zooming the map: initial position and zoom
homeRotationYType
undefined|numberrotationYof the home position, whichgoHome()andautoHomego to.More info: Panning and zooming the map: initial position and zoom
homeZoomLevelType
undefined|numberDefault1Zoom level of the home position, which
goHome()andautoHomego to.More info: Panning and zooming the map: initial position and zoom
maxPanOutType
undefined|numberDefault0.4How far the map can be dragged away from the middle, as a share of its size:
0.4lets its center move 40% of the map's width or height. A map zoomed larger than the chart can always be dragged to its edges.More info: Panning and zooming the map: panning outside viewport
maxZoomLevelType
undefined|numberDefault32The highest zoom level the map can zoom in to.
minZoomLevelType
undefined|numberDefault1The lowest zoom level the map can zoom out to.
panXType
"none"|"rotateX"|"translateX"Default"translateX"What dragging the map horizontally does:
"translateX"moves it,"rotateX"turns it around the poles (as on a globe),"none"nothing.More info: Panning and zooming the map: panning
panYType
"none"|"rotateY"|"translateY"Default"translateY"What dragging the map vertically does:
"translateY"moves it,"rotateY"tilts it north or south (as on a globe),"none"nothing.More info: Panning and zooming the map: panning
pinchZoomType
undefined|false|trueDefaulttrueLets users zoom the map with a two-finger pinch on touch devices.
More info: Panning and zooming the map: pinch zoom
projectionType
GeoProjectionThe projection the map is drawn with, such as
am5map.geoMercator().More info: Map chart: projections
projectionNameType
undefined|stringSince 5.19.0The projection by name, such as
"geoOrthographic": the chart setsprojectionto it. Useful in JSON configs, which can't hold a function.The names
"geoMercator","geoOrthographic","geoEquirectangular","geoAlbersUsa","geoEqualEarth"and"geoNaturalEarth1"work out of the box. Register any other projection once, before creating the chart:import { geoConicConformal } from "d3-geo"; am5map.registerProjection("geoConicConformal", geoConicConformal);am5map.registerProjection("geoConicConformal", d3.geoConicConformal);rotationXType
undefined|numberDefault0Turns the map around the poles, in degrees: the longitude
-rotationXcomes to the middle, so-74centers longitude 74. Needs a projection that can rotate.More info: Map chart: centering the map
rotationYType
undefined|numberDefault0Tilts the map north or south, in degrees: the latitude
-rotationYcomes to the middle, so-30centers latitude 30. Needs a projection that can rotate.More info: Map chart: centering the map
rotationZType
undefined|numberDefault0Spins the map around its middle, in degrees. Needs a projection that can rotate.
More info: Map chart: centering the map
translateXType
undefined|numberHorizontal position of the projection's center, in pixels from the left of the map's area. Changes as the map is panned.
translateYType
undefined|numberVertical position of the projection's center, in pixels from the top of the map's area. Changes as the map is panned.
wheelDurationType
undefined|numberDefault0Duration of the rotation a wheel turn makes, in milliseconds. Applies only to the
"rotateX"and"rotateY"wheel actions.wheelEasingType
undefined| (t:Time) =>TimeDefaultam5.ease.out(am5.ease.cubic)Easing of the rotation a wheel turn makes. Applies only to the
"rotateX"and"rotateY"wheel actions.More info: Animations: easing functions
wheelSensitivityType
undefined|numberDefault1Multiplies how far the wheel rotates the map. Applies only to the
"rotateX"and"rotateY"wheel actions.wheelXType
"none"|"zoom"|"rotateX"|"rotateY"Default"none"What scrolling horizontally (with a tilting wheel or a touchpad) does to the map.
More info: Panning and zooming the map: mouse wheel behavior
wheelYType
"none"|"zoom"|"rotateX"|"rotateY"Default"zoom"What turning the mouse wheel does to the map.
More info: Panning and zooming the map: mouse wheel behavior
zoomControlType
ZoomControlZoom buttons to show on the map.
More info: Map chart: zoom control
zoomLevelType
undefined|numberDefault1The map's zoom level:
1shows the whole map fitted to the chart,2shows it twice as large.zoomStepType
undefined|numberDefault2How many times one zoom step zooms in or out: the zoom level is multiplied or divided by it. Used by
ZoomControl, the wheel, double clicks,zoomIn()andzoomOut().
99 inherited items
activeType
undefined|false|trueInherited fromISpriteSettingsApplies the element's
"active"state whiletrue.animationsType
ArrayInherited fromIEntitySettingsSince 5.20.8Animations the element plays on its own, described as data - so they can be set from a JSON config and saved with it.
Each one animates a setting of the element (or, with
target: "dataItem", a value of its data item - a map point'spositionOnLine, say). They start when the setting is applied, restart when it changes, and stop when the element is disposed. A saved config keeps what was configured, never a value caught half way through an animation.sprite.set("animations", [ { key: "rotation", to: 360, duration: 4000, loops: 0 }, { key: "scale", from: 1, to: 1.3, duration: 800, loops: 0, yoyo: true, easing: "sine" } ]);appearDelayType
undefined|numberDefault0Inherited fromISpriteSettingsSince 5.21.0Milliseconds to wait before the
autoAppearanimation starts. The element stays hidden until then.appearDurationType
undefined|numberInherited fromISpriteSettingsSince 5.21.0Duration of the
autoAppearanimation, in milliseconds. Without it, the element'sstateAnimationDurationis used.ariaCheckedType
undefined|false|trueInherited fromISpriteSettingsaria-checkedsetting.This setting is ignored unless
roleis one of the following:"checkbox""option""radio""menuitemcheckbox""menuitemradio""treeitem"On a toggle"button"(one withtoggleKey) it is exposed asaria-pressed.
ariaControlsType
undefined|stringInherited fromISpriteSettingsaria-controlssetting.ariaCurrentType
undefined|stringInherited fromISpriteSettingsSince 5.9.8aria-currentsetting.More info: https://w3c.github.io/aria/#aria-current
ariaExpandedType
undefined|false|trueInherited fromISpriteSettingsSince 5.21.0aria-expandedsetting: whether the content the element shows or hides (e.g. a task's subtasks, a node's children) is shown.More info: https://w3c.github.io/aria/#aria-expanded
ariaHiddenType
undefined|false|trueInherited fromISpriteSettingsaria-hiddensetting.ariaLabelType
undefined|stringInherited fromISpriteSettingsLabel for the element to use for screen readers.
More info: Accessibility: screen reader
ariaLiveType
AriaLiveInherited fromISpriteSettingsaria-livesetting.ariaOrientationType
undefined|stringInherited fromISpriteSettingsaria-orientationsetting.ariaSelectedType
undefined|false|trueInherited fromISpriteSettingsSince 5.9.8aria-selectedsetting.More info: https://w3c.github.io/aria/#aria-selected
ariaValueMaxType
undefined|stringInherited fromISpriteSettingsaria-valuemaxsetting.ariaValueMinType
undefined|stringInherited fromISpriteSettingsaria-valueminsetting.ariaValueNowType
undefined|stringInherited fromISpriteSettingsaria-valuenowsetting.ariaValueTextType
undefined|stringInherited fromISpriteSettingsaria-valuetextsetting.autoAppearType
undefined|false|trueDefaultfalseInherited fromISpriteSettingsSince 5.21.0Plays the element's reveal animation, as
appear()does, when it is first drawn: a chart fades in, a series grows its columns or lines from the base. A series waits for its first data. It plays once: data updates do not replay it, but turning the setting off and on again does.Elements made from a template play as each one is made.
An element that starts hidden (
visible: false, or hidden in code before it is drawn) stays hidden. Ananimationsentry on the same setting, such as a pulsingopacity, keeps playing.This is how a JSON config gets the opening animation, as a config cannot call
appear().chart.setAll({ autoAppear: true, appearDuration: 1000, appearDelay: 100 }); series.setAll({ autoAppear: true, appearDuration: 1000 });chart.setAll({ autoAppear: true, appearDuration: 1000, appearDelay: 100 }); series.setAll({ autoAppear: true, appearDuration: 1000 });More info: Animations
backgroundType
GraphicsInherited fromIContainerSettingsElement drawn behind the container's content, sized to fill the container.
More info: Containers: background
blurType
undefined|numberInherited fromISpriteSettingsSince 5.5.0Blur radius in pixels, from
0(no blur) up.IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
brightnessType
undefined|numberInherited fromISpriteSettingsSince 5.5.0Brightness.
0- completely black1- no changes (default)>1- brighter IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
centerXType
number|PercentInherited fromISpriteSettingsThe point of the element that is placed at its
xposition, and that it rotates and scales around: pixels from its left edge, or a percent of its width.centerYType
number|PercentInherited fromISpriteSettingsThe point of the element that is placed at its
yposition, and that it rotates and scales around: pixels from its top edge, or a percent of its height.clickAnnounceTextType
undefined|stringInherited fromISpriteSettingsSince 5.10.8If set, the text will be read out (announced) by a screen reader when focused element is "clicked" (by pressing ENTER or SPACE).
colorsType
ColorSetInherited fromISerialChartSettingsThe
ColorSetseries take their colors from.More info: XY chart series: series colors
contrastType
undefined|numberInherited fromISpriteSettingsSince 5.5.0Contrast.
0- completely gray1- no changes (default)>1- more contrast IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
crispType
undefined|false|trueDefaultfalseInherited fromISpriteSettingsSince 5.3.0Draws the element sharply, with minimal anti-aliasing: its position is rounded to whole pixels, and
strokeWidthis adjusted to the device pixel ratio, so lines may look thinner than expected.NOTE: it may not work well on several elements that are meant to fit together exactly.
cursorOverStyleType
undefined|stringInherited fromISpriteSettingsCSS cursor to show while the pointer is over the element, e.g.
"pointer".More info: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
dateFormatterType
DateFormatter|undefinedInherited fromISpriteSettingsA
DateFormatterto use for this element instead of the root's.More info: /v5/concepts/using-formatters/
disabledType
undefined|false|trueInherited fromISpriteSettingsApplies the element's
"disabled"state whiletrue. It changes only the look: the element still responds to the pointer.draggableType
undefined|false|trueInherited fromISpriteSettingsLets the user drag the element. Touches that start on it no longer scroll the page.
durationFormatterType
DurationFormatter|undefinedInherited fromISpriteSettingsA
DurationFormatterto use for this element instead of the root's.More info: /v5/concepts/using-formatters/
dxType
undefined|numberInherited fromISpriteSettingsHorizontal shift in pixels. Can be negative to shift leftward.
dyType
undefined|numberInherited fromISpriteSettingsVertical shift in pixels. Can be negative to shift upward.
exportableType
undefined|false|trueInherited fromISpriteSettingsIf
false, the element is left out of exported images of the chart.focusableType
undefined|false|trueInherited fromISpriteSettingsCan element be focused, i.e. selected using TAB key.
More info: Accessibility: focusing elements
focusableGroupType
string|numberInherited fromISpriteSettingsSince 5.0.6An identifier by which to group common elements into focusable groups.
If set, only the first element in he group will be focusable via TAB key.
When it is selected, the rest of the elements in the same group can be selected using arrow keys.
It allows users to TAB-through chart elements quickly without the need to TAB into each and every element.
It's up to implementer of the charts to provide meaningful
ariaLabelto the element, which advertises this capability and provides adequate instructions.More info: Accessibility: grouping focusable elements
forceHiddenType
undefined|false|trueInherited fromISpriteSettingsHides the element whatever its
visiblesetting, even whenshow()is called.forceInactiveType
undefined|false|trueInherited fromISpriteSettingsSince 5.0.21Makes the element and its children ignore the pointer, even with
interactive: trueor event listeners set.heightType
number|Percent|nullInherited fromISpriteSettingsHeight in pixels, or a
Percentof the parent's inner height. In a vertical layout, a percent height is a share of the height the other children leave.hoverOnFocusType
undefined|false|trueInherited fromISpriteSettingsSimulate hover on an element when it gains focus, including changing hover appearance and displaying a tooltip if applicable.
More info: Accessibility: focusing elements
htmlType
undefined|stringInherited fromIContainerSettingsSince 5.2.11HTML content of the container. It can hold data placeholders, such as
{category}.More info: HTML content
hueType
undefined|numberInherited fromISpriteSettingsSince 5.5.0Rotates the hue of all colors by this many degrees, from
0to360.IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
idType
undefined|stringInherited fromIEntitySettingsA unique ID for looking the element up in
root.entitiesById. Setting an ID that another element already has throws an error.ignoreThemesType
undefined|false|trueDefaultfalseInherited fromIEntitySettingsSince 5.15.6Ignores themes: no theme rule applies to the element, not even one of the default theme.
interactiveType
undefined|false|trueInherited fromISpriteSettingsMakes the element respond to the pointer. Adding a pointer event listener to it turns this on.
interactiveChildrenType
undefined|false|trueDefaulttrueInherited fromIContainerSettingsMakes every descendant, not just direct children, interactive when the container itself is interactive.
invertType
undefined|numberInherited fromISpriteSettingsSince 5.5.0Color inversion, from
0(no changes) to1(fully inverted colors).IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
isMeasuredType
undefined|false|trueDefaulttrueInherited fromISpriteSettingsIf
false, the element's bounds are not measured, so it takes no part in its parent's layout or size.layerType
undefined|numberInherited fromISpriteSettingsLayer to draw the element on: elements on higher layers show in front of those on lower ones. If not set, the element is on its parent's layer.
layerMarginType
IMarginInherited fromISpriteSettingsSince @5.2.39Margins in pixels that make the element's layer larger than the chart, or, when negative, smaller.
layoutType
Layout|nullInherited fromIContainerSettingsHow children are arranged, e.g.
root.horizontalLayout,root.verticalLayoutorroot.gridLayout. Without a layout, children are placed by their ownxandy.More info: Containers: layout
marginBottomType
undefined|numberInherited fromISpriteSettingsBottom margin in pixels.
marginLeftType
undefined|numberInherited fromISpriteSettingsLeft margin in pixels.
marginRightType
undefined|numberInherited fromISpriteSettingsRight margin in pixels.
marginTopType
undefined|numberInherited fromISpriteSettingsTop margin in pixels.
maskType
Graphics|nullInherited fromIContainerSettingsAn element whose shape clips the container's children.
More info: Containers: masks
maskContentType
undefined|false|trueInherited fromIContainerSettingsClips all content that goes outside the container's bounds.
maxHeightType
number|nullInherited fromISpriteSettingsMaximum allowed height in pixels.
maxWidthType
number|nullInherited fromISpriteSettingsMaximum allowed width in pixels.
minHeightType
number|nullInherited fromISpriteSettingsMinimum allowed height in pixels.
minWidthType
number|nullInherited fromISpriteSettingsMinimum allowed width in pixels.
numberFormatterType
NumberFormatter|undefinedInherited fromISpriteSettingsA
NumberFormatterto use for this element instead of the root's.More info: /v5/concepts/using-formatters/
opacityType
undefined|numberDefault1Inherited fromISpriteSettingsOpacity, from
0(transparent) to1(opaque).The theme's
"default"state hasopacity: 1, soshow(), and leaving a state that changesopacity, bring it back to1, not to a value set here. To come back to another value, set it in the"default"state too:sprite.states.create("default", { opacity: 0.5 }).paddingBottomType
undefined|numberInherited fromIContainerSettingsBottom padding in pixels.
paddingLeftType
undefined|numberInherited fromIContainerSettingsLeft padding in pixels.
paddingRightType
undefined|numberInherited fromIContainerSettingsRight padding in pixels.
paddingTopType
undefined|numberInherited fromIContainerSettingsTop padding in pixels.
patternsType
PatternSetInherited fromISerialChartSettingsSince 5.10.0The
PatternSetseries take their patterns from.More info: Patterns: pattern sets
positionType
"absolute"|"relative"Default"relative"Inherited fromISpriteSettingsPositioning of the element.
"absolute"leaves the element out of its parent's layout and size: it is placed by itsxandyonly.reverseChildrenType
undefined|false|trueInherited fromIContainerSettingsSince 5.1.1Lays out the children in reverse order.
roleType
RoleInherited fromISpriteSettingsElement's role.
More info: Accessibility: roles
rotationType
undefined|numberDefault0Inherited fromISpriteSettingsRotation in degrees, clockwise, around the point set by
centerXandcenterY.saturateType
undefined|numberInherited fromISpriteSettingsSince 5.5.0Saturation.
0- grayscale1- no changes (default)>1- more saturated IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
scaleType
undefined|numberDefault1Inherited fromISpriteSettingsScale, around the point set by
centerXandcenterY: below1shrinks the element, above1enlarges it.sepiaType
undefined|numberInherited fromISpriteSettingsSince 5.5.0Sepia tone, from
0(no changes) to1(full sepia).IMPORTANT: This setting is not supported in Safari browsers.
More info: Filters
setStateOnChildrenType
undefined|false|trueDefaultfalseInherited fromIContainerSettingsApplies every state set on the container to its children too.
More info: Containers: states
showTooltipOnType
"hover"|"always"|"click"Default"hover"Inherited fromISpriteSettingsSince 5.0.16When the element's tooltip shows:
"hover"(default) - while the pointer is over the element, or after a tap on it until a tap elsewhere."always"- all the time. To show tooltips of several elements at once, give each its ownTooltip(tooltip)."click"- after a click or tap on the element, until a click anywhere else on the page.
More info: Tooltips: sticky tooltips
stateAnimationDurationType
undefined|numberDefault0Inherited fromIEntitySettingsHow long, in milliseconds, a switch from one state to another animates.
0switches at once.stateAnimationEasingType
$ease.EasingDefaultout(cubic)Inherited fromIEntitySettingsEasing of the animated switch from one state to another.
tabindexOrderType
undefined|numberInherited fromISpriteSettingsAn internal order by which focusable elements will be selected within the chart.
More info: Accessibility: focusing elements
templateFieldType
undefined|stringInherited fromISpriteSettingsField in the data item's data object that holds settings for this element, applied over its template's.
More info: Template fields
themesType
ArrayInherited fromIEntitySettingsThemes applied to the element and everything inside it.
themeTagsType
ArrayInherited fromIEntitySettingsTags that theme rules can target. They also count for the element's children, so a rule can match a child by a tag of its parent.
More info: Themes
themeTagsSelfType
ArrayInherited fromIEntitySettingsTags that theme rules can target, like
themeTags, but only for this element, not its children.More info: Themes
toggleKeyType
"disabled"|"active"|"none"|undefinedInherited fromISpriteSettingsSetting that a click or tap toggles between
trueandfalse:"active"or"disabled"."none"turns toggling off.tooltipType
TooltipInherited fromISpriteSettingsThe
Tooltipto show for the element. If not set, the nearest parent's is used.tooltipHTMLType
undefined|stringInherited fromISpriteSettingsSince 5.2.11HTML content of the element's tooltip, shown in place of
tooltipText.tooltipPositionType
"fixed"|"pointer"Default"fixed"Inherited fromISpriteSettingsWhere the tooltip points:
"fixed"attooltipXandtooltipY, or"pointer"at the pointer, following it.tooltipTextType
undefined|stringInherited fromISpriteSettingsText of the element's tooltip. It can hold data placeholders, such as
{value}.tooltipXType
number|PercentDefaultam5.percent(50)Inherited fromISpriteSettingsWhere on the element the tooltip points, horizontally: pixels from its left edge, or a percent of its width.
tooltipYType
number|PercentDefaultam5.percent(50)Inherited fromISpriteSettingsWhere on the element the tooltip points, vertically: pixels from its top edge, or a percent of its height.
userDataType
anyInherited fromIEntitySettingsAny data of your own to keep with the element.
verticalScrollbarType
ScrollbarInherited fromIContainerSettingsA
Scrollbarthat scrolls the content vertically when it does not fit in the container.More info: Containers: scrollbar
visibleType
undefined|false|trueDefaulttrueInherited fromISpriteSettingsWhether the element is shown. Unlike
show()andhide(), it does not animate.wheelableType
undefined|false|trueInherited fromISpriteSettingsMakes the element receive mouse wheel events. While the pointer is over it, the wheel no longer scrolls the page.
widthType
number|Percent|nullInherited fromISpriteSettingsWidth in pixels, or a
Percentof the parent's inner width. In a horizontal layout, a percent width is a share of the width the other children leave.xType
number|Percent|nullInherited fromISpriteSettingsX position in the parent: pixels from its left edge, or a
Percentof its inner width, measured from inside its left padding.yType
number|Percent|nullInherited fromISpriteSettingsY position in the parent: pixels from its top edge, or a
Percentof its inner height, measured from inside its top padding.