# numericalhistogramrangefilter

> live demo : https://e-frogg.github.io/NumericalHistogramRangeFilter/

Latest version **1.0.6** (published 2021-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install numericalhistogramrangefilter
pnpm add numericalhistogramrangefilter
yarn add numericalhistogramrangefilter
bun add numericalhistogramrangefilter
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-09-10 |
| First published | 2021-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 61.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | inem0o, raphael-homann |

## Links

- npm: https://www.npmjs.com/package/numericalhistogramrangefilter
- Repository: https://github.com/e-frogg/NumericalHistogramRangeFilter
- npm.io page: https://npm.io/package/numericalhistogramrangefilter

## Recent versions

- 1.0.6 (latest) — 2021-09-10
- 1.0.5 — 2021-09-09
- 1.0.4 — 2021-07-05
- 1.0.3 — 2021-07-02
- 1.0.2 — 2021-07-02
- 1.0.1 — 2021-07-02
- 1.0.0 — 2021-07-02

## README

# NumericalHistogramRangeFilter

live demo : https://e-frogg.github.io/NumericalHistogramRangeFilter/

## install
```
git clone https://github.com/e-frogg/NumericalHistogramRangeFilter.git
cd NumericalHistogramRangeFilter
yarn install
```

## build
```
yarn webpack --mode=production --watch
```

## usage
``` javascript
var jsonFilterData = {
        "max": 3039,
        "min": 0,
        "maxCount": 21471,
        "histogram":
            {
                "0": {
                    "start": 0,
                    "count": 1,
                },
                "1": {
                    "start": 1,
                    "count": 114,
                }
               # [...]
            }
    };
    
    var filter = new NHRF.NumericalHistogramRangeFilter(
        jsonFilterData.min,
        jsonFilterData.max,
        new NHRF.NumericalHistogram(jsonFilterData)
    );

    filter.onChange(function (min, max) {
        document.getElementById('result').innerHTML = 'trigger refresh : <br>min=' + min + " <br> max=" + max;
    });

    filter.mount(document.getElementById('nhrf-container'));
    filter.render();
``

---
_Source: https://npm.io/package/numericalhistogramrangefilter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
