vkoves / electrify-chicago

Learn about Chicago's most polluting buildings, and what they can do to clean up their act!
http://electrifychicago.net
9 stars 5 forks source link

Add Historical Graph to Building Details Over Any Tracked Column #107

Open vkoves opened 2 weeks ago

vkoves commented 2 weeks ago

Description

Adds a basic BarGraph component (powered by D3) and implements it on the building details page to show a switchable graph of a few of the historically tracked columns. Here's a demo with Marina Towers;

Total Emissions Electric Use
Screenshot from 2024-06-15 16-42-13 Screenshot from 2024-06-15 16-41-54

Fixes #4

Testing Instructions

Please describe the tests/QA that you did to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

netlify[bot] commented 2 weeks ago

Deploy Preview for radiant-cucurucho-d09bae ready!

Name Link
Latest commit dac8087c1651d2b6e009588da6885945a47921bc
Latest deploy log https://app.netlify.com/sites/radiant-cucurucho-d09bae/deploys/667b79286d20660008880880
Deploy Preview https://deploy-preview-107--radiant-cucurucho-d09bae.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

alexkcode commented 5 days ago

The pytest bug is a pandas issue related to this numpy issue: https://github.com/numpy/numpy/issues/26710

alexkcode commented 5 days ago

According this comment on that issue thread, as long as we're using pandas == 2.2.2 and above we should be fine. But if we use any earlier version we must pin down a numpy version below 2.0.0.