Deploy to git-pages / deploy (push) Successful in 19s
- Install d3@7 - Add fetchDistrictDraws API function (for future use with raw draws) - Create RateDensityRidgeline component using D3.js - Density ridges showing posterior distributions per race group - Diamond markers for observed rates (matching R design) - Dropdown to switch between model specifications - Matches Civilytics color palette (navy fill, danger diamonds)
33 lines
826 B
JSON
33 lines
826 B
JSON
{
|
|
"name": "crdc-arrests-demo",
|
|
"version": "0.1.0",
|
|
"description": "CRDC School Arrest Rate API demonstration app — shows Bayesian model comparisons for school-based arrest rates across U.S. districts.",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx",
|
|
"format": "prettier --write \"src/**/*.{js,jsx,css}\""
|
|
},
|
|
"keywords": [
|
|
"crdc",
|
|
"school-arrests",
|
|
"api-demo",
|
|
"civilytics"
|
|
],
|
|
"author": "Civilytics Consulting LLC",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@vitejs/plugin-react-swc": "^4.3.3",
|
|
"eslint": "^8.57.1",
|
|
"prettier": "^3.9.6",
|
|
"react": "^19.2.8",
|
|
"react-dom": "^19.2.8",
|
|
"vite": "^8.2.1"
|
|
},
|
|
"type": "module",
|
|
"dependencies": {
|
|
"d3": "^7.9.0"
|
|
}
|
|
}
|