{"size": 523, "ext": "js", "max_stars_repo_path": "src/index.js", "max_stars_repo_name": "JesseSDevaney/scatterplot-graph", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/index.js", "max_issues_repo_name": "JesseSDevaney/scatterplot-graph", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/index.js", "max_forks_repo_name": "JesseSDevaney/scatterplot-graph", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.7391304348, "max_line_length": 98, "alphanum_fraction": 0.6424474187}
import "./index.scss";
import createScatterPlot from "./app/app";

function ready() {
  fetch(
    "https://raw.githubusercontent.com/freeCodeCamp/ProjectReferenceData/master/cyclist-data.json"
  )
    .then((response) => response.json())
    .then((dataset) => {
      createScatterPlot(dataset);
    })
    .catch((error) => {
      alert("Error loading content");
      console.log(error);
    });
}

if (document.readyState === "loading") {
  document.addEventListener("DOMContentLoaded", ready);
} else {
  ready();
}
