Classes
Methods
(async) init()
Initialize the visualization
.Initialize the visualization
render()
Render the visualization
.Render the visualization
renderLegend()
Render the cluster legend
.Render the cluster legend
selectCluster(clusterIndex)
Select a cluster to display details
.Select a cluster to display details
Parameters:
Name | Type | Description |
---|---|---|
clusterIndex |
number | Index of the cluster to select |
setupSVG()
Set up the SVG container
.Set up the SVG container
setupScales()
Set up D3 scales
.Set up D3 scales
updateClusters(clusters)
Update clusters with new data
.Update clusters with new data
Parameters:
Name | Type | Description |
---|---|---|
clusters |
Array | Array of cluster data |