ClusteringPluginOptions
Options for the ClusteringPlugin
| Name | Type | Description |
|---|---|---|
| algorithm? | "connected-components" | "louvain" | "label-propagation" | "dbscan" | "kmeans" | "agglomerative" | ClusteringAlgorithmOptions | Clustering algorithm to use when is not provided.Defaults to . |
| getClusters? | (ui:BrowserUI) => | Optional method you can use to provide the clusters to display. Takes precedence over when both are specified. |
| hulls? | boolean | {
padding:number } | Defaults to boolean true, meaning convex hulls are shown. You can set this to , or you can provide an object with a value, which will mean that hulls are displayed, with the given padding. |
| onClustersChanged? | (clusters:) => void | A callback that is invoked when the list of clusters has changed. |
| palette? | Optional list of colors to cycle through when drawing. | |
| voronoi? | boolean | ClusteringVoronoiOptions | Enables the Voronoi underlay. Defaults to . Pass touse the default settings or provide ClusteringVoronoiOptions. |