codecharta icon indicating copy to clipboard operation
codecharta copied to clipboard

Usage of the file query parameter

Open Nereboss opened this issue 11 months ago • 0 comments

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

Nereboss avatar Mar 15 '24 10:03 Nereboss