I am just learning Observable (having participated in the super helpful online tutorial last week).
I’ve not used the types of programming being used here so would really appreciate some help or pointers to really newbie friendly guides.
My question today is:
Let’s say as an example I am looking at the energy data from the Observable example here: https://observablehq.com/d/d8bb9f3ca6fc57fb
I’d like a drop-down box where the user can select which type of energy to compare to (e.g. coal) and then to graph the differences between coal and each of the other energy types.
My brain would solve it in my usual programming language by
- reshaping the long data to wide so that each date has a column for each energy production type.
- subtracting the coal value from each of the others to create “difference” values
- going back to long format
- graphing the difference values
I’d love any help or pointers as I just don’t know where to start in this programming environment!