Augmenting Visualizations with Interactive Data Facts to Facilitate Interpretation and Communication
Run a web server:
python -m http.server 8000
Go to http://localhost:8000/ to run the system (preloaded with the cars dataset).
-
Add your dataset in a csv format in the folders
dataGenerator/csvs
anddataFiles/csvs
(already has sample datasets) -
Create a json file specifying the metadata of your dataset in
dataGenerator/dataTypeMaps
(already has files for sample datasets). Make sure you specify the "type" field for each attribute and the "isItemAttr" field for the label attribute (e.g. Car Name). -
To generate the data facts and mappings between facts, visualizations, and annotations, within the
dataGenerator
folder, executepython mainDataFileGenerator.py csvs/fileName.csv dataTypeMaps/fileName.json
. This will create two json files under thedataFiles
foder (filename-mainDataMap.json
with all the facts and visualizations, andfileName-metadataMap.json
which is a modified version of the dataTypeMap file passed earlier). -
In
js/src/main.js
, update the paths to the data files passed to the variablesdataFileToUse
,mainDataMapFileUrl
, andmetadataMapFileUrl
to point to the required csv file and the files generated in Step 4. -
Go to the root folder, and run a local server (
python -m http.server 8000
) and go to http://localhost:8000/
Augmenting Visualizations with Interactive Data Facts to Facilitate Interpretation and Communication
Arjun Srinivasan, Steven M. Drucker, Alex Endert, John Stasko
IEEE Transactions on Visualization and Computer Graphics (TVCG), Jan 2019