Closed Lorenzo025 closed 2 years ago
Hey @Lorenzo025,
You actually can overlay any type of datasets (currently only 2 charts). The trick is that you need to call the datasets so that they are "saved" and then you can call them through the name that appears on the menu.
If you want to overlay GDP with energy usage that is possible, e.g.
This is how I did it:
I used:
fred -q energy
to query what datasets have the word energy, then I was interested in PNRGINDEXM
. Thus I run fred PNRGINDEXM
.
Then I wanted to see if macro command had the gdp so I did, macro --show parameters
where I saw GDP
which was when I did macro -p GDP
.
Then your stored datasets will have the 2 series you are interested,
macro : United_States_CPI
fred : PNRGINDEXM
So I run plot --y1 United_States_CPI --y2 PNRGINDEXM
.
Hope this helps!
I see, thank you for that. I wasn't familiar with the -p and that you need to load your parameters first. Having some issues with fred though. enable to get the parameter you refer to here for energy. It might be the API key im using, not sure.
That is normal, when you select "energy" it basically looks up for all series that contain the term "energy" if that makes sense.
right I was playing with the query option on fred for population and "oil" for example to see what came up. But was having issues pulling the charts up to load. Does this error code have to do with my api key?
Yes, it seems it does. Mine is working well at least
What's the feature that should be improved? For example i can overlay consumer confidence over the sp500 to draw correlations, but I believe the options are limited to just these two datasets.
Describe how you would like the feature improved It would be nice to simply give a time frame like 01-01-2001 -- 01-01-2022/ --y1 sp500 --y2 nasdaq. Just as an example. Of course adding more options like gdp overlayed with energy usage would make great use of the overlays.![Screen Shot 2022-08-24 at 6 52 50 PM](https://user-images.githubusercontent.com/82773076/186537468-8faa184a-c96f-4356-b52a-c37500a0be70.png)