ZoomCharts Documentation

Version: 1.21.1 (2024-11-08)

ZoomCharts.Configuration.GeoChartSettingsAggregation

Methods

This type does not define any methods.

Properties

distance: number

The approximate minimum distance in pixels between two nodes before they are aggregated together.

enabled: boolean

Enables/Disables automatic aggregation

ignoreZeroWeight: boolean
Introduced in version 1.17.0.

Specifies if nodes where the weightFunction returns 0 are completely ignored by the aggregation. This means that they are not drawn in the convex shape and also are not present in the aggregatedNodes property.

maxZoom: number

The last zoom level on which the nodes are automatically agregated. When the chart is zoomed in deeper, the original nodes will be used instead.

Experimental property - the API might not be stable and is subject to change.

A delegate that can be used to process aggregated nodes before links are aggregated. The delegate should modify the given array and mapping information if some nodes should be aggregated differently.

Parameters

The aggregated node objects.

A dictionary that maps the original node ID to the aggregated node (the same instance that is present in the nodes array).

An empty array that the delegate is expected to fill with aggregated nodes that have been modified.

shouldCentralize: boolean

If true, aggregated nodes are placed in the center of mass of all the underlying nodes, even if no actual underlying node is at that location. Otherwise, aggregated nodes are placed at the location of a single real "representative" node.

weightFunction: (node: GeoChartGeoDataObjectNode) => number

Function that returns the value used as weight in the aggregation process for each node.

Parameters
Return value
Data type: number
X