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