Interface: CosmographClustersConfig
Extended by
Properties
clusterPositionsMap?
optionalclusterPositionsMap:Record<string, [number,number]>
Mapping of cluster keys to [x, y] coordinate positions. Keys should match values from the pointClusterBy column. Missing cluster keys will be automatically positioned using the centermass. Won’t take effect if point positions are provided by pointXBy or pointYBy.
Example
// Object mapping cluster keys to coordinates:
clusterPositionsMap: {
'Rock': [10, 20], // Cluster 'Rock' at position (10, 20)
'Rap': [30, 40], // Cluster 'Rap' at position (30, 40)
}Remarks
If pointClusterByFn is provided, use keys as values of pointClusterBy after applying pointClusterByFn.