Enlighted by Zoomable sunburst from Mike Bostock.
under path ./python/ are 4 filers:
It is the jupyter notebook file of the dataset. In this file you can have a thorough understanding of the dataset in this work, which is the dataset of all the steam games.
It is the original dataset.
It transfers a dataset to a tree structure.
-
After cloning the repo, use cd .\python\ to go to the folder.
-
Then use python .\make_hierarchy.py -h to see the arguments of this script. Notice parameter "value" should be used.
-
For instance, if genres should be valued based on average playtime, then use python
.\make_hierarchy.py .\steam-store-games.csv genres average_playtime
. This will create a filtered_steam.csv file under the python folder, which contains the data filtered by the filtering function. -
The filtering parameters can be changed in function: def filter_csv(path). These parameters can be input arguments, however, that will make the argument- list incredibly long and not user-friendly. So I put them in the function for now.
-
The generated json file for visualization will be in ./public/data/ with a "_try" to avoid covering the data I used for visualization.
- If you are now in python folder, use cd .. to get back.
- Use
npm install
to install the necessary packages. - Then use
npm run dev
to start the server. - Use Ctrl + C to end the terminal.