I've just pushed an initial release out to github for visigoth.
This library aims to provide engineers and data scientists with an easy way to construct interactive visualisations containing multiple maps and charts. Visualisations are output as Support Vector Graphics (SVG) files.
For an example, click on the thumbnail image (on the left) or the larger image (below) to open the full SVG in a new tab or window. This visualisation looks at the spatial and temporal distribution of serious road accidents in the London,UK area in 2018.
One of the odd but interesting aspects of the project was the need to compute the length in pixels of a section of SVG text, in order to correctly layout elements such as the axes of graphs. To do this I built a database of the geometries of each glyph in a large number of web fonts.
The library has zero dependencies and can be installed easily from PyPI:
python3 -m pip install visigoth
For more details I suggest to take a look at the API documentation.
It's still very early days for this project. Over the next few weeks and months I'll be focusing on testing and documentation of this initial functionality. For suggestions, issues or (better still) offers of help please open a github issue! The API is likely to change somewhat to remove any inconsistencies that might have crept in during the development process.