I found out that D3 changes lot of stuff in every update. This is my take on the bar chart challenge using v. 6 of the library, in case anyone is trying to understand how to pass the challenge. Lots of articles and tutorials use differente version every time. For anyone struggling learning to code I started form zero, I din’t know what a variable was, I was amazed I was able to pass the front-end certification and now the first project of data visualization. And boy it was hard to understand how to do that…
Hope it helps and any C&C are welcome.