A data visualization that renders magazine circulation data. Powered primarily by dc.js. Visible on the Circulating Magazines Project at JMU
-
Run
npm installto install all dependencies for the data cleaning scripts. -
Create an
assets/data/rawDatadirectory and add circulation and geodata as separate files with the respective titles<CODE>-Circulation.csvand<CODE>-geodata.csv. Schemas for the CSV files TBD. -
Use
npm run circulation-cleanerand/ornpm run geodata-cleanerto convert the CSVs to JSON files that are consumable by the front-end. -
Finally, use
npm run title-generatorto update the list of titles that are rendered by the front end.
Special Notes can be added in the data/constants.js folder. It is represented as a simple JSON object, in which the key is the title code (e.g., NEYO) and the value is the special note. The UI will pull from this map to populate the special notes field in the visualization.