Skip to content

Using d3 and Google sheets to make a scatter plot of my hiking data

License

Notifications You must be signed in to change notification settings

andyarensman/d3-hike-data-scatter-plot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

D3: Hiking Data Scatter Plot

Checkout the full node version on Github here

A D3 scatter plot connected to a Google Sheet that shows mileage vs elevation gain, top locations visited, and other statistics from my hiking trips in 2021. When the Google Sheet is updated, the graph automatically updates with the new point(s). If the new points do not fit on the graph, the scales adjust on their own. You can see what it looks like below as well as one of the mouseover functions.

Example Image

More Info

This was originally created as a pen on CodePen.io: https://codepen.io/arensmandy/pen/VwpmggN. It has since been turned into a fullstack app: [github] [app]

The project was created as a way to practice D3 data visualization while going through the freeCodeCamp certification, and as a fun way to keep track of my hiking. I also wanted to learn how to connect Google Sheets to an app using JavaScript and practice my CSS skills to make a more finished looking graph.

In the future I may add pop-up images from the hikes when the user hovers over each point. I may also make this into a template that others can easily use by simply cloning my Google Sheet, putting in their hiking data, and updating the link in the code that connects to the Google Sheet. This isn't hard to do now, but it could be more user friendly. Finally, I might also try to automate the process of taking the hiking data from the app I use (Map My Run) and putting it into the Google Sheet.

The next step was to turn this into a full stack app with MongoDB (completed here). User's are able to input their own hike data and see their own graphs.

Tutorials & Guides Used:

About

Using d3 and Google sheets to make a scatter plot of my hiking data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published