Description: An interactive treemap graphic on Georgia's budget.
-
This project uses Rollup.js to create a custom build of
d3.js
instead of using the monolithic D3 file. You can look atbuild.js
to see what modules are included. When you runnpm run prebuild
, rollup will produce ad3.min.js
file inassets/js
. You probably only need to do it once, unless you change what modules you want in the custom build. -
There is also an
index.js
, which is the file that produces the graphic.
- Node and npm
- Gulp CLI
Make sure you have the system dependencies installed. If not:
brew install node
npm i -g gulp-cli
This should install all of the local npm dependencies.
npm i
Generate your custom build. You probably only need to do it once, unless you change what modules you want in the custom build.
npm run prebuild
- Dev server:
npm run serve-dev
- Production server:
npm run serve-prod
npm run deploy-production