This sample demonstrates how to filter binned data on a FeatureLayer. Binning is a method of aggregating features in a FeatureLayer, CSVLayer, GeoJSONLayer, WFSLayer, or OGCFeatureLayer by grouping them to predefined bins.
Filtering on the layer view or layer of binned features works exactly the same as it does on a non-binned dataset.
Related samples and resources
Binning
Learn how to aggregate features spatially using bins.
![Image preview of related sample Binning with aggregate fields](/javascript/latest/static/a147cf9e2bdb05c791026e0dc2402d3b/e1e8c/thumbnail.png)
Binning with aggregate fields
This sample demonstrates how to define aggregate fields that can be used in the popup, labels, and renderer of a binned layer.
![Image preview of related sample Binning - Filter by category](/javascript/latest/static/546dca2e62be41acfd56663086b4c03b/e1e8c/thumbnail.png)
Binning - Filter by category
Demonstrates how to filter binned data by category.
![Image preview of related sample Summarize binned data using Arcade](/javascript/latest/static/8ff55353e105d67383287e6f05ac5e57/e1e8c/thumbnail.png)
Summarize binned data using Arcade
Use Arcade in popups to summarize binned crimes by type
![Image preview of related sample Intro to clustering](/javascript/latest/static/fc479d6273a98b010ce55c0034e30750/e1e8c/thumbnail.png)
Intro to clustering
Intro to clustering
FeatureReductionBinning
Read the Core API Reference for more information.