diff options
| author | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-14 13:23:58 +0200 |
|---|---|---|
| committer | Petri Hienonen <petri.hienonen@gmail.com> | 2025-11-14 13:23:58 +0200 |
| commit | a92ad2b817b2c28b26e869897e03c14d30d0f991 (patch) | |
| tree | 702b4b63e2dc7cc544949cd76b444445e6c12ae5 /app/main.js | |
| parent | d41ac3c094f733a8038885de3400ed7558b2b878 (diff) | |
| download | housing-a92ad2b817b2c28b26e869897e03c14d30d0f991.tar.zst | |
Add histogram
Diffstat (limited to 'app/main.js')
| -rw-r--r-- | app/main.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/main.js b/app/main.js index da52152..7adb227 100644 --- a/app/main.js +++ b/app/main.js @@ -47,6 +47,7 @@ export class App { // Create sidebar instance this.#sidebar = new Sidebar( + null, this.#filters, this.#weights, () => { @@ -186,6 +187,7 @@ export class App { this.#sidebar.updateDistricts(this.collection.houses); this.#sidebar.setAreaColorParameter(this.#areaParameter); + this.#sidebar.updateHistogram(this.#filtered, this.#houseParameter); const stats = App.#getStats(this.#filtered); this.#stats.replaceWith(stats); @@ -228,6 +230,8 @@ export class App { const stats = App.#getStats(this.#filtered); this.#stats.replaceWith(stats); this.#stats = stats; + + this.#sidebar.updateHistogram(this.#filtered, this.#houseParameter); } /** |
