Day 49: The Pain of D3

Dan Esmail - 2/18/2023

Intro

D3 has so many resources and articles! Way more than I thought but it is still a pain sometimes. I have spent way too long trying to get a line graph to work. I have been making workarounds for everything at this current moment and I know it's wrong but it is all that I can think of for now.

Now l have put all my information from the database into an object within arrays for each section. It might not be the best call because this has been causing a lot of difficulties. Most of the difficulties come from the calling the left axis and it being inverted. I have found a way to finally get the left axis to work. Since the left axis has to have the max and the min reversed due to the top of the page being zero. This confused me so much. What I ended up doing to make a D3.line to work was to take my value and minus it from my max value. Now this works but I know it's wrong and I have to find a better way to get this value to work. Tomorrow more D3 and I will finally find a way to get things to work.


Day 1

Day 1