diff options
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); } /** |
