Public
Edited
Mar 5
Fork of TCGAplots
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
crash_query = {
let queryJSON = {
states: 8,
fromYear: 2022,
toYear: 2022,
minNumOfVehicles: 1,
maxNumOfVehicles: 6,
format: "json",
}

// https://crashviewer.nhtsa.dot.gov/CrashAPI/crashes/GetCaseList? states=8&fromYear=2023&toYear=2023&minNumOfVehicles=1&maxNumOfVehicles=6&format=json
let queryurl = 'https://crashviewer.nhtsa.dot.gov/CrashAPI/crashes/GetCaseList'
let hosturl = 'https://corsproxy.io/'

let fullquery = hosturl +'?'+queryurl +'?' + jq.param(queryJSON)
//let fullquery = queryurl +'?' + jq.param(queryJSON)
return (await fetch(fullquery)).json()
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
jq = require("https://code.jquery.com/jquery-3.4.1.js")
Insert cell
Insert cell
import {text} from "@jashkenas/inputs"
Insert cell
import {textarea} from "@jashkenas/inputs"
Insert cell
import {radio} from "@jashkenas/inputs"
Insert cell
Insert cell
Plotly = require("https://cdn.plot.ly/plotly-latest.min.js")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more