---
title: "Clustering animated icon"
description: "Clustering animated icon (AI · Knowledge). Scattered points gather around two cluster centroids."
canonical: https://generativeicons.com/icons/clustering/
---

# Clustering animated icon

Scattered points gather around two cluster centroids.

- Id: `clustering`
- Category: AI · Knowledge
- Search terms: k-means, kmeans, centroids, group similar, customer segments, segments, unsupervised learning, cluster analysis, similarity groups
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/clustering.lottie (dotLottie, 10928 bytes, sha256 a2d324f37ff5612f9629577aebacf1fe5a4b4a99e159bb051c7bce052c422bff)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add clustering
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/clustering.mjs';

export function ClusteringIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/clustering.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/clustering/ · https://generativeicons.com/api/icons/clustering
