# Problem with point clustering not working

**URL:** <https://community.cesium.com/t/problem-with-point-clustering-not-working/25458>\
**Category:** CesiumJS\
**Created:** [July 18, 2023, 10:20am UTC](https://community.cesium.com/t/problem-with-point-clustering-not-working/25458 "2023-07-18T10:20:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrien\_Houle](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/adrien_houle/32/14892_2.png) [@Adrien\_Houle](https://community.cesium.com/u/Adrien_Houle)\
**Post date:** [July 18, 2023, 10:20am UTC](https://community.cesium.com/t/problem-with-point-clustering-not-working/25458/1 "2023-07-18T10:20:19Z")

</div>

I’m trying to make a clustering of points with label , but my points always stay clustered and I can’t figure out why.  
The points before clustering :

 ![2](https://global.discourse-cdn.com/cesium/original/2X/0/08e22aab897996f9620a0a1922d55a2e2b09a69d.jpeg)  
With clustering :  
 ![1](https://global.discourse-cdn.com/cesium/original/2X/0/0c0745c8016ce27c3d1c2cba03720afb3a02c58c.jpeg)  
But with only labels it works fine :  
 ![3](https://global.discourse-cdn.com/cesium/original/2X/e/e2e260546f9d9ada215a6d684baec0c3869f2fa2.jpeg)

here is my entity creation code :

```auto
   const dataSource = new CustomDataSource('elementData');

 const pixelRange = 15;
    const minimumClusterSize = 2;
    const enabled = true;

    dataSource.clustering.enabled = enabled;
    dataSource.clustering.pixelRange = pixelRange;
    dataSource.clustering.minimumClusterSize = minimumClusterSize;

        dataSource.entities.add({
          id: id,
          position: Cartesian3.fromDegrees(lon, lat, 0),
          point: {
            pixelSize: 8 ,
            color: Color.RED,
            outlineColor: Color.BLACK,
            outlineWidth: 1,
          },
          label: {
            text: name,
            font: '14px sans-serif',
            style: LabelStyle.FILL,
            fillColor: Color.BLACK,
            pixelOffset: new Cartesian2(0, -9),
          },
        });
      }

```
