This script helps to convert JSON representation of a linechart to SVG format. Currently only supports JSON where the x/y values are assigned to keys 't' (time) and 'v' (value) as this was originally written to convert Glassnode Studio's charts (but is easily modifiable).
- Clone the project
- Install Python
- Python: https://www.python.org/downloads/
- verify installation
python --version
- Install the dependencies from the project folder:
pip install -r requirements.txt
- Run the script:
python json2svg.py pathToJson
- use -d parameter to turn on debugging log level:
python json2svg.py pathToFile -d
- use -h parameter to show help
- use -d parameter to turn on debugging log level:
- ???
- Success!