There is a time to struggle and a time to ask for help. D3 has gotten the best of me. I’m sure it is something simple, but I don’t have my bearings in the language enough to figure out what the problem is.
I tried a good bit of debugging and have verified everything I can think of:
- The dates are in the correct format
- The line has a width and renders with different values
- The data is making it all the way through the functions
- There are no errors blocking the script
- The x-axis range matches the data
I decided to turn to stackoverflow for help and posted a question asking about why my lines aren’t showing up.
Hopefully some kind soul will take mercy on me and point me in the right direction. In the mean time I’m going to populate the rest of my data into the CSV.
This has been a humbling experience.
Other Posts You Might Like:
Innovation Session: The History of NFL Win Percentages – Part 5Tonight I changed my approach, at the advice of Sean Conaty, and decided to turn the CSVs into JSON using a separate python script that I would then load into D3 to visualize. I am much better at manipulating data in python, so this approach should help eliminate some of the frustration I faced last week trying to get the CSVs…
Innovation Session: The History of NFL Win Percentages – Part 7As a hobbyist developer, I have always been grateful for help from others. Whether from friends, co-workers or strangers. A few weeks ago Mike Bostock helped me figure out why my chart wasn't rendering by answering my question on stack overflow. Mike is, for those of you that aren't data visualization nerds, the creator and lead developer of D3, the…
Innovation Session: The History of NFL Win Percentages – Part 4Continuing what I've been working on lately - tonight I'm going to try and get all of the data loaded for my NFL chart and hopefully get the javascript to automatically loop through and chart each team's record. Refactoring As I dove in tonight I realized that the way I was doing things wasn't going to work. D3.csv() loops over…