# Application Filters and Search: Range Filter Histogram

A numeric range facet with a distribution histogram, a dual thumb slider, min and max readouts, quick range presets, and a live match count.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/range-filter-histogram
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Filters and Search](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/range-filter-histogram.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-filters-and-search-range-filter-histogram
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: button, slider
- Installs to: `@/components/blocks/application-pro/filters-and-search/range-filter-histogram`

## About this block

Range Filter Histogram is the numeric facet for a deals
pipeline: twelve count bars show how deals distribute by
amount, a dual thumb slider sits underneath and lights up
the bars inside the selected band, Minimum and Maximum
readouts track the thumbs, and four presets (Any amount,
Under $3k, $3k to $8k, Over $8k) jump the range in one tap.
A footer reads the live match count, 123 deals in range,
next to an Apply filter button.

Buckets are one const array; the in-range test compares
each bucket span against the slider values, and the same
predicate drives both the highlighted bars and the footer
sum. Presets are just min and max pairs, so a click and a
drag land on identical state.

## When to use

Reach for this block anywhere users filter a list by a
numeric column, amount, duration, file size, or score,
wired to an endpoint that returns bucketed counts. The
distribution is the point: it shows where values cluster so
the range you pick is informed rather than a guess.

A natural flow around it on an Application Pro page:

**Before**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Faceted filter bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search)

**After**

- [Data table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables)
- [Reports](https://www.shadcn-ui-blocks.com/blocks/application-pro/reports)

## What you can display

One strong use is the deal amount facet in a CRM. Other
range histograms:

- **Price filter.** Product price buckets above a catalog
  result list.
- **Duration filter.** Session or call length across a
  support queue.
- **Score filter.** Lead or health score distribution on a
  dashboard.

> Tip: bucket the distribution server side and return counts
> only; sending raw rows just to draw bars wastes the
> payload the histogram is meant to save.

## More in Application Filters and Search

- [Advanced Filter Builder](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/advanced-filter-builder)
- [Applied Filters Summary](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/applied-filters-summary)
- [Column Filter Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/column-filter-blueprint)
- [Date Range Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/date-range-panel)
- [Faceted Filter Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/faceted-filter-bar)
- [Filter Chips Row](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/filter-chips-row)
- [Filter Funnel Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/filter-funnel-panel)
- [Find In View Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/find-in-view-bar)
- [Group By Selector](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/group-by-selector)
- [Grouped Results Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/grouped-results-blueprint)
- [Include Exclude Tags](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/include-exclude-tags)
- [Multi Facet Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/multi-facet-panel)
- [Multi Sort Builder](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/multi-sort-builder)
- [Query Language Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/query-language-bar)
- [Quick Filter Toggles](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/quick-filter-toggles)
- [Recent And Saved Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/recent-and-saved-blueprint)
- [Results Density Toggle](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/results-density-toggle)
- [Saved Filter Pills](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/saved-filter-pills)
- [Saved Searches Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/saved-searches-manager)
- [Saved Views Tabs](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/saved-views-tabs)
- [Scope Selector Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/scope-selector-bar)
- [Search Preview Pane](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/search-preview-pane)
- [Search Results Highlights](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/search-results-highlights)
- [Search With Recent](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/search-with-recent)
- [Sort Density Toolbar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/sort-density-toolbar)
- [Sort Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/sort-menu-blueprint)
- [View Changes Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/view-changes-bar)
- [Zero Results Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/filters-and-search/zero-results-panel)
