Skip to main content
100%

viz to critique

✓ Published1🌍 Public
Ookahne@gmail.com
Last edited May 13, 2024
Created on May 9, 2024

Two interactive stacked bar charts visualize renewable and non-renewable energy production totals and proportions by year, using buttons to toggle between views. The visualization loads CSV data from a GitHub repository and renders it as SVG elements using d3.v6, employing d3.stack, d3.scaleBand, and d3.scaleLinear to construct the charts. The code includes commented-out tooltip functionality and axis labeling, with a fixed y-axis domain for the proportions chart.

AI-generated description

Context: Suppose you own a really big battery that is hooked up to the energy grid. One way to make money is to charge the battery (buy energy) when energy prices are low and sell that energy to the grid when prices are high.

One way to quantify the amount of money that could be made is called rtb (real-time-top-bottom). For my data, rtb is the highest four hourly prices on a given day minus the lowest four prices. This value represents the amount of money a battery owner could make by running their battery for four hours (and charging for four hours) if they time everything perfectly.

The goal for this viz is to explore the relationship between rtb and weather. On the left there is a scatterplot showing daily rtb values vs the day of the year. On the right there is a lineplot that compares the actual weather from that day to the average for that month across the entire dataset.

Make it fullscreen. thanks :)

Links:

MIT Licensed

Similar vizzes