Type class
A weighted Voronoi treemap: nodes as polygon cells sized by value, each inside its parent's cell. Many items with very different values lay out poorly; group the small ones into an "Other" item.
Click here for more info
@since 5.4.0
Data item
VoronoiTreemap uses data items of type IVoronoiTreemapDataItem.
Sources
VoronoiTreemap can be used (imported) via one of the following packages.
// Import VoronoiTreemap
import * as am5hierarchy from "@amcharts/amcharts5/hierarchy";
// Create VoronoiTreemap
am5hierarchy.VoronoiTreemap.new(root, {
// ... config if applicable
});
<!-- Load VoronoiTreemap -->
<script src="hierarchy.js"></script>
<script>
// Create VoronoiTreemap
am5hierarchy.VoronoiTreemap.new(root, {
// ... config if applicable
});
</script>
Inheritance
VoronoiTreemap extends Hierarchy.
VoronoiTreemap is not extended by any other symbol.
Settings
Set these settings on a VoronoiTreemap object using its set() and setAll() methods.
Read about settings concept.
|
active # |
Type Inherited from Applies the element's |
|---|---|
|
animationDuration # |
Type Inherited from Duration of the drill-down animations, in milliseconds. |
|
animationEasing # |
Type Inherited from Easing of the drill-down animations. |
|
animations # |
Type Inherited from Animations 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 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" }
]);
@since 5.20.8 |
|
appearDelay # |
Type Default Inherited from Milliseconds to wait before the @since 5.21.0 |
|
appearDuration # |
Type Inherited from Duration of the @since 5.21.0 |
|
ariaChecked # |
Type Inherited from
This setting is ignored unless
|
|
ariaControls # |
Type Inherited from
|
|
ariaCurrent # |
Type Inherited from
Click here for more info |
|
ariaExpanded # |
Type Inherited from
Click here for more info |
|
ariaHidden # |
Type Inherited from
|
|
ariaLabel # |
Type Inherited from Label for the element to use for screen readers. Click here for more info |
|
ariaLive # |
Type Inherited from
|
|
ariaOrientation # |
Type Inherited from
|
|
ariaSelected # |
Type Inherited from
Click here for more info |
|
ariaValueMax # |
Type Inherited from
|
|
ariaValueMin # |
Type Inherited from
|
|
ariaValueNow # |
Type Inherited from
|
|
ariaValueText # |
Type Inherited from
|
|
autoAppear # |
Type Default Inherited from Plays the element's reveal animation, as Elements made from a template play as each one is made. An element that starts hidden ( This is how a JSON config gets the opening animation, as a config cannot call 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 });
Click here for more info |
|
background # |
Type Inherited from Element drawn behind the container's content, sized to fill the container. Click here for more info |
|
blur # |
Type Inherited from Blur radius in pixels, from IMPORTANT: This setting is not supported in Safari browsers. Click here for more info |
|
brightness # |
Type Inherited from Brightness.
Click here for more info |
|
calculateAggregates # |
Type Inherited from Makes the series compute aggregate values, such as sums, averages, lows, highs and changes. Enable it only if they are used, e.g. in tooltips, data fields or heat rules. |
|
categoryField # |
Type Inherited from Field in data that holds the node's category name. |
|
centerX # |
Type Inherited from The point of the element that is placed at its |
|
centerY # |
Type Inherited from The point of the element that is placed at its |
|
childDataField # |
Type Default Inherited from Field in data that holds the array of the node's children. |
|
clickAnnounceText # |
Type Inherited from If set, the text will be read out (announced) by a screen reader when focused element is "clicked" (by pressing ENTER or SPACE). @since 5.10.8 |
|
colors # |
Type Inherited from
Click here for more info |
|
contrast # |
Type Inherited from Contrast.
Click here for more info |
|
convergenceRatio # |
Type Default How closely the cell areas must match their values before the layout stops: it stops once the cells' summed area error is below this fraction of the total area. Smaller values are more precise but slower. |
|
cornerCount # |
Type Default Number of corners of the outline when |
|
crisp # |
Type Default Inherited from Draws the element sharply, with minimal anti-aliasing: its position is rounded to whole pixels, and NOTE: it may not work well on several elements that are meant to fit together exactly. @since 5.3.0 |
|
cursorOverStyle # |
Type Inherited from CSS cursor to show while the pointer is over the element, e.g.
Click here for more info |
|
customValueField # |
Type Inherited from A key to look up in data for an extra numeric value of the data item ( |
|
dateFormatter # |
Type Inherited from A Click here for more info |
|
disabled # |
Type Inherited from Applies the element's |
|
disabledField # |
Type Inherited from Field in data that, when |
|
downDepth # |
Type Default Inherited from Number of child levels a click on a node opens. Click here for more info |
|
draggable # |
Type Inherited from Lets the user drag the element. Touches that start on it no longer scroll the page. |
|
durationFormatter # |
Type Inherited from A Click here for more info |
|
dx # |
Type Inherited from Horizontal shift in pixels. Can be negative to shift leftward. |
|
dy # |
Type Inherited from Vertical shift in pixels. Can be negative to shift upward. |
|
excludeFromAggregate # |
Type Inherited from Fields to leave out of @since 5.14.4 |
|
exportable # |
Type Inherited from If |
|
fill # |
Type Inherited from Series fill color. Click here for more info |
|
fillField # |
Type Inherited from Field in data that holds the node's color. |
|
fillGradient # |
Type Inherited from Series fill gradient. Click here for more info |
|
fillPattern # |
Type Inherited from Series fill pattern. Click here for more info |
|
focusable # |
Type Inherited from Can element be focused, i.e. selected using TAB key. Click here for more info |
|
focusableGroup # |
Type Inherited from An 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 Click here for more info |
|
forceHidden # |
Type Inherited from Hides the element whatever its |
|
forceInactive # |
Type Inherited from Makes the element and its children ignore the pointer, even with @since 5.0.21 |
|
heatRules # |
Type Inherited from Heat rules to apply to the series' elements. A rule without Click here for more info |
|
height # |
Type Inherited from Height in pixels, or a |
|
hoverOnFocus # |
Type Inherited from Simulate hover on an element when it gains focus, including changing hover appearance and displaying a tooltip if applicable. Click here for more info |
|
html # |
Type Inherited from HTML content of the container. It can hold data placeholders, such as Click here for more info |
|
hue # |
Type Inherited from Rotates the hue of all colors by this many degrees, from IMPORTANT: This setting is not supported in Safari browsers. Click here for more info |
|
id # |
Type Inherited from A unique ID for looking the element up in |
|
idField # |
Type Inherited from A key to look up in data for an id of the data item. |
|
ignoreThemes # |
Type Default Inherited from Ignores themes: no theme rule applies to the element, not even one of the default theme. @since 5.15.6 |
|
initialDepth # |
Type Default Inherited from Number of levels opened below the top level ( Click here for more info |
|
interactive # |
Type Inherited from Makes the element respond to the pointer. Adding a pointer event listener to it turns this on. |
|
interactiveChildren # |
Type Default Inherited from Makes every descendant, not just direct children, interactive when the container itself is interactive. |
|
interpolationDuration # |
Type Default Inherited from Duration in milliseconds of the animation from old values to new ones, e.g. when data changes. Click here for more info |
|
interpolationEasing # |
Type Inherited from Easing function of the animation from old values to new ones. Click here for more info |
|
invert # |
Type Inherited from Color inversion, from IMPORTANT: This setting is not supported in Safari browsers. Click here for more info |
|
isMeasured # |
Type Default Inherited from If |
|
layer # |
Type Inherited from Layer 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. |
|
layerMargin # |
Type Inherited from Margins in pixels that make the element's layer larger than the chart, or, when negative, smaller. @since @5.2.39 |
|
layout # |
Type Inherited from How children are arranged, e.g. Click here for more info |
|
legendDataItem # |
Type Inherited from The series' data item in a @readonly |
|
legendLabelText # |
Type Inherited from Text template for the item's label in a |
|
legendValueText # |
Type Inherited from Text template for the item's value label in a |
|
linkTarget # |
Type Default Inherited from Where a data item's URL opens: @since 5.20.7 |
|
marginBottom # |
Type Inherited from Bottom margin in pixels. |
|
marginLeft # |
Type Inherited from Left margin in pixels. |
|
marginRight # |
Type Inherited from Right margin in pixels. |
|
marginTop # |
Type Inherited from Top margin in pixels. |
|
mask # |
Type Inherited from An element whose shape clips the container's children. Click here for more info |
|
maskContent # |
Type Inherited from Clips all content that goes outside the container's bounds. |
|
maxHeight # |
Type Inherited from Maximum allowed height in pixels. |
|
maxIterationCount # |
Type Default Most iterations the layout runs, even if |
|
maxWidth # |
Type Inherited from Maximum allowed width in pixels. |
|
minHeight # |
Type Inherited from Minimum allowed height in pixels. |
|
minWeightRatio # |
Type Default Smallest weight a cell may have, as a fraction of the largest. Lighter cells are enlarged to it, so they no longer show their true value. Very small values can make the layout flicker. |
|
minWidth # |
Type Inherited from Minimum allowed width in pixels. |
|
name # |
Type Inherited from Name of the series. |
|
numberFormatter # |
Type Inherited from A Click here for more info |
|
opacity # |
Type Default Inherited from Opacity, from |
|
paddingBottom # |
Type Inherited from Bottom padding in pixels. |
|
paddingLeft # |
Type Inherited from Left padding in pixels. |
|
paddingRight # |
Type Inherited from Right padding in pixels. |
|
paddingTop # |
Type Inherited from Top padding in pixels. |
|
parentIdField # |
Type Inherited from Field in data that holds the parent node's ID, for flat data passed to Click here for more info |
|
patterns # |
Type Inherited from A Click here for more info |
|
position # |
Type Default Inherited from Positioning of the element. |
|
reverseChildren # |
Type Inherited from Lays out the children in reverse order. @since 5.1.1 |
|
role # |
Type Inherited from Element's role. Click here for more info |
|
rotation # |
Type Default Inherited from Rotation in degrees, clockwise, around the point set by |
|
saturate # |
Type Inherited from Saturation.
Click here for more info |
|
scale # |
Type Default Inherited from Scale, around the point set by |
|
selectedDataItem # |
Type Inherited from The selected (drilled-into) node. Set it to drill down to a node. Click here for more info |
|
sepia # |
Type Inherited from Sepia tone, from IMPORTANT: This setting is not supported in Safari browsers. Click here for more info |
|
sequencedDelay # |
Type Inherited from Extra delay in milliseconds between the animations of consecutive data items, with Click here for more info |
|
sequencedInterpolation # |
Type Inherited from Shows and hides the data items one after another instead of all at once, including in the initial animation. Works in XY and percent series. Click here for more info |
|
setStateOnChildren # |
Type Default Inherited from Applies every state set on the container to its children too. Click here for more info |
|
shapeType # |
Type Default Outline of the whole diagram: Click here for more info |
|
showTooltipOn # |
Type Default Inherited from When the element's tooltip shows:
Click here for more info |
|
singleBranchOnly # |
Type Inherited from Collapses the other branches when a branch is opened. |
|
sort # |
Type Default Inherited from How to sort nodes by their value. |
|
stateAnimationDuration # |
Type Default Inherited from How long, in milliseconds, a switch from one state to another animates.
|
|
stateAnimationEasing # |
Type Default Inherited from Easing of the animated switch from one state to another. |
|
stroke # |
Type Inherited from Series stroke color. Click here for more info |
|
strokeGradient # |
Type Inherited from Series stroke gradient. Click here for more info |
|
tabindexOrder # |
Type Inherited from An internal order by which focusable elements will be selected within the chart. Click here for more info |
|
templateField # |
Type Inherited from Field in the data item's data object that holds settings for this element, applied over its template's. Click here for more info |
|
themeTags # |
Type Inherited from Tags 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. Click here for more info |
|
themeTagsSelf # |
Type Inherited from Tags that theme rules can target, like Click here for more info |
|
themes # |
Type Inherited from Themes applied to the element and everything inside it. |
|
toggleKey # |
Type Inherited from Setting that a click or tap toggles between
|
|
tooltip # |
Type Inherited from The |
|
tooltipHTML # |
Type Inherited from HTML content of the element's tooltip, shown in place of @since 5.2.11 |
|
tooltipPosition # |
Type Default Inherited from Where the tooltip points: |
|
tooltipText # |
Type Inherited from Text of the element's tooltip. It can hold data placeholders, such as |
|
tooltipX # |
Type Default Inherited from Where on the element the tooltip points, horizontally: pixels from its left edge, or a percent of its width. |
|
tooltipY # |
Type Default Inherited from Where on the element the tooltip points, vertically: pixels from its top edge, or a percent of its height. |
|
topDepth # |
Type Default Inherited from Depth of the first level shown; the levels above it are hidden. For example, Click here for more info |
|
upDepth # |
Type Inherited from Number of parent levels that stay visible above the selected node. Click here for more info |
|
urlField # |
Type Inherited from A key to look up in data for a URL to open when the data item's element (a bullet, column, slice, map polygon or map line) is clicked. Links are off until this is set. @since 5.20.7 |
|
userData # |
Type Inherited from Any data of your own to keep with the element. |
|
valueField # |
Type Inherited from Field in data that holds the node's value. |
|
verticalScrollbar # |
Type Inherited from A Click here for more info |
|
visible # |
Type Default Inherited from Whether the element is shown. Unlike |
|
wheelable # |
Type Inherited from Makes the element receive mouse wheel events. While the pointer is over it, the wheel no longer scrolls the page. |
|
width # |
Type Inherited from Width in pixels, or a |
|
x # |
Type Inherited from X position in the parent: pixels from its left edge, or a |
|
y # |
Type Inherited from Y position in the parent: pixels from its top edge, or a |
| There are 134 inherited items currently hidden from this list. | |
Private settings
These are read-only settings accessible from a VoronoiTreemap object using its getPrivate() method.
Read about private settings.
|
adjustedStartIndex # |
Read only
Type Inherited from |
|---|---|
|
baseValueSeries # |
Read only
Type Inherited from |
|
customValueAbsoluteSum # |
Read only
Type Inherited from |
|
customValueAverage # |
Read only
Type Inherited from |
|
customValueClose # |
Read only
Type Inherited from |
|
customValueCount # |
Read only
Type Inherited from |
|
customValueHigh # |
Read only
Type Inherited from |
|
customValueLow # |
Read only
Type Inherited from |
|
customValueOpen # |
Read only
Type Inherited from |
|
customValueSum # |
Read only
Type Inherited from |
|
endIndex # |
Read only
Type Inherited from |
|
focusable # |
Read only
Type Inherited from If set to @since 5.3.16 |
|
htmlElement # |
Read only
Type Inherited from The |
|
htmlElementWrapper # |
Read only
Type Inherited from A wrapper @since 5.11.2 |
|
lastTooltipCoords # |
Read only
Type Inherited from The last point the tooltip was shown at, so it is not shown again at the same place. @since 5.11.3 |
|
maxDepth # |
Read only
Type Inherited from Depth of the deepest node. |
|
showingTooltip # |
Read only
Type Inherited from
|
|
startIndex # |
Read only
Type Inherited from |
|
tooltipTarget # |
Read only
Type Inherited from An element whose tooltip point and colors the tooltip uses, in place of this element's. |
|
trustBounds # |
Read only
Type Inherited from Checks that the pointer is within the element's bounds before dispatching It is @since 5.5.0 |
|
valueAbsoluteSum # |
Read only
Type Inherited from Sum of the absolute values of all data items (with |
|
valueAverage # |
Read only
Type Inherited from Average of all data items' values (with |
|
valueClose # |
Read only
Type Inherited from Value of the last data item that has one (with |
|
valueCount # |
Read only
Type Inherited from Number of data items with a value (with |
|
valueHigh # |
Read only
Type Inherited from Highest value of all data items (with |
|
valueLow # |
Read only
Type Inherited from Lowest value of all data items (with |
|
valueOpen # |
Read only
Type Inherited from Value of the first data item that has one (with |
|
valueSum # |
Read only
Type Inherited from Sum of all data items' values (with |
| There are 28 inherited items currently hidden from this list. | |
Properties
|
adapters # |
Type Default Inherited from |
|---|---|
|
bullets # |
Type Default Inherited from Functions that make the series' bullets: each is called for every data item and returns a Click here for more info |
|
bulletsContainer # |
Type Default Inherited from The |
|
chart # |
Type Inherited from The chart the series belongs to. |
|
children # |
Type Default Inherited from The container's child elements. |
|
className # |
Static
Type Default |
|
classNames # |
Static
Type Default |
|
data # |
Type Inherited from The component's data: a list of data objects, each made into a data item. Click here for more info |
|
dataItem # |
Type Inherited from The element's NOTE: data items are assigned automatically in most cases where it matters. Set one only if you know what you are doing. |
|
dataItems # |
Type Inherited from The component's data items. |
|
enableDispose # |
Type Default Inherited from Set to |
|
events # |
Inherited from |
|
inited # |
Type Default Inherited from Becomes |
|
labels # |
Type Default () => Label.new(this._root, }, Inherited from List of node labels; configure them all through |
|
nodes # |
Type Default () => HierarchyNode.new(this._root, }, Inherited from List of node elements; configure them all through |
|
nodesContainer # |
Type Default Inherited from Container that holds the node elements. |
|
parent # |
Type Inherited from Parent |
|
polygons # |
Type Default () => Polygon._new(this._root, }, List of node polygons; configure them all through |
|
root # |
Type Inherited from The @readonly |
|
states # |
Type Default Inherited from |
|
template # |
Type Inherited from A |
|
uid # |
Type Default Inherited from A unique number, given to each object as it is created. |
|
virtualParent # |
Type Inherited from |
|
voronoi # |
Type Default |
| There are 20 inherited items currently hidden from this list. | |
Methods
|
addBullet( dataItem: ) |
Returns Inherited from Adds a bullet to one data item. Unlike Click here for more info |
|---|---|
|
addChildData( dataItem: ) |
Returns Inherited from Adds child nodes to a node. Click here for more info |
|
allChildren() |
Returns Inherited from Returns all children, including the background, vertical scrollbar and mask. |
|
animate( options: ) |
Returns Inherited from Animates a setting from its current value (or Click here for more info |
|
appear( duration?: ) |
Returns Inherited from Plays the reveal animation: hides the element at once, then shows it, whether it was hidden or not. |
|
compositeOpacity() |
Returns Inherited from Returns the element's opacity multiplied by those of all its parents. @since 5.2.11 |
|
compositeRotation() |
Returns Inherited from Returns the element's rotation plus those of all its parents, in degrees. @since 5.9.2 |
|
compositeScale() |
Returns Inherited from Returns the element's scale multiplied by those of all its parents. @since 5.9.2 |
|
contentHeight() |
Returns Inherited from |
|
contentWidth() |
Returns Inherited from |
|
depth() |
Returns Inherited from Returns how deep the element is in the tree: the number of parents it has. |
|
disableDataItem( dataItem: ) |
Returns Inherited from Collapses a node, hiding all the nodes below it. |
|
dispose() |
Returns Inherited from Disposes the object, freeing everything it holds. A disposed object can't be used again. |
|
eachChildren( f: ( child: ) |
Returns Inherited from Calls |
|
enableDataItem( dataItem: ) |
Returns Inherited from Expands a collapsed node, opening |
|
endIndex() |
Returns Inherited from Returns the index after the last data item in the visible range. |
|
get( key: ) |
Returns Inherited from Returns the value of setting Click here for more info |
|
getDataItemById( id: ) |
Returns Inherited from Finds a node's data item by its ID, at any depth. |
|
getDateFormatter() |
Returns Inherited from Returns the Click here for more info |
|
getDurationFormatter() |
Returns Inherited from Returns the Click here for more info |
|
getNumberFormatter() |
Returns Inherited from Returns the Click here for more info |
|
getTooltip() |
Returns Inherited from Returns the element's |
|
has( key: ) |
Returns Inherited from Returns Click here for more info |
|
height() |
Returns Inherited from Returns the element's height in pixels. |
|
hide( duration?: ) |
Returns Inherited from Hides the element and returns a series.hide().then(function(ev) {
console.log("Series finished hiding");
})
series.hide().then(function(ev) {
console.log("Series finished hiding");
})
|
|
hideDataItem( dataItem: ) |
Returns Inherited from Hides a node with all the nodes below it. |
|
hideTooltip() |
Returns Inherited from Hides the element's |
|
hover() |
Returns Inherited from Hovers the element as if the pointer were over it: applies its hover state and shows its tooltip. |
|
hoverDataItem( dataItem: ) |
Returns Inherited from Puts a data item's node in its hover state, unless it is hidden. @since 5.0.7 |
|
innerHeight() |
Returns Inherited from Returns the container's height without padding, in pixels. |
|
innerWidth() |
Returns Inherited from Returns the container's width without padding, in pixels. |
|
isDisposed() |
Returns Inherited from Returns |
|
isDragging() |
Returns Inherited from Returns |
|
isFocus() |
Returns Inherited from Returns |
|
isHidden() |
Returns Inherited from Returns |
|
isHiding() |
Returns Inherited from Returns |
|
isHover() |
Returns Inherited from Returns |
|
isShowing() |
Returns Inherited from Returns |
|
isType( type: ) |
Returns Inherited from Returns |
|
isVisible() |
Returns Inherited from Returns |
|
isVisibleDeep() |
Returns Inherited from Same as @since 5.2.7 |
|
makeDataItem( data: ) |
Returns Inherited from Creates and processes a data item, without adding it to |
|
markDirtyKey( key: ) |
Returns Inherited from Marks a setting as changed, so the element reads it again, running its adapters, on the next frame. |
|
markDirtyValues( _dataItem?: ) |
Returns Inherited from Makes the component redraw from its data on the next frame. @since 5.0.21 |
|
maxHeight() |
Returns Inherited from Returns the most height the element may take, in pixels: its |
|
maxWidth() |
Returns Inherited from Returns the most width the element may take, in pixels: its |
|
new( root: ) |
Static Returns Inherited from Creates an instance of the class. Use it instead of Click here for more info |
|
off( key: ) |
Returns Inherited from Removes a callback added with Click here for more info |
|
offDebounced( key: ) |
Returns Inherited from Removes a callback added with Click here for more info |
|
offDebouncedPrivate( key: ) |
Returns Inherited from Removes a callback added with Click here for more info |
|
offPrivate( key: ) |
Returns Inherited from Removes a callback added with Click here for more info |
|
on( key: ) |
Returns Inherited from Calls Click here for more info |
|
onDebounced( key: ) |
Returns Inherited from Like Click here for more info |
|
onPrivate( key: ) |
Returns Inherited from Calls Click here for more info |
|
onPrivateDebounced( key: ) |
Returns Inherited from Like Click here for more info |
|
once( key: ) |
Returns Inherited from Like Click here for more info |
|
onceDebounced( key: ) |
Returns Inherited from Like Click here for more info |
|
openUrl( dataItem: ) |
Returns Inherited from Opens a data item's URL in the window set by Override to intercept links, e.g. in an editor. @since 5.20.7 |
|
pushDataItem( data: ) |
Returns Inherited from Creates a data item straight from settings, not from data, and adds it to the component's data items. |
|
remove( key: ) |
Returns Inherited from Removes the value set for setting Click here for more info |
|
removeAll() |
Returns Inherited from Removes all settings, as Click here for more info |
|
scrollToChild( child: ) |
Returns Inherited from Scrolls the container so that the child comes into view, if it is out of view. Works only on a container with a @since 5.10.5 |
|
selectDataItem( dataItem: ) |
Returns Inherited from Drills into a node, as a click does. Selecting the node that is already selected goes back up to its parent. |
|
set( key: ) |
Returns Inherited from Sets setting Click here for more info |
|
setAll( settings: ) |
Returns Inherited from Sets several settings at once, from an object of key-value pairs. Click here for more info |
|
setFlatData( flatData: ) |
Returns Inherited from Sets the data from a flat list, in which each item gives its parent's ID (in Click here for more info |
|
setTimeout( fn: () => ) |
Returns Inherited from Calls |
|
show( duration?: ) |
Returns Inherited from Shows the element and returns a series.show().then(function(ev) {
console.log("Series is now fully visible");
})
series.show().then(function(ev) {
console.log("Series is now fully visible");
})
|
|
showDataItem( dataItem: ) |
Returns Inherited from Shows a hidden node with all the nodes below it. |
|
showTooltip( point?: ) |
Returns Inherited from Shows the element's |
|
startIndex() |
Returns Inherited from Returns the index of the first data item in the visible range. |
|
toBack() |
Returns Inherited from Moves the element to the start of its parent's children, so it is drawn under its siblings, or, in a layout, placed first. |
|
toFront() |
Returns Inherited from Moves the element to the end of its parent's children, so it is drawn over its siblings, or, in a layout, placed last. |
|
toGlobal( point: ) |
Returns Inherited from Converts a point within the element to a point relative to the root. |
|
toLocal( point: ) |
Returns Inherited from Converts a point relative to the root to a point within the element. |
|
unhover() |
Returns Inherited from Ends a hover, as if the pointer left the element: hides its tooltip and takes it out of its hover state. |
|
unhoverDataItem( dataItem: ) |
Returns Inherited from Takes a data item's node out of its hover state. @since 5.0.7 |
|
updateData( data: ) |
Returns Inherited from Updates the data in place, keeping the existing data items: each object's values go into the data item at the same index. Extra objects are added as new data items, and data items beyond the new data are removed. |
|
width() |
Returns Inherited from Returns the element's width in pixels. |
|
x() |
Returns Inherited from Returns the element's X position in pixels, relative to its parent, without |
|
y() |
Returns Inherited from Returns the element's Y position in pixels, relative to its parent, without |
| There are 81 inherited items currently hidden from this list. | |
Events
Add event handlers to VoronoiTreemap object using its events.on() method.
Read about adding event handlers.
| #blur |
Param { originalEvent: Inherited from Invoked when element loses focus. |
|---|---|
| #boundschanged |
Param { type: Inherited from The element's bounds changed. |
| #click |
Param { type: Inherited from The element was clicked or tapped. A press and release more than 5 pixels apart is not a click. |
| #dataitemchanged |
Param { newDataItem: Inherited from The element's data item changed. |
| #dataitemselected |
Param { dataItem: Inherited from A node was selected (drilled into), by a click or through |
| #datavalidated |
Param { type: Inherited from The component's data changed and was processed. |
| #dblclick |
Param { type: Inherited from The element was double-clicked or double-tapped. Also dispatched on its parents. |
| #dragged |
Param { type: Inherited from The element moved while being dragged. |
| #dragstart |
Param { type: Inherited from Dragging of the element started: the pointer moved more than 5 pixels after pressing on it. |
| #dragstop |
Param { type: Inherited from Dragging of the element stopped. |
| #focus |
Param { originalEvent: Inherited from Invoked when element gains focus. |
| #globalpointerdown |
Param { type: Inherited from A pointer button was pressed, or a touch started, anywhere in the window, even outside the chart. |
| #globalpointermove |
Param { type: Inherited from The pointer moved anywhere in the window, even outside the chart. |
| #globalpointerup |
Param { type: Inherited from A pointer button was released, or a touch ended, anywhere in the window, even outside the chart. |
| #middleclick |
Param { type: Inherited from The element was clicked with the middle mouse button. |
| #pointerdown |
Param { type: Inherited from A pointer button was pressed, or a touch started, over the element. Also dispatched on its parents. |
| #pointerout |
Param { type: Inherited from The pointer left the element. |
| #pointerover |
Param { type: Inherited from The pointer moved over the element. |
| #pointerup |
Param { type: Inherited from A pointer button was released, or a touch ended, over the element. |
| #positionchanged |
Param { type: Inherited from The element's position changed. |
| #rightclick |
Param { type: Inherited from The element was clicked with the right mouse button. |
| #valueschanged |
Param { type: Inherited from Values of the component's data items changed. |
| #wheel |
Param { originalEvent: Inherited from The mouse wheel turned while the pointer was over the element. Also dispatched on its parents. |
| There are 23 inherited items currently hidden from this list. | |