ZoomCharts Documentation
GeoChart.settings.layerTypes.aggregateOnShapes
This section is defined by the type GeoChartSettingsLayerAggregated.
Properties
aggregation: "sum" | "min" | "max" | "first" | "last" | "avg" | "count"
Default value: "count"
Aggregation function to use.
Valid values:- sum
- min
- max
- first
- last
- avg
- count
aggregationField: string
Default value: null
Data field used for aggregation.
Default value: null
Custom function to call for aggregation
Parameters
array of nodes matching single shape
Return value
Data type: number
aggregated value, to be passed to styleFunction
data: anonymous type
enabled: boolean
Default value: true
Inherited from: GeoChartSettingsLayerBase
id: string
Default value: "default"
Inherited from: GeoChartSettingsLayerBase
maxZoom: number
Default value: 20
Inherited from: GeoChartSettingsLayerBase
minZoom: number
Default value: 0
Inherited from: GeoChartSettingsLayerBase
name: string
Default value: ""
Inherited from: GeoChartSettingsLayerBase
perZoomStyle: boolean
Default value: false
Inherited from: GeoChartSettingsLayerBase
Forces style re-evaluation on zoom change. Use to provide zoom dependant style.
shapesLayer: string
Inherited from: GeoChartSettingsLayerOverlay
The ID of a linked shapes layer. Style changes will be applied to this layer. The shapes layer must be defined before the aggregation layer.
Default value: null
Function for applying the aggregated value on node.
Parameters
node: ItemsChartNode
shape node style is being applied to
value: number
computed aggregate value
type: "shapes" | "items" | "charts" | "aggregateOnShapes"
Default value: "aggregateOnShapes"
Inherited from: GeoChartSettingsLayerBase
- shapes
- items
- charts
- aggregateOnShapes
useFindObjectHack: boolean
Default value: false
Inherited from: GeoChartSettingsLayerBase