codecharta
codecharta copied to clipboard
Usage of the file query parameter
Question
CodeCharta allows to directly load a cc.json file from the url (e.g. the web version uses this to load two maps: https://maibornwolff.github.io/codecharta/visualization/app/?file=codecharta.cc.json.gz&file=codecharta_analysis.cc.json.gz). This currently requires that one is hosting the cc.json files themselves. This has been a feature since 2018 but is not documented well. We recently added a feature, that the different metrics can be set in the url, given the url contains a file. This can be great to share the view of a map but only works if one is hosting their cc.json files somewhere, which not many users will do.
Questions:
What was the original purpose of the file query parameter and can we use this to make maps more easily sharable?
Preparation
Please check these resources first before posting a question
- [ ] I searched for answers in older issues
- [ ] I looked into the README.md
- [ ] I read the website